Lines Matching defs:HDF

23 typedef struct _hdf HDF;
28 * zip file, etc. The HDF is provided so you can choose to use the
32 * your top level HDF node.
37 typedef NEOERR* (*HDFFILELOAD)(void *ctx, HDF *hdf, const char *filename,
76 * Function: hdf_init - Initialize an HDF data set
77 * Description: hdf_init initializes an HDF data set and returns the
79 * Input: hdf - pointer to an HDF pointer
83 NEOERR* hdf_init (HDF **hdf);
86 * Function: hdf_destroy - deallocate an HDF data set
88 * with an hdf data set. Although you can pass an HDF node
93 * Input: hdf - pointer to an HDF data set allocated with hdf_init
97 void hdf_destroy (HDF **hdf);
102 * Description: hdf_get_int_value walks the HDF data set pointed to by
106 * Input: hdf -> a node in an HDF data set
113 int hdf_get_int_value (HDF *hdf, const char *name, int defval);
130 char *hdf_get_value (HDF *hdf, const char *name, const char *defval);
147 char* hdf_get_valuevf (HDF *hdf, const char *namefmt, va_list ap);
164 char* hdf_get_valuef (HDF *hdf, const char *namefmt, ...)
168 * Function: hdf_get_copy - Returns a copy of a string in the HDF data set
179 NEOERR* hdf_get_copy (HDF *hdf, const char *name, char **value,
183 * Function: hdf_get_obj - return the HDF data set node at a named location
191 HDF* hdf_get_obj (HDF *hdf, const char *name);
205 NEOERR * hdf_get_node (HDF *hdf, const char *name, HDF **ret);
217 HDF* hdf_get_child (HDF *hdf, const char *name);
226 HDF_ATTR* hdf_get_attr (HDF *hdf, const char *name);
235 NEOERR* hdf_set_attr (HDF *hdf, const char *name, const char *key,
241 * accessors to the HDF dataset. Although we do not
242 * currently "hide" the HDF struct implementation, we
249 HDF* hdf_obj_child (HDF *hdf);
253 * Description: hdf_obj_next is an accessor function for the HDF struct
258 HDF* hdf_obj_next (HDF *hdf);
272 HDF* hdf_obj_top (HDF *hdf);
275 * Function: hdf_obj_attr - Return the HDF Attributes for a node
281 HDF_ATTR* hdf_obj_attr (HDF *hdf);
293 char* hdf_obj_name (HDF *hdf);
305 char* hdf_obj_value (HDF *hdf);
324 NEOERR* hdf_set_value (HDF *hdf, const char *name, const char *value);
340 * like reading a single line of an HDF string or file,
348 NEOERR* hdf_set_valuef (HDF *hdf, const char *fmt, ...)
350 NEOERR* hdf_set_valuevf (HDF *hdf, const char *fmt, va_list ap);
363 NEOERR* hdf_set_int_value (HDF *hdf, const char *name, int value);
377 NEOERR* hdf_set_copy (HDF *hdf, const char *dest, const char *src);
394 NEOERR* hdf_set_buf (HDF *hdf, const char *name, char *value);
399 * an HDF dataset. The link is "by name" hence the term
416 NEOERR *hdf_set_symlink (HDF *hdf, const char *src, const char *dest);
419 * Function: hdf_sort_obj - sort the children of an HDF node
420 * Description: hdf_sort_obj will sort the children of an HDF node,
427 * a pointer to an HDF struct, so your comparison function
428 * should work on HDF ** pointers.
429 * Input: h - HDF node
432 * are pointers to pointers to HDF elements. For
435 * HDF **ha = (HDF **)a;
436 * HDF **hb = (HDF **)b;
444 NEOERR *hdf_sort_obj(HDF *h, int (*compareFunc)(const void *, const void *));
447 * Function: hdf_read_file - read an HDF data file
453 NEOERR* hdf_read_file (HDF *hdf, const char *path);
456 * Function: hdf_write_file - write an HDF data file
462 NEOERR* hdf_write_file (HDF *hdf, const char *path);
465 * Function: hdf_write_file_atomic - write an HDF data file atomically
474 NEOERR* hdf_write_file_atomic (HDF *hdf, const char *path);
477 * Function: hdf_read_string - read an HDF string
483 NEOERR* hdf_read_string (HDF *hdf, const char *s);
486 * Function: hdf_read_string_ignore - Read an HDF string and ignore errors
492 NEOERR* hdf_read_string_ignore (HDF *hdf, const char *s, int ignore);
495 * Function: hdf_write_string - serialize an HDF dataset to a string
501 NEOERR* hdf_write_string (HDF *hdf, char **s);
504 * Function: hdf_dump - dump an HDF dataset to stdout
510 NEOERR* hdf_dump (HDF *hdf, const char *prefix);
513 * Function: hdf_dump_format - dump an HDF dataset to FILE *fp
519 NEOERR* hdf_dump_format (HDF *hdf, int lvl, FILE *fp);
522 * Function: hdf_dump_str - dump an HDF dataset to STRING
528 NEOERR* hdf_dump_str(HDF *hdf, const char *prefix, int compact, STRING *str);
531 * Function: hdf_remove_tree - delete a subtree of an HDF dataset
537 NEOERR* hdf_remove_tree (HDF *hdf, const char *name);
540 * Function: hdf_copy - copy part of an HDF dataset to another
541 * Description: hdf_copy is a deep copy of an HDF tree pointed to by
550 NEOERR* hdf_copy (HDF *dest_hdf, const char *name, HDF *src);
553 * Function: hdf_search_path - Find a file given a search path in HDF
564 NEOERR* hdf_search_path (HDF *hdf, const char *path, char *full);
575 * Input: hdf - pointer to a head HDF node
583 void hdf_register_fileload(HDF *hdf, void *ctx, HDFFILELOAD fileload);