summaryrefslogtreecommitdiffstats
path: root/src/H5Gpublic.h
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2002-04-26 20:34:46 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2002-04-26 20:34:46 (GMT)
commit94f11385a6ad93d66df9458bb9dfeec05c7c2a45 (patch)
tree8389590bcde56d8ccc2a8e0364af0e88cdf9f7cf /src/H5Gpublic.h
parent124979bfc261386070516a81f26e7a28417c56d3 (diff)
downloadhdf5-94f11385a6ad93d66df9458bb9dfeec05c7c2a45.zip
hdf5-94f11385a6ad93d66df9458bb9dfeec05c7c2a45.tar.gz
hdf5-94f11385a6ad93d66df9458bb9dfeec05c7c2a45.tar.bz2
[svn-r5273]
Purpose: New feature Description: Allow H5Glink and H5Gmove to handle links across different locations. Solution: Added H5Glink2 and H5Gmove2 functions with new parameter of destination location. Platforms tested: Linux 2.2(eirene)
Diffstat (limited to 'src/H5Gpublic.h')
-rw-r--r--src/H5Gpublic.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/H5Gpublic.h b/src/H5Gpublic.h
index 2071b26..943aaa5 100644
--- a/src/H5Gpublic.h
+++ b/src/H5Gpublic.h
@@ -67,6 +67,11 @@ typedef struct H5G_stat_t {
size_t linklen; /*symbolic link value length */
} H5G_stat_t;
+#define H5G_SAME_LOC 0
+#define H5Glink(cur_loc_id, type, cur_name, new_name) \
+ H5Glink2(cur_loc_id, cur_name, type, H5G_SAME_LOC, new_name)
+#define H5Gmove(src_loc_id, src_name, dst_name) \
+ H5Gmove2(src_loc_id, src_name, H5G_SAME_LOC, dst_name)
typedef herr_t (*H5G_iterate_t)(hid_t group, const char *name,
void *op_data);
@@ -76,9 +81,10 @@ __DLL__ hid_t H5Gopen(hid_t loc_id, const char *name);
__DLL__ herr_t H5Gclose(hid_t group_id);
__DLL__ herr_t H5Giterate(hid_t loc_id, const char *name, int *idx,
H5G_iterate_t op, void *op_data);
-__DLL__ herr_t H5Gmove(hid_t loc_id, const char *src, const char *dst);
-__DLL__ herr_t H5Glink(hid_t loc_id, H5G_link_t type, const char *cur_name,
- const char *new_name);
+__DLL__ herr_t H5Gmove2(hid_t src_loc, const char *src, hid_t dst_loc,
+ const char *dst);
+__DLL__ herr_t H5Glink2(hid_t src_loc, const char *cur_name, H5G_link_t type,
+ hid_t dst_loc, const char *new_name);
__DLL__ herr_t H5Gunlink(hid_t loc_id, const char *name);
__DLL__ herr_t H5Gget_objinfo(hid_t loc_id, const char *name,
hbool_t follow_link, H5G_stat_t *statbuf/*out*/);