Lines Matching refs:HDF

33  * we are merely using part of the HDF name for lookup, and that might
38 * it, we use the HDF node itself as the key, and have specific
44 HDF *ha = (HDF *)a;
45 HDF *hb = (HDF *)b;
52 HDF *ha = (HDF *)a;
56 static NEOERR *_alloc_hdf (HDF **hdf, const char *name, size_t nlen,
57 const char *value, int dup, int wf, HDF *top)
59 *hdf = calloc (1, sizeof (HDF));
123 static void _dealloc_hdf (HDF **hdf)
125 HDF *myhdf = *hdf;
126 HDF *next = NULL;
165 NEOERR* hdf_init (HDF **hdf)
168 HDF *my_hdf;
187 void hdf_destroy (HDF **hdf)
196 static int _walk_hdf (HDF *hdf, const char *name, HDF **node)
198 HDF *parent = NULL;
199 HDF *hp = hdf;
200 HDF hash_key;
293 int hdf_get_int_value (HDF *hdf, const char *name, int defval)
295 HDF *node;
310 char* hdf_get_value (HDF *hdf, const char *name, const char *defval)
312 HDF *node;
321 char* hdf_get_valuevf (HDF *hdf, const char *namefmt, va_list ap)
323 HDF *node;
337 char* hdf_get_valuef (HDF *hdf, const char *namefmt, ...)
348 NEOERR* hdf_get_copy (HDF *hdf, const char *name, char **value,
351 HDF *node;
377 HDF* hdf_get_obj (HDF *hdf, const char *name)
379 HDF *obj;
385 HDF* hdf_get_child (HDF *hdf, const char *name)
387 HDF *obj;
393 HDF_ATTR* hdf_get_attr (HDF *hdf, const char *name)
395 HDF *obj;
401 NEOERR* hdf_set_attr (HDF *hdf, const char *name, const char *key,
404 HDF *obj;
460 HDF* hdf_obj_child (HDF *hdf)
462 HDF *obj;
473 HDF* hdf_obj_next (HDF *hdf)
479 HDF* hdf_obj_top (HDF *hdf)
485 HDF_ATTR* hdf_obj_attr (HDF *hdf)
491 char* hdf_obj_name (HDF *hdf)
497 char* hdf_obj_value (HDF *hdf)
554 NEOERR* _hdf_hash_level(HDF *hdf)
557 HDF *child;
572 static NEOERR* _set_value (HDF *hdf, const char *name, const char *value,
574 HDF **set_node)
577 HDF *hn, *hp, *hs;
578 HDF hash_key;
714 * at the last part of the HDF name) */
750 /* If there is a matching node and we're at the end of the HDF
803 /* At this point, we're done if there is not more HDF name space to
821 NEOERR* hdf_set_value (HDF *hdf, const char *name, const char *value)
826 NEOERR* hdf_set_value_attr (HDF *hdf, const char *name, const char *value,
832 NEOERR* hdf_set_symlink (HDF *hdf, const char *src, const char *dest)
837 NEOERR* hdf_set_int_value (HDF *hdf, const char *name, int value)
845 NEOERR* hdf_set_buf (HDF *hdf, const char *name, char *value)
850 NEOERR* hdf_set_copy (HDF *hdf, const char *dest, const char *src)
852 HDF *node;
860 NEOERR* hdf_set_valuevf (HDF *hdf, const char *fmt, va_list ap)
884 NEOERR* hdf_set_valuef (HDF *hdf, const char *fmt, ...)
895 NEOERR* hdf_get_node (HDF *hdf, const char *name, HDF **ret)
908 NEOERR *hdf_sort_obj (HDF *h, int (*compareFunc)(const void *, const void *))
912 HDF *p, *c;
943 NEOERR* hdf_remove_tree (HDF *hdf, const char *name)
945 HDF *hp = hdf;
946 HDF *lp = NULL, *ln = NULL; /* last parent, last node */
1051 static NEOERR * _copy_nodes (HDF *dest, HDF *src)
1054 HDF *dt, *st;
1077 NEOERR* hdf_copy (HDF *dest, const char *name, HDF *src)
1080 HDF *node;
1142 static NEOERR* hdf_dump_cb(HDF *hdf, const char *prefix, int dtype, int lvl,
1258 NEOERR* hdf_dump_str (HDF *hdf, const char *prefix, int dtype, STRING *str)
1263 NEOERR* hdf_dump(HDF *hdf, const char *prefix)
1268 NEOERR* hdf_dump_format (HDF *hdf, int lvl, FILE *fp)
1273 NEOERR *hdf_write_file (HDF *hdf, const char *path)
1292 NEOERR *hdf_write_file_atomic (HDF *hdf, const char *path)
1324 NEOERR *hdf_write_string (HDF *hdf, char **s)
1558 static NEOERR* _hdf_read_string (HDF *hdf, const char **str, STRING *line,
1562 HDF *lower;
1764 NEOERR * hdf_read_string (HDF *hdf, const char *str)
1775 NEOERR * hdf_read_string_ignore (HDF *hdf, const char *str, int ignore)
1787 /* The search path is part of the HDF by convention */
1788 NEOERR* hdf_search_path (HDF *hdf, const char *path, char *full)
1790 HDF *paths;
1821 NEOERR* hdf_read_file (HDF *hdf, const char *path)
1828 HDF *top = hdf->top;
1860 void hdf_register_fileload(HDF *hdf, void *ctx, HDFFILELOAD fileload)