summaryrefslogtreecommitdiffstats
path: root/src/H5Ipublic.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-12-11 18:26:51 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-12-11 18:26:51 (GMT)
commitc44fd88805c4b342f80167e9237e5ecf7f71a158 (patch)
tree7d4f50e19482ba113f9a858e0c9c3c50ef9d4051 /src/H5Ipublic.h
parente653e45eced98b037ed17b3174b3663acd04104f (diff)
downloadhdf5-c44fd88805c4b342f80167e9237e5ecf7f71a158.zip
hdf5-c44fd88805c4b342f80167e9237e5ecf7f71a158.tar.gz
hdf5-c44fd88805c4b342f80167e9237e5ecf7f71a158.tar.bz2
[svn-r7932] Purpose:
Add new feature Description: Add new H5I{dec|get|inc}_ref() routines and tests for them. Platforms tested: FreeBSD 4.9 (sleipnir) h5committest
Diffstat (limited to 'src/H5Ipublic.h')
-rw-r--r--src/H5Ipublic.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/H5Ipublic.h b/src/H5Ipublic.h
index eb97994..9c4d950 100644
--- a/src/H5Ipublic.h
+++ b/src/H5Ipublic.h
@@ -27,6 +27,10 @@
* tracing output look better when hid_t values are large numbers. Change the
* GROUP_BITS in H5I.c if the MAXID gets larger than 32 (an assertion will
* fail otherwise).
+ *
+ * When adding groups here, add a section to the 'misc19' test in test/tmisc.c
+ * to verify that the H5I{inc|dec|get}_ref() routines work correctly with in.
+ *
*/
typedef enum {
H5I_BADID = (-1), /*invalid Group */
@@ -59,8 +63,11 @@ extern "C" {
/* Public API functions */
H5_DLL H5I_type_t H5Iget_type(hid_t id);
-H5_DLL hid_t H5Iget_file_id(hid_t obj_id);
-H5_DLL ssize_t H5Iget_name(hid_t object_id, char *name/*out*/, size_t size);
+H5_DLL hid_t H5Iget_file_id(hid_t id);
+H5_DLL ssize_t H5Iget_name(hid_t id, char *name/*out*/, size_t size);
+H5_DLL int H5Iinc_ref(hid_t id);
+H5_DLL int H5Idec_ref(hid_t id);
+H5_DLL int H5Iget_ref(hid_t id);
#ifdef __cplusplus
}