#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
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
*/
hex_status_t
hex_decode_inplace (char *s);
+
+#ifdef __cplusplus
+}
+#endif
+
#endif