summaryrefslogtreecommitdiffstats
path: root/src/H5Tpublic.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1999-08-25 22:01:41 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1999-08-25 22:01:41 (GMT)
commit9b934aa767e8c177a0ac84cc808dec9ac49135ae (patch)
tree0e8840d231ceab518613dace000a3b9e19c81da8 /src/H5Tpublic.h
parenta92c1a7f2cd831a866dd81fe69e0034bfa9338f8 (diff)
downloadhdf5-9b934aa767e8c177a0ac84cc808dec9ac49135ae.zip
hdf5-9b934aa767e8c177a0ac84cc808dec9ac49135ae.tar.gz
hdf5-9b934aa767e8c177a0ac84cc808dec9ac49135ae.tar.bz2
[svn-r1599] Changed return type of H5Tenum_nameof and H5Tenum_valueof from hid_t to herr_t
Diffstat (limited to 'src/H5Tpublic.h')
-rw-r--r--src/H5Tpublic.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/H5Tpublic.h b/src/H5Tpublic.h
index e595da6..d9284f1 100644
--- a/src/H5Tpublic.h
+++ b/src/H5Tpublic.h
@@ -156,6 +156,9 @@ typedef struct {
void *p; /* Pointer to VL data */
} hvl_t;
+/* Variable Length String information */
+#define H5T_VARIABLE ((size_t)(-1)) /* Indicate that a string is variable length (null-terminated in C, instead of fixed length) */
+
/* All data type conversion functions are... */
typedef herr_t (*H5T_conv_t) (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata,
size_t nelmts, size_t stride, void *buf,
@@ -460,9 +463,9 @@ __DLL__ herr_t H5Tpack(hid_t type_id);
/* Operations defined on enumeration data types */
__DLL__ hid_t H5Tenum_create(hid_t base_id);
__DLL__ herr_t H5Tenum_insert(hid_t type, const char *name, void *value);
-__DLL__ hid_t H5Tenum_nameof(hid_t type, void *value, char *name/*out*/,
+__DLL__ herr_t H5Tenum_nameof(hid_t type, void *value, char *name/*out*/,
size_t size);
-__DLL__ hid_t H5Tenum_valueof(hid_t type, const char *name,
+__DLL__ herr_t H5Tenum_valueof(hid_t type, const char *name,
void *value/*out*/);
/* Operations defined on variable-length data types */