X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=util%2Fhex-escape.h;h=83a4c6f146fe15387b0ef8c151ae6e5b4dcbc766;hb=2786aa4d548d28579c761e9358d44c84dfb29068;hp=5182042e07b3dcde81c3cc594528dc2ae4754f23;hpb=c3a683299d4c27d6eadaacf4fb516f73a6c69fc3;p=notmuch 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