-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathobjects_h.h
42 lines (28 loc) · 1.17 KB
/
objects_h.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef OBJECTS_H_H
#define OBJECTS_H_H
#include "list_h.h"
#define Object (list_type) (End+1)
#ifdef __cplusplus
extern "C" {
#endif
typedef list object;
typedef list_element_pointer object_element_pointer;
void object_element_free(object_element_pointer);
void object_free(object);
object object_add(object target, const char * name, ...);
object object_appendChild(object target, const char * name, object child);
object object_copy(object target);
void object_print(object target, format_options f);
object_element_pointer object_get_el(object target, const char * name);
object_element_pointer object_get(object target, const char * path);
object object_del_el(object target, const char * name);
object object_del(object target, const char * path);
void object_mod_el(object target, const char * name, list_type type, unsigned long long value);
void object_mod(object target, const char * path, list_type type, unsigned long long value);
object object_JSON_read_one(object json_as_obj, const char * prep_json_string);
object object_JSON_read(const char * json_string);
void object_JSON_stringify(char * dest, object obj, format_options f);
#ifdef __cplusplus
}
#endif
#endif