Lines Matching refs:bof_t
52 } bof_t; typedef
54 extern int bof_file_flush(bof_t *root);
55 extern bof_t *bof_file_new(const char *filename);
56 extern int bof_object_dump(bof_t *object, const char *filename);
59 extern bof_t *bof_object(void);
60 extern bof_t *bof_object_get(bof_t *object, const char *keyname);
61 extern int bof_object_set(bof_t *object, const char *keyname, bof_t *value);
63 extern bof_t *bof_array(void);
64 extern int bof_array_append(bof_t *array, bof_t *value);
65 extern bof_t *bof_array_get(bof_t *bof, unsigned i);
66 extern unsigned bof_array_size(bof_t *bof);
68 extern bof_t *bof_blob(unsigned size, void *value);
69 extern unsigned bof_blob_size(bof_t *bof);
70 extern void *bof_blob_value(bof_t *bof);
72 extern bof_t *bof_string(const char *value);
74 extern bof_t *bof_int32(int32_t value);
75 extern int32_t bof_int32_value(bof_t *bof);
77 extern void bof_decref(bof_t *bof);
78 extern void bof_incref(bof_t *bof);
79 extern bof_t *bof_load_file(const char *filename);
80 extern int bof_dump_file(bof_t *bof, const char *filename);
81 extern void bof_print(bof_t *bof);
83 static inline int bof_is_object(bof_t *bof){return (bof->type == BOF_TYPE_OBJECT);} in bof_is_object()
84 static inline int bof_is_blob(bof_t *bof){return (bof->type == BOF_TYPE_BLOB);} in bof_is_blob()
85 static inline int bof_is_null(bof_t *bof){return (bof->type == BOF_TYPE_NULL);} in bof_is_null()
86 static inline int bof_is_int32(bof_t *bof){return (bof->type == BOF_TYPE_INT32);} in bof_is_int32()
87 static inline int bof_is_array(bof_t *bof){return (bof->type == BOF_TYPE_ARRAY);} in bof_is_array()
88 static inline int bof_is_string(bof_t *bof){return (bof->type == BOF_TYPE_STRING);} in bof_is_string()