summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2017-03-30 18:22:43 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2017-03-30 19:41:33 (GMT)
commit4014d5109ce952e62cdaf8dd5f893f72c80d0779 (patch)
treed02c61e3368f0ef669c818150799be660740dc1c /src
parentbe52ecea8ca22aacf928d59cd09d13533c9fc8fb (diff)
downloadhdf5-4014d5109ce952e62cdaf8dd5f893f72c80d0779.zip
hdf5-4014d5109ce952e62cdaf8dd5f893f72c80d0779.tar.gz
hdf5-4014d5109ce952e62cdaf8dd5f893f72c80d0779.tar.bz2
HDFFV-10143 change put to replace and add const
Diffstat (limited to 'src')
-rw-r--r--src/H5PL.c12
-rw-r--r--src/H5PLpublic.h8
2 files changed, 10 insertions, 10 deletions
diff --git a/src/H5PL.c b/src/H5PL.c
index a359963..7986b30 100644
--- a/src/H5PL.c
+++ b/src/H5PL.c
@@ -407,7 +407,7 @@ done:
*-------------------------------------------------------------------------
*/
herr_t
-H5PLappend(char* plugin_path)
+H5PLappend(const char* plugin_path)
{
herr_t ret_value = SUCCEED; /* Return value */
char *dl_path = NULL;
@@ -445,7 +445,7 @@ done:
*-------------------------------------------------------------------------
*/
herr_t
-H5PLprepend(char* plugin_path)
+H5PLprepend(const char* plugin_path)
{
herr_t ret_value = SUCCEED; /* Return value */
char *dl_path = NULL;
@@ -477,7 +477,7 @@ done:
/*-------------------------------------------------------------------------
- * Function: H5PLput
+ * Function: H5PLreplace
*
* Purpose: Replace the path at the specified index.
*
@@ -486,7 +486,7 @@ done:
*-------------------------------------------------------------------------
*/
herr_t
-H5PLput(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;
@@ -510,7 +510,7 @@ done:
dl_path = (char *)H5MM_xfree(dl_path);
FUNC_LEAVE_API(ret_value)
-} /* end H5PLput() */
+} /* end H5PLreplace() */
/*-------------------------------------------------------------------------
@@ -523,7 +523,7 @@ done:
*-------------------------------------------------------------------------
*/
herr_t
-H5PLinsert(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;
diff --git a/src/H5PLpublic.h b/src/H5PLpublic.h
index f3fe497..ca46542 100644
--- a/src/H5PLpublic.h
+++ b/src/H5PLpublic.h
@@ -44,10 +44,10 @@ extern "C" {
/* plugin state */
H5_DLL herr_t H5PLset_loading_state(unsigned int plugin_type);
H5_DLL herr_t H5PLget_loading_state(unsigned int* plugin_type/*out*/);
-H5_DLL herr_t H5PLappend(char* plugin_path);
-H5_DLL herr_t H5PLprepend(char* plugin_path);
-H5_DLL herr_t H5PLput(char* plugin_path, unsigned int index);
-H5_DLL herr_t H5PLinsert(char* plugin_path, unsigned int index);
+H5_DLL herr_t H5PLappend(const char* plugin_path);
+H5_DLL herr_t H5PLprepend(const char* plugin_path);
+H5_DLL herr_t H5PLreplace(const char* plugin_path, unsigned int index);
+H5_DLL herr_t H5PLinsert(const char* plugin_path, unsigned int index);
H5_DLL herr_t H5PLremove(unsigned int index);
H5_DLL const char* H5PLget(unsigned int index);
H5_DLL unsigned int H5PLsize(void);