diff options
author | Neal H. Walfield <neal@pep.foundation> | 2019-05-07 10:35:26 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2019-05-07 12:18:34 +0200 |
commit | 0db7ff8d9c07d10e355d9888b8c42341caa85959 (patch) | |
tree | 2496d26b162c60b4bdb62b81726bfc8cb5da4495 /openpgp-ffi/include | |
parent | 471932ab32ee8d76c7939e8fbb028dc9260ac3bb (diff) |
openpgp-ffi: Add a function to convert a Status to a string
Diffstat (limited to 'openpgp-ffi/include')
-rw-r--r-- | openpgp-ffi/include/sequoia/openpgp/error.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/openpgp-ffi/include/sequoia/openpgp/error.h b/openpgp-ffi/include/sequoia/openpgp/error.h index 2924b8c9..239ebcf9 100644 --- a/openpgp-ffi/include/sequoia/openpgp/error.h +++ b/openpgp-ffi/include/sequoia/openpgp/error.h @@ -128,6 +128,13 @@ typedef enum pgp_status { } pgp_status_t; /*/ +/// Returns the error message. +/// +/// The returned value must *not* be freed. +/*/ +const char *pgp_status_to_string(pgp_status_t status); + +/*/ /// Complex errors returned from Sequoia. /*/ typedef struct pgp_error *pgp_error_t; |