blob: b38338f3ee1885eba84b40868262e82f9aebf4b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef LIBMC_UTIL_H
#define LIBMC_UTIL_H
#include <json-c/json.h>
#ifdef __cplusplus
extern "C" {
#endif /* } */
/* build a new C string by concatenate strings in ss
* @ss: C strings, the last element is NULL
* @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
}
#endif
#endif
|