summaryrefslogtreecommitdiffstats
path: root/src/H5Gprivate.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Gprivate.h')
-rw-r--r--src/H5Gprivate.h72
1 files changed, 35 insertions, 37 deletions
diff --git a/src/H5Gprivate.h b/src/H5Gprivate.h
index da07587..425d8a5 100644
--- a/src/H5Gprivate.h
+++ b/src/H5Gprivate.h
@@ -10,12 +10,13 @@
*
* Purpose: Library-visible declarations.
*
- * Modifications:
+ * Modifications:
*
*-------------------------------------------------------------------------
*/
#ifndef _H5Gprivate_H
#define _H5Gprivate_H
+
#include <H5Gpublic.h>
/* Private headers needed by this file */
@@ -29,10 +30,9 @@
#ifdef NDEBUG
# undef H5G_DEBUG
#endif
-
-#define H5G_NODE_MAGIC "SNOD" /*symbol table node magic number */
-#define H5G_NODE_SIZEOF_MAGIC 4 /*sizeof symbol node magic number */
-#define H5G_NO_CHANGE (-1) /*see H5G_ent_modified() */
+#define H5G_NODE_MAGIC "SNOD" /*symbol table node magic number */
+#define H5G_NODE_SIZEOF_MAGIC 4 /*sizeof symbol node magic number */
+#define H5G_NO_CHANGE (-1) /*see H5G_ent_modified() */
/*
* The disk size for a symbol table entry...
@@ -51,10 +51,10 @@
* symbol table entry.
*/
typedef enum H5G_type_t {
- H5G_NOTHING_CACHED = 0, /*nothing is cached, must be 0 */
- H5G_CACHED_STAB = 1, /*symbol table, `stab' */
+ H5G_NOTHING_CACHED = 0, /*nothing is cached, must be 0 */
+ H5G_CACHED_STAB = 1, /*symbol table, `stab' */
- H5G_NCACHED = 2 /*THIS MUST BE LAST */
+ H5G_NCACHED = 2 /*THIS MUST BE LAST */
} H5G_type_t;
/*
@@ -66,8 +66,8 @@ typedef enum H5G_type_t {
*/
typedef union H5G_cache_t {
struct {
- haddr_t btree_addr; /*file address of symbol table B-tree */
- haddr_t heap_addr; /*file address of stab name heap */
+ haddr_t btree_addr; /*file address of symbol table B-tree*/
+ haddr_t heap_addr; /*file address of stab name heap */
} stab;
} H5G_cache_t;
@@ -78,49 +78,47 @@ typedef union H5G_cache_t {
* points.
*/
typedef struct H5G_entry_t {
- hbool_t dirty; /*entry out-of-date? */
- size_t name_off; /*offset of name within name heap */
- haddr_t header; /*file address of object header */
- H5G_type_t type; /*type of information cached */
- H5G_cache_t cache; /*cached data from object header */
- H5F_t *file; /*file to which this obj hdr belongs */
+ hbool_t dirty; /*entry out-of-date? */
+ size_t name_off; /*offset of name within name heap */
+ haddr_t header; /*file address of object header */
+ H5G_type_t type; /*type of information cached */
+ H5G_cache_t cache; /*cached data from object header */
+ H5F_t *file; /*file to which this obj hdr belongs */
} H5G_entry_t;
-
typedef struct H5G_t H5G_t;
/*
* Library prototypes... These are the ones that other packages routinely
* call.
*/
-H5G_t *H5G_create(H5F_t *f, const char *name, size_t size_hint);
-H5G_t *H5G_open(H5F_t *f, const char *name);
-H5G_t *H5G_reopen(H5G_t *grp);
-herr_t H5G_close(H5G_t *grp);
-herr_t H5G_set(H5F_t *f, H5G_t *grp);
-herr_t H5G_push(H5F_t *f, H5G_t *grp);
-herr_t H5G_pop(H5F_t *f);
-herr_t H5G_insert(const char *name, H5G_entry_t *ent);
-herr_t H5G_find(H5F_t *f, const char *name, H5G_entry_t *grp_ent /*out */ ,
- H5G_entry_t *ent /*out */ );
-herr_t H5G_ent_encode(H5F_t *f, uint8 **pp, H5G_entry_t *ent);
-herr_t H5G_ent_decode(H5F_t *f, const uint8 **pp, H5G_entry_t *ent /*out */ );
+H5G_t *H5G_create (H5F_t *f, const char *name, size_t size_hint);
+H5G_t *H5G_open (H5F_t *f, const char *name);
+H5G_t *H5G_reopen (H5G_t *grp);
+herr_t H5G_close (H5G_t *grp);
+herr_t H5G_set (H5F_t *f, H5G_t *grp);
+herr_t H5G_push (H5F_t *f, H5G_t *grp);
+herr_t H5G_pop (H5F_t *f);
+herr_t H5G_insert (const char *name, H5G_entry_t *ent);
+herr_t H5G_find (H5F_t *f, const char *name, H5G_entry_t *grp_ent/*out*/,
+ H5G_entry_t *ent/*out*/);
+herr_t H5G_ent_encode (H5F_t *f, uint8 **pp, H5G_entry_t *ent);
+herr_t H5G_ent_decode (H5F_t *f, const uint8 **pp, H5G_entry_t *ent/*out*/);
/*
* These functions operate on symbol table nodes.
*/
-herr_t H5G_node_debug(H5F_t *f, const haddr_t *addr, FILE * stream,
- intn indent, intn fwidth, const haddr_t *heap);
+herr_t H5G_node_debug (H5F_t *f, const haddr_t *addr, FILE * stream,
+ intn indent, intn fwidth, const haddr_t *heap);
/*
* These functions operate on symbol table entries. They're used primarily
* in the H5O package where header messages are cached in symbol table
* entries. The subclasses of H5O probably don't need them though.
*/
-H5G_entry_t *H5G_ent_calloc(H5G_entry_t *init);
-H5G_cache_t *H5G_ent_cache(H5G_entry_t *ent, H5G_type_t *cache_type);
-herr_t H5G_ent_modified(H5G_entry_t *ent, H5G_type_t cache_type);
-herr_t H5G_ent_debug(H5F_t *f, H5G_entry_t *ent, FILE * stream,
- intn indent, intn fwidth);
-
+H5G_entry_t *H5G_ent_calloc (H5G_entry_t *init);
+H5G_cache_t *H5G_ent_cache (H5G_entry_t *ent, H5G_type_t *cache_type);
+herr_t H5G_ent_modified (H5G_entry_t *ent, H5G_type_t cache_type);
+herr_t H5G_ent_debug (H5F_t *f, H5G_entry_t *ent, FILE * stream, intn indent,
+ intn fwidth);
#endif