From bf66573f5535eca039a4607ad99d8984c579ca65 Mon Sep 17 00:00:00 2001 From: Mohamad Chaarawi Date: Mon, 23 Jul 2012 10:38:39 -0500 Subject: [svn-r22596] minor things --- src/H5Tcommit.c | 18 +++++++++++++++++- src/H5VLpublic.h | 8 ++++---- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/src/H5Tcommit.c b/src/H5Tcommit.c index 4566bc2..9d02c72 100644 --- a/src/H5Tcommit.c +++ b/src/H5Tcommit.c @@ -1023,10 +1023,26 @@ done: FUNC_LEAVE_NOAPI(ret_value) } /* end H5T_close_datatype() */ + +/*------------------------------------------------------------------------- + * Function: H5T_set_vol_object + * + * Purpose: Set the vol_object in the H5T_t struct. + * Called from outside the H5T package + * + * Return: Succeed + * + * Programmer: Mohamad Chaarawi + * June 2012 + * + *------------------------------------------------------------------------- + */ herr_t H5T_set_vol_object(H5T_t *type, void *vol_obj) { FUNC_ENTER_NOAPI_NOINIT_NOERR + type->vol_obj = vol_obj; + FUNC_LEAVE_NOAPI(SUCCEED) -} +} /* end H5T_set_vol_object() */ diff --git a/src/H5VLpublic.h b/src/H5VLpublic.h index bee3154..75a014b 100644 --- a/src/H5VLpublic.h +++ b/src/H5VLpublic.h @@ -312,6 +312,10 @@ struct H5VL_t { int nrefs; /* number of references by objects using this struct */ }; +#ifdef __cplusplus +extern "C" { +#endif + /* ATTRIBUTE OBJECT ROUTINES */ H5_DLL void *H5VLattr_create(void *obj, H5VL_loc_params_t loc_params, H5VL_t *vol_plugin, const char *attr_name, hid_t acpl_id, hid_t aapl_id, hid_t req); H5_DLL void *H5VLattr_open(void *obj, H5VL_loc_params_t loc_params, H5VL_t *vol_plugin, const char *name, hid_t aapl_id, hid_t req); @@ -373,10 +377,6 @@ H5_DLL herr_t H5VLobject_misc(void *obj, H5VL_loc_params_t loc_params, H5VL_t *v H5_DLL herr_t H5VLobject_optional(void *obj, H5VL_loc_params_t loc_params, H5VL_t *vol_plugin, H5VL_object_misc_t optional_type, hid_t req, va_list arguments); H5_DLL herr_t H5VLobject_close(void *obj, H5VL_loc_params_t loc_params, H5VL_t *vol_plugin, hid_t req); -#ifdef __cplusplus -extern "C" { -#endif - /* Function prototypes */ H5_DLL hid_t H5VLregister(const H5VL_class_t *cls); H5_DLL herr_t H5VLunregister(hid_t plugin_id); -- cgit v0.12