Lines Matching defs:bof
39 struct bof;
41 typedef struct bof {
42 struct bof **array;
65 extern bof_t *bof_array_get(bof_t *bof, unsigned i);
66 extern unsigned bof_array_size(bof_t *bof);
69 extern unsigned bof_blob_size(bof_t *bof);
70 extern void *bof_blob_value(bof_t *bof);
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);
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);}
84 static inline int bof_is_blob(bof_t *bof){return (bof->type == BOF_TYPE_BLOB);}
85 static inline int bof_is_null(bof_t *bof){return (bof->type == BOF_TYPE_NULL);}
86 static inline int bof_is_int32(bof_t *bof){return (bof->type == BOF_TYPE_INT32);}
87 static inline int bof_is_array(bof_t *bof){return (bof->type == BOF_TYPE_ARRAY);}
88 static inline int bof_is_string(bof_t *bof){return (bof->type == BOF_TYPE_STRING);}