X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=util%2Fhex-escape.h;h=8703334cda8d4836660bed1f8cf41c65e2fec023;hp=5182042e07b3dcde81c3cc594528dc2ae4754f23;hb=HEAD;hpb=045f0e455ac94e2393d0d729c9bbdf3459a4860f diff --git a/util/hex-escape.h b/util/hex-escape.h index 5182042e..83a4c6f1 100644 --- a/util/hex-escape.h +++ b/util/hex-escape.h @@ -1,7 +1,11 @@ #ifndef _HEX_ESCAPE_H #define _HEX_ESCAPE_H -typedef enum hex_status { +#ifdef __cplusplus +extern "C" { +#endif + +typedef enum { HEX_SUCCESS = 0, HEX_SYNTAX_ERROR, HEX_OUT_OF_MEMORY @@ -25,11 +29,11 @@ typedef enum hex_status { hex_status_t hex_encode (void *talloc_ctx, const char *in, char **out, - size_t *out_size); + size_t *out_size); hex_status_t hex_decode (void *talloc_ctx, const char *in, char **out, - size_t *out_size); + size_t *out_size); /* * Non-allocating hex decode to decode 's' in-place. The length of the @@ -38,4 +42,9 @@ hex_decode (void *talloc_ctx, const char *in, char **out, */ hex_status_t hex_decode_inplace (char *s); + +#ifdef __cplusplus +} +#endif + #endif