summaryrefslogtreecommitdiffstats
path: root/src/H5Tpublic.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1997-08-29 23:18:35 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1997-08-29 23:18:35 (GMT)
commit38a47455632a9845c5ddce1462e541e46c308cdc (patch)
tree089fb1be6550b4229e9dfa2c0299508959f1a018 /src/H5Tpublic.h
parentee40da82dfea0e32621afa181acaf99e73eff534 (diff)
downloadhdf5-38a47455632a9845c5ddce1462e541e46c308cdc.zip
hdf5-38a47455632a9845c5ddce1462e541e46c308cdc.tar.gz
hdf5-38a47455632a9845c5ddce1462e541e46c308cdc.tar.bz2
[svn-r58] Added H5Tget_type and a few minor bug-fixes.
Diffstat (limited to 'src/H5Tpublic.h')
-rw-r--r--src/H5Tpublic.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/H5Tpublic.h b/src/H5Tpublic.h
index 48fdfce..60686fa 100644
--- a/src/H5Tpublic.h
+++ b/src/H5Tpublic.h
@@ -23,7 +23,7 @@
#include <H5public.h>
#include <H5Apublic.h>
-/* Define atomic datatypes */
+/* Define atomic datatype bases */
#define H5T_CHAR MAKE_ATOM(H5_DATATYPE,0)
#define H5T_INT MAKE_ATOM(H5_DATATYPE,1)
#define H5T_FLOAT MAKE_ATOM(H5_DATATYPE,2)
@@ -33,6 +33,10 @@
#define H5T_PPTR MAKE_ATOM(H5_DATATYPE,6)
#define H5T_COMPOUND MAKE_ATOM(H5_DATATYPE,7)
+/* Define atomic datatype architectures */
+#define H5T_BIGENDIAN 0
+#define H5T_LITTLEENDIAN 1
+
typedef struct {
hatom_t base; /* Basic datatype */
uint8 len; /* Length of base-type, in bytes */
@@ -48,6 +52,7 @@ uint32 H5Tget_num_fields(hatom_t tid);
hbool_t H5Tis_field_atomic(hatom_t tid,uintn fidx);
hbool_t H5Tis_atomic(hatom_t tid);
herr_t H5Tset_type(hatom_t tid,hatom_t base,uint8 len,uint8 arch);
+herr_t H5Tget_type(hatom_t tid,hatom_t *base,uint8 *len,uint8 *arch);
uintn H5Tsize(hatom_t tid, uint8 len, uint8 arch, hbool_t mem_flag);
herr_t H5Tadd_field (hatom_t tid, const char *name, hatom_t base, uint8 len,
uint8 arch, hatom_t space);