diff options
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1,6 +1,8 @@ #ifndef LIBMC_UTIL_H #define LIBMC_UTIL_H +#include <json-c/json.h> + #ifdef __cplusplus extern "C" { #endif /* } */ @@ -10,6 +12,8 @@ extern "C" { * @note callers should call free() to free the returned C string */ char * alloc_build_string(const char *ss[]); +const char *json_gets(json_object *j, const char *key); +char *json_gets_dup(json_object *j, const char *key); #ifdef __cplusplus } |