diff options
author | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2012-06-05 15:13:32 (GMT) |
---|---|---|
committer | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2012-06-05 15:13:32 (GMT) |
commit | f38d9a2149d189fa82b5b5d491f7ed10feffc900 (patch) | |
tree | 34491ca0d36a6e1ecf259542e809f98048cc72f4 /src/H5VL.c | |
parent | a3d87651df4a385eb533e1c0a535282552eb40d2 (diff) | |
download | hdf5-f38d9a2149d189fa82b5b5d491f7ed10feffc900.zip hdf5-f38d9a2149d189fa82b5b5d491f7ed10feffc900.tar.gz hdf5-f38d9a2149d189fa82b5b5d491f7ed10feffc900.tar.bz2 |
[svn-r22436] add a public routine to get the name of the VOL plugin associated with a File or object
Diffstat (limited to 'src/H5VL.c')
-rw-r--r-- | src/H5VL.c | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -265,3 +265,33 @@ H5VLunregister(hid_t vol_id) done: FUNC_LEAVE_API(ret_value) } /* end H5VLunregister() */ + + +/*------------------------------------------------------------------------- + * Function: H5VLget_plugin_name + * + * Purpose: Returns the plugin name for the VOL associated with the + * object or file ID + * + * Return: Success: The length of the plugin name + * Failure: Negative + * + * Programmer: Mohamad Chaarawi + * June, 2012 + * + *------------------------------------------------------------------------- + */ +ssize_t +H5VLget_plugin_name(hid_t id, char *name/*out*/, size_t size) +{ + ssize_t ret_value; + + FUNC_ENTER_API(FAIL) + H5TRACE3("i", "*x", id, name, size); + + if((ret_value = H5VL_get_plugin_name(id, name, size)) < 0) + HGOTO_ERROR(H5E_VOL, H5E_CANTGET, FAIL, "Can't get plugin name") + +done: + FUNC_LEAVE_API(ret_value) +} /* end H5VLget_plugin_name() */ |