summaryrefslogtreecommitdiffstats
path: root/src/H5Fprivate.h
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2001-10-15 19:36:48 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2001-10-15 19:36:48 (GMT)
commitfe76b00dc68cf59cf38a2f1b3de5e0a6a12afb9e (patch)
treededfc092621626a511888fab242ce08655f17f3e /src/H5Fprivate.h
parent05eb7b7a848f94061f15736963fce1e9ee1ee6fd (diff)
downloadhdf5-fe76b00dc68cf59cf38a2f1b3de5e0a6a12afb9e.zip
hdf5-fe76b00dc68cf59cf38a2f1b3de5e0a6a12afb9e.tar.gz
hdf5-fe76b00dc68cf59cf38a2f1b3de5e0a6a12afb9e.tar.bz2
[svn-r4543]
Purpose: Changed the file creation property list to the new generic property list. Platform tested: IRIX64, SunOS5.7, FreeBSD
Diffstat (limited to 'src/H5Fprivate.h')
-rw-r--r--src/H5Fprivate.h63
1 files changed, 41 insertions, 22 deletions
diff --git a/src/H5Fprivate.h b/src/H5Fprivate.h
index 46cc34e..10f8de2 100644
--- a/src/H5Fprivate.h
+++ b/src/H5Fprivate.h
@@ -212,13 +212,9 @@ typedef struct H5F_t H5F_t;
#define H5F_addr_pow2(N) ((haddr_t)1<<(N))
/* size of size_t and off_t as they exist on disk */
-#ifdef H5F_PACKAGE
-#define H5F_SIZEOF_ADDR(F) ((F)->shared->fcpl->sizeof_addr)
-#define H5F_SIZEOF_SIZE(F) ((F)->shared->fcpl->sizeof_size)
-#else /* H5F_PACKAGE */
-#define H5F_SIZEOF_ADDR(F) (H5F_sizeof_addr(F))
-#define H5F_SIZEOF_SIZE(F) (H5F_sizeof_size(F))
-#endif /* H5F_PACKAGE */
+#define H5F_SIZEOF_ADDR(F) (H5F_sizeof_addr(F))
+#define H5F_SIZEOF_SIZE(F) (H5F_sizeof_size(F))
+
__DLL__ size_t H5F_sizeof_addr(H5F_t *f);
__DLL__ size_t H5F_sizeof_size(H5F_t *f);
@@ -254,20 +250,44 @@ __DLL__ size_t H5F_sizeof_size(H5F_t *f);
case 2: UINT16DECODE(p,l); break; \
}
-/*
- * File-creation property list.
- */
-typedef struct H5F_create_t {
- hsize_t userblock_size; /* Size of the file user block in bytes */
- int sym_leaf_k; /* 1/2 rank for symbol table leaf nodes */
- int btree_k[8]; /* 1/2 rank for btree internal nodes */
- size_t sizeof_addr; /* Number of bytes in an address */
- size_t sizeof_size; /* Number of bytes for obj sizes */
- int bootblock_ver; /* Version # of the bootblock */
- int freespace_ver; /* Version # of the free-space information*/
- int objectdir_ver; /* Version # of the object directory format*/
- int sharedheader_ver;/* Version # of the shared header format */
-} H5F_create_t;
+/* ========= File Creation properties ============ */
+/* Definitions for the size of the file user block in bytes */
+#define H5F_CRT_USER_BLOCK_NAME "block_size"
+#define H5F_CRT_USER_BLOCK_SIZE sizeof(hsize_t)
+#define H5F_CRT_USER_BLOCK_DEF 0
+/* Definitions for the 1/2 rank for symbol table leaf nodes */
+#define H5F_CRT_SYM_LEAF_NAME "symbol_leaf"
+#define H5F_CRT_SYM_LEAF_SIZE sizeof(int)
+#define H5F_CRT_SYM_LEAF_DEF 4
+/* Definitions for the 1/2 rank for btree internal nodes */
+#define H5F_CRT_BTREE_RANK_NAME "btree_rank"
+#define H5F_CRT_BTREE_RANK_SIZE sizeof(int[8])
+#define H5F_CRT_BTREE_RANK_DEF {16,32,0}
+/* Definitions for byte number in an address */
+#define H5F_CRT_ADDR_BYTE_NUM_NAME "addr_byte_num"
+#define H5F_CRT_ADDR_BYTE_NUM_SIZE sizeof(size_t)
+#define H5F_CRT_ADDR_BYTE_NUM_DEF sizeof(haddr_t)
+/* Definitions for byte number for object size */
+#define H5F_CRT_OBJ_BYTE_NUM_NAME "obj_byte_num"
+#define H5F_CRT_OBJ_BYTE_NUM_SIZE sizeof(size_t)
+#define H5F_CRT_OBJ_BYTE_NUM_DEF sizeof(hsize_t)
+/* Definitions for version number of the bootblock */
+#define H5F_CRT_BOOT_VERS_NAME "boot_version"
+#define H5F_CRT_BOOT_VERS_SIZE sizeof(int)
+#define H5F_CRT_BOOT_VERS_DEF HDF5_BOOTBLOCK_VERSION
+/* Definitions for free-space version number */
+#define H5F_CRT_FREESPACE_VERS_NAME "free_space_version"
+#define H5F_CRT_FREESPACE_VERS_SIZE sizeof(int)
+#define H5F_CRT_FREESPACE_VERS_DEF HDF5_FREESPACE_VERSION
+/* Definitions for object directory version number */
+#define H5F_CRT_OBJ_DIR_VERS_NAME "obj_dir_version"
+#define H5F_CRT_OBJ_DIR_VERS_SIZE sizeof(int)
+#define H5F_CRT_OBJ_DIR_VERS_DEF HDF5_OBJECTDIR_VERSION
+/* Definitions for shared-header format version */
+#define H5F_CRT_SHARE_HEAD_VERS_NAME "share_head_version"
+#define H5F_CRT_SHARE_HEAD_VERS_SIZE sizeof(int)
+#define H5F_CRT_SHARE_HEAD_VERS_DEF HDF5_SHAREDHEADER_VERSION
+
/*
* File-access property list.
@@ -292,7 +312,6 @@ typedef struct H5F_mprop_t {
} H5F_mprop_t;
/* library variables */
-__DLLVAR__ const H5F_create_t H5F_create_dflt;
__DLLVAR__ H5F_access_t H5F_access_dflt;
__DLLVAR__ const H5F_mprop_t H5F_mount_dflt;