summaryrefslogtreecommitdiffstats
path: root/src/H5PL.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5PL.c')
-rw-r--r--src/H5PL.c22
1 files changed, 16 insertions, 6 deletions
diff --git a/src/H5PL.c b/src/H5PL.c
index a083f5a..3eb3392 100644
--- a/src/H5PL.c
+++ b/src/H5PL.c
@@ -417,12 +417,13 @@ done:
*-------------------------------------------------------------------------
*/
herr_t
-H5PLappend(const char* plugin_path)
+H5PLappend(const char *plugin_path)
{
herr_t ret_value = SUCCEED; /* Return value */
char *dl_path = NULL;
FUNC_ENTER_API(FAIL)
+ H5TRACE1("e", "*s", plugin_path);
if(H5PL_num_paths_g == H5PL_MAX_PATH_NUM)
HGOTO_ERROR(H5E_PLUGIN, H5E_NOSPACE, FAIL, "too many directories in path for table")
if(NULL == plugin_path)
@@ -450,13 +451,14 @@ done:
*-------------------------------------------------------------------------
*/
herr_t
-H5PLprepend(const char* plugin_path)
+H5PLprepend(const char *plugin_path)
{
herr_t ret_value = SUCCEED; /* Return value */
char *dl_path = NULL;
unsigned int plindex;
FUNC_ENTER_API(FAIL)
+ H5TRACE1("e", "*s", plugin_path);
if(H5PL_num_paths_g == H5PL_MAX_PATH_NUM)
HGOTO_ERROR(H5E_PLUGIN, H5E_NOSPACE, FAIL, "too many directories in path for table")
if(NULL == plugin_path)
@@ -486,12 +488,13 @@ done:
*-------------------------------------------------------------------------
*/
herr_t
-H5PLreplace(const char* plugin_path, unsigned int index)
+H5PLreplace(const char *plugin_path, unsigned int index)
{
herr_t ret_value = SUCCEED; /* Return value */
char *dl_path = NULL;
FUNC_ENTER_API(FAIL)
+ H5TRACE2("e", "*sIu", plugin_path, index);
if(NULL == plugin_path)
HGOTO_ERROR(H5E_PLUGIN, H5E_CANTALLOC, FAIL, "no path provided")
if(index >= H5PL_MAX_PATH_NUM)
@@ -520,13 +523,14 @@ done:
*-------------------------------------------------------------------------
*/
herr_t
-H5PLinsert(const char* plugin_path, unsigned int index)
+H5PLinsert(const char *plugin_path, unsigned int index)
{
herr_t ret_value = SUCCEED; /* Return value */
char *dl_path = NULL;
unsigned int plindex;
FUNC_ENTER_API(FAIL)
+ H5TRACE2("e", "*sIu", plugin_path, index);
if(H5PL_num_paths_g == H5PL_MAX_PATH_NUM)
HGOTO_ERROR(H5E_PLUGIN, H5E_NOSPACE, FAIL, "too many directories in path for table")
if(NULL == plugin_path)
@@ -636,14 +640,20 @@ done:
*
* Purpose: Query the size of the current list of plugin paths.
*
- * Return: Non-negative or success.
+ * Return: Plugin path size (can't indicate failure due to unsigned type)
*
*-------------------------------------------------------------------------
*/
unsigned int
H5PLsize(void)
{
- return (unsigned int)H5PL_num_paths_g;
+ unsigned int ret_value = (unsigned int)H5PL_num_paths_g;
+
+ FUNC_ENTER_API(0)
+ H5TRACE0("Iu","");
+
+done:
+ FUNC_LEAVE_API(ret_value)
} /* end H5PLsize() */