]> git.notmuchmail.org Git - notmuch/blobdiff - util/hex-escape.h
emacs: Add new option notmuch-search-hide-excluded
[notmuch] / util / hex-escape.h
index 5182042e07b3dcde81c3cc594528dc2ae4754f23..83a4c6f146fe15387b0ef8c151ae6e5b4dcbc766 100644 (file)
@@ -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