summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2014-02-22 17:17:57 +0000
committerMarcus Meissner <marcus@jet.franken.de>2014-02-22 17:17:57 +0000
commit9399689e7bf70cff9bc1a539d9e0ded556257fcf (patch)
tree8f04b5e697082ba9ade9b623117b0b0281f3437f
parenta8f37587594d6b5b8ac826c90373f1dcdd21650d (diff)
downloadlibgphoto2-9399689e7bf70cff9bc1a539d9e0ded556257fcf.tar.gz
gp_system_rmdir
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14775 67ed7778-7388-44ab-90cf-0a291f65f57c
-rw-r--r--libgphoto2_port/libgphoto2_port/gphoto2-port-portability.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libgphoto2_port/libgphoto2_port/gphoto2-port-portability.c b/libgphoto2_port/libgphoto2_port/gphoto2-port-portability.c
index 84b169d6d..e71ba53cc 100644
--- a/libgphoto2_port/libgphoto2_port/gphoto2-port-portability.c
+++ b/libgphoto2_port/libgphoto2_port/gphoto2-port-portability.c
@@ -62,6 +62,14 @@ int gp_system_mkdir (const char *dirname) {
return (GP_OK);
}
+int gp_system_rmdir (const char *dirname) {
+
+ if (_rmdir(dirname) < 0)
+ return (GP_ERROR);
+ return (GP_OK);
+}
+
+
gp_system_dir gp_system_opendir (const char *dirname) {
GPPORTWINDIR *d;