diff options
Diffstat (limited to 'src/H5Dprivate.h')
-rw-r--r-- | src/H5Dprivate.h | 41 |
1 files changed, 31 insertions, 10 deletions
diff --git a/src/H5Dprivate.h b/src/H5Dprivate.h index 917e001..b079c89 100644 --- a/src/H5Dprivate.h +++ b/src/H5Dprivate.h @@ -22,10 +22,10 @@ /* Private headers needed by this file */ #include <H5private.h> -#include <H5Cprivate.h> /* for the hobjtype_t type */ +#include <H5Fprivate.h> /* for the H5F_t type */ #include <H5Gprivate.h> /* Symbol tables */ -#include <H5Tprivate.h> /* for the h5_datatype_t type */ -#include <H5Pprivate.h> /* for the H5P_sdim_t type */ +#include <H5Tprivate.h> /* for the H5T_t type */ +#include <H5Pprivate.h> /* for the H5P_t type */ #include <H5Oprivate.h> /* Object Headers */ #define H5D_RESERVED_ATOMS 0 @@ -33,13 +33,34 @@ /* Set the minimum object header size to create objects with */ #define H5D_MINHDR_SIZE 512 -/*-----------------_-- Local function prototypes ----------------------------*/ -hid_t H5D_create(hid_t owner_id, hobjtype_t type, const char *name); -hid_t H5D_access_by_name (hid_t owner_id, const char *name); -hid_t H5D_find_name(hid_t owner_id, hobjtype_t type, const char *name); -herr_t H5D_flush(hid_t oid); -herr_t H5D_release(hid_t oid); -/* in H5Dconv.c */ +/* Dataset creation template */ +typedef struct H5D_create_t { + H5D_layout_t layout; +} H5D_create_t; + +/* Dataset transfer template */ +typedef struct H5D_xfer_t { + int _placeholder; /*unused--delete this later*/ +} H5D_xfer_t; + +typedef struct H5D_t H5D_t; + +extern const H5D_create_t H5D_create_dflt; +extern const H5D_xfer_t H5D_xfer_dflt; + +/* Functions defined in H5D.c */ +H5D_t *H5D_create (H5F_t *f, const char *name, const H5T_t *type, + const H5P_t *space, const H5D_create_t *create_parms); +H5D_t *H5D_open (H5F_t *f, const char *name); +herr_t H5D_close (H5D_t *dataset); +herr_t H5D_read (H5D_t *dataset, const H5T_t *type, const H5P_t *space, + const H5D_xfer_t *xfer_parms, void *buf/*out*/); +herr_t H5D_write (H5D_t *dataset, const H5T_t *type, const H5P_t *space, + const H5D_xfer_t *xfer_parms, const void *buf); +hid_t H5D_find_name (hid_t file_id, group_t UNUSED, const char *name); + + +/* Functions defined in in H5Dconv.c */ herr_t H5D_convert_buf(void *dst,const void *src,uintn len,uintn size); #endif |