summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2018-06-29 11:20:51 +0800
committerIru Cai <mytbk920423@gmail.com>2018-06-29 11:20:51 +0800
commit1719796a3a10eccf91eadb38c019829110e96294 (patch)
tree47ff1e6401fd5202aad0eccacb94bb19550f294f /util.h
parentb065c82627d83d1b207985d78276eb80f0b7b266 (diff)
downloadmatrix-curl-1719796a3a10eccf91eadb38c019829110e96294.tar.xz
update get_devices
Diffstat (limited to 'util.h')
-rw-r--r--util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/util.h b/util.h
index ab0b158..b38338f 100644
--- a/util.h
+++ b/util.h
@@ -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
}