]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
libceph: Added getdir to the C++ interface.
authorGreg Farnum <gregf@hq.newdream.net>
Thu, 9 Jul 2009 18:40:24 +0000 (11:40 -0700)
committerGreg Farnum <gregf@hq.newdream.net>
Thu, 9 Jul 2009 18:40:39 +0000 (11:40 -0700)
Used by hypertable

src/client/libceph.cc
src/client/libceph.h

index 87b6953f447f88b2d9369c6cc90c9973ae022189..fdeab755e93b6f2a29170230d071c7319eb81f5e 100644 (file)
@@ -63,7 +63,7 @@ extern "C" void ceph_deinitialize()
   --client_initialized;
   ceph_client_mutex.Unlock();
 }
-  
+
 extern "C" int ceph_mount()
 {
   return client->mount();
@@ -236,3 +236,8 @@ extern "C" int ceph_sync_fs()
 {
   return client->sync_fs();
 }
+
+int ceph_getdir(const char *relpath, std::list<std::string>& names)
+{
+  return client->getdir(relpath, names);
+}
index 3fa7cc0f3303b4f153a51bd7425e16886ccb41bf..5c4d36025f1e5bbe51110c1b74bb460b5c02012c 100644 (file)
@@ -10,6 +10,8 @@
 #include <dirent.h>
 
 #ifdef __cplusplus
+#include <list>
+#include <string>
 extern "C" {
 #endif
 
@@ -66,6 +68,7 @@ int ceph_fstat(int fd, struct stat *stbuf);
 
 int ceph_sync_fs();
 #ifdef __cplusplus
+int ceph_getdir(const char *relpath, std::list<std::string>& names); //not for C, sorry!
 }
 #endif