summaryrefslogtreecommitdiffstats
path: root/src/H5I.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2012-07-17 21:03:56 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2012-07-17 21:03:56 (GMT)
commit76cf50e27874f458c7958157fbadde017efa56df (patch)
treebb39e409e17b07f0a0bd475ec6cef9c8289d5416 /src/H5I.c
parent1e612c3a46880773d53ad315f3aef2104abb9347 (diff)
downloadhdf5-76cf50e27874f458c7958157fbadde017efa56df.zip
hdf5-76cf50e27874f458c7958157fbadde017efa56df.tar.gz
hdf5-76cf50e27874f458c7958157fbadde017efa56df.tar.bz2
[svn-r22587] update the H5I_register_aux to not take the free routine, as it is registered already in the class for each type
Diffstat (limited to 'src/H5I.c')
-rw-r--r--src/H5I.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/H5I.c b/src/H5I.c
index a48a544..1be0d4f 100644
--- a/src/H5I.c
+++ b/src/H5I.c
@@ -2483,26 +2483,13 @@ done:
*-------------------------------------------------------------------------
*/
herr_t
-H5I_register_aux(hid_t id, void *aux_ptr, H5I_free2_t free_func)
+H5I_register_aux(hid_t id, void *aux_ptr)
{
- H5I_id_type_t *type_ptr = NULL; /*ptr to the type*/
H5I_id_info_t *id_ptr = NULL; /*ptr to the id*/
- H5I_type_t type;
herr_t ret_value = SUCCEED; /*return value*/
FUNC_ENTER_NOAPI_NOINIT
- /* Check arguments */
- type = H5I_TYPE(id);
- if (type <= H5I_BADID || type >= H5I_next_type)
- HGOTO_DONE(FAIL);
-
- type_ptr = H5I_id_type_list_g[type];
- if (!type_ptr || type_ptr->count <= 0)
- HGOTO_ERROR(H5E_ATOM, H5E_CANTGET, FAIL, "invalid type")
-
- type_ptr->cls->free_aux = free_func;
-
if(NULL == (id_ptr = H5I_find_id(id)))
HGOTO_ERROR(H5E_ATOM, H5E_CANTGET, FAIL, "Invalid ID")