diff options
Diffstat (limited to 'src/H5Oprivate.h')
-rw-r--r-- | src/H5Oprivate.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/H5Oprivate.h b/src/H5Oprivate.h index 651dbca..c384362 100644 --- a/src/H5Oprivate.h +++ b/src/H5Oprivate.h @@ -216,6 +216,22 @@ typedef struct H5O_layout_t { void *buf; /*buffer for compact dataset */ } H5O_layout_t; +/* Enable reading/writing "bogus" messages */ +/* #define H5O_ENABLE_BOGUS */ + +#ifdef H5O_ENABLE_BOGUS +/* + * "Bogus" Message. + */ +#define H5O_BOGUS_ID 0x0009 +H5_DLLVAR const H5O_class_t H5O_BOGUS[1]; + +#define H5O_BOGUS_VALUE 0xdeadbeef +typedef struct H5O_bogus_t { + unsigned u; /* Hold the bogus info */ +} H5O_bogus_t; +#endif /* H5O_ENABLE_BOGUS */ + /* * Filter pipeline message. */ @@ -362,6 +378,10 @@ H5_DLL int H5O_append(H5F_t *f, H5O_t *oh, const H5O_class_t *type, unsigned flags, const void *mesg); H5_DLL herr_t H5O_touch(H5G_entry_t *ent, hbool_t force); H5_DLL herr_t H5O_touch_oh(H5F_t *f, H5O_t *oh, hbool_t force); +#ifdef H5O_ENABLE_BOGUS +H5_DLL herr_t H5O_bogus(H5G_entry_t *ent); +H5_DLL herr_t H5O_bogus_oh(H5F_t *f, H5O_t *oh); +#endif /* H5O_ENABLE_BOGUS */ H5_DLL herr_t H5O_remove(H5G_entry_t *ent, const H5O_class_t *type, int sequence); H5_DLL herr_t H5O_reset(const H5O_class_t *type, void *native); |