Lines Matching refs:bof_t
34 static int bof_entry_grow(bof_t *bof) in bof_entry_grow()
36 bof_t **array; in bof_entry_grow()
51 bof_t *bof_object(void) in bof_object()
53 bof_t *object; in bof_object()
55 object = calloc(1, sizeof(bof_t)); in bof_object()
64 bof_t *bof_object_get(bof_t *object, const char *keyname) in bof_object_get()
76 int bof_object_set(bof_t *object, const char *keyname, bof_t *value) in bof_object_set()
78 bof_t *key; in bof_object_set()
100 bof_t *bof_array(void) in bof_array()
102 bof_t *array = bof_object(); in bof_array()
111 int bof_array_append(bof_t *array, bof_t *value) in bof_array_append()
125 bof_t *bof_array_get(bof_t *bof, unsigned i) in bof_array_get()
132 unsigned bof_array_size(bof_t *bof) in bof_array_size()
142 bof_t *bof_blob(unsigned size, void *value) in bof_blob()
144 bof_t *blob = bof_object(); in bof_blob()
160 unsigned bof_blob_size(bof_t *bof) in bof_blob_size()
167 void *bof_blob_value(bof_t *bof) in bof_blob_value()
177 bof_t *bof_string(const char *value) in bof_string()
179 bof_t *string = bof_object(); in bof_string()
198 bof_t *bof_int32(int32_t value) in bof_int32()
200 bof_t *int32 = bof_object(); in bof_int32()
216 int32_t bof_int32_value(bof_t *bof) in bof_int32_value()
232 static void bof_print_bof(bof_t *bof, int level, int entry) in bof_print_bof()
264 static void bof_print_rec(bof_t *bof, int level, int entry) in bof_print_rec()
274 void bof_print(bof_t *bof) in bof_print()
279 static int bof_read(bof_t *root, FILE *file, long end, int level) in bof_read()
281 bof_t *bof = NULL; in bof_read()
336 bof_t *bof_load_file(const char *filename) in bof_load_file()
338 bof_t *root = bof_object(); in bof_load_file()
372 void bof_incref(bof_t *bof) in bof_incref()
377 void bof_decref(bof_t *bof) in bof_decref()
399 static int bof_file_write(bof_t *bof, FILE *file) in bof_file_write()
439 int bof_dump_file(bof_t *bof, const char *filename) in bof_dump_file()