diff options
author | James Laird <jlaird@hdfgroup.org> | 2006-10-30 20:24:19 (GMT) |
---|---|---|
committer | James Laird <jlaird@hdfgroup.org> | 2006-10-30 20:24:19 (GMT) |
commit | c19a43d85474fc21308cb3e5e59dbc535edf4174 (patch) | |
tree | 0a269c5f1be8e1c2d5cf3fc9de437d9d2cda8b4f /src/H5Lpublic.h | |
parent | 780fefb82913150a4f95ca25e8d72758e764dbad (diff) | |
download | hdf5-c19a43d85474fc21308cb3e5e59dbc535edf4174.zip hdf5-c19a43d85474fc21308cb3e5e59dbc535edf4174.tar.gz hdf5-c19a43d85474fc21308cb3e5e59dbc535edf4174.tar.bz2 |
[svn-r12831] Changed the API for "unpacking" an external link value to take the size of
the linkval buffer, per Elena and Frank's suggestions while revising
the documentation. Added error checking using this size, as well as a
couple of tests.
Tested on juniper, kagiso, and sol.
Diffstat (limited to 'src/H5Lpublic.h')
-rw-r--r-- | src/H5Lpublic.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Lpublic.h b/src/H5Lpublic.h index a351ab6..6462170 100644 --- a/src/H5Lpublic.h +++ b/src/H5Lpublic.h @@ -127,7 +127,7 @@ H5_DLL herr_t H5Lcreate_soft(const char *target_path, hid_t cur_loc, const char *cur_name, hid_t lcpl_id, hid_t lapl_id); H5_DLL herr_t H5Lunlink(hid_t loc_id, const char *name, hid_t lapl_id); H5_DLL herr_t H5Lget_linkval(hid_t loc_id, const char *name, size_t size, - char *buf/*out*/, hid_t lapl_id); + void *buf/*out*/, hid_t lapl_id); H5_DLL herr_t H5Lget_linkinfo(hid_t loc_id, const char *name, H5L_linkinfo_t *linkbuf /*out*/, hid_t lapl_id); @@ -140,7 +140,7 @@ H5_DLL herr_t H5Lunregister(H5L_type_t id); H5_DLL htri_t H5Lis_registered(H5L_type_t id); /* External link functions */ -H5_DLL herr_t H5Lunpack_elink_val(char * ext_linkval/*in*/, +H5_DLL herr_t H5Lunpack_elink_val(char * ext_linkval/*in*/, size_t link_size, char ** filename/*out*/, char** obj_path /*out*/); H5_DLL herr_t H5Lcreate_external(const char *file_name, const char *obj_name, hid_t link_loc_id, const char *link_name, hid_t lcpl_id, hid_t lapl_id); |