summaryrefslogtreecommitdiffstats
path: root/libglusterfsclient/src/libglusterfsclient.h
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@zresearch.com>2009-05-05 15:58:48 +0530
committerAnand V. Avati <avati@amp.gluster.com>2009-05-05 17:30:25 +0530
commitdec408299ea7a2cb9aa9aa3ea3a3c72ee79169de (patch)
treef414d75a03f41a438dcf473bd8afad05206389b7 /libglusterfsclient/src/libglusterfsclient.h
parent4353ba5cdf0dab29e30997ce5b67055c8f1e1cba (diff)
libglusterfsclient: Add remove API
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'libglusterfsclient/src/libglusterfsclient.h')
-rwxr-xr-xlibglusterfsclient/src/libglusterfsclient.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.h b/libglusterfsclient/src/libglusterfsclient.h
index 7c0c25062..37fcf04dd 100755
--- a/libglusterfsclient/src/libglusterfsclient.h
+++ b/libglusterfsclient/src/libglusterfsclient.h
@@ -1118,6 +1118,31 @@ glusterfs_glh_rename (glusterfs_handle_t handle, const char *oldpath,
*/
int
glusterfs_rename (const char *oldpath, const char *newpath);
+
+
+
+/* Remove a file or directory in the given glusterfs context.
+ *
+ * @handle : Handle identifying the glusterfs context.
+ * @path : Path of the file or directory to be removed.
+ *
+ *
+ * Returns 0 on success and -1 on error with errno set appropriately.
+ */
+int
+glusterfs_glh_remove (glusterfs_handle_t handle, const char *path);
+
+
+
+/* Remove a file or directory.
+ *
+ * @path : Path of the file or directory to be removed. The
+ * path must be pre-fixed with the VMP.
+ *
+ * Returns 0 on success and -1 on error with errno set appropriately.
+ */
+int
+glusterfs_remove (const char *path);
/* FIXME: review the need for these apis */
/* added for log related initialization in booster fork implementation */
void