summaryrefslogtreecommitdiffstats
path: root/ffi/include
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2018-12-14 15:36:58 +0100
committerJustus Winter <justus@sequoia-pgp.org>2018-12-17 11:46:44 +0100
commit05e1b5dc9d189e3129f8da2c6beacb014f3fd698 (patch)
treeec65fb105a7d85d78a5c2e2e38f71e71ad85b997 /ffi/include
parent4c35f633626895fe734a34c2982b1ece2b7d4f1f (diff)
ffi: Avoid inline function.
- Inline functions make python-cffi choke on the header file.
Diffstat (limited to 'ffi/include')
-rw-r--r--ffi/include/sequoia/openpgp.h26
1 files changed, 4 insertions, 22 deletions
diff --git a/ffi/include/sequoia/openpgp.h b/ffi/include/sequoia/openpgp.h
index c2702c95..0e0439f8 100644
--- a/ffi/include/sequoia/openpgp.h
+++ b/ffi/include/sequoia/openpgp.h
@@ -367,28 +367,10 @@ typedef enum sq_tag {
SQ_TAG_PRIVATE3 = 63,
} sq_tag_t;
-static inline const char *sq_tag_to_string(sq_tag_t tag) {
- switch (tag) {
- case SQ_TAG_PKESK: return "PKESK";
- case SQ_TAG_SIGNATURE: return "SIGNATURE";
- case SQ_TAG_SKESK: return "SKESK";
- case SQ_TAG_ONE_PASS_SIG: return "ONE PASS SIG";
- case SQ_TAG_SECRET_KEY: return "SECRET KEY";
- case SQ_TAG_PUBLIC_KEY: return "PUBLIC KEY";
- case SQ_TAG_SECRET_SUBKEY: return "SECRET SUBKEY";
- case SQ_TAG_COMPRESSED_DATA: return "COMPRESSED DATA";
- case SQ_TAG_SED: return "SED";
- case SQ_TAG_MARKER: return "MARKER";
- case SQ_TAG_LITERAL: return "LITERAL";
- case SQ_TAG_TRUST: return "TRUST";
- case SQ_TAG_USER_ID: return "USER ID";
- case SQ_TAG_PUBLIC_SUBKEY: return "PUBLIC SUBKEY";
- case SQ_TAG_USER_ATTRIBUTE: return "USER ATTRIBUTE";
- case SQ_TAG_SEIP: return "SEIP";
- case SQ_TAG_MDC: return "MDC";
- default: return "OTHER";
- }
-}
+/*/
+/// Returns a human-readable tag name.
+/*/
+const char *sq_tag_to_string (sq_tag_t tag);
/*/
/// Opaque types for all the Packets that Sequoia understands.