/*
read directory content
*/
-typedef bool (*rgw_readdir_cb)(const char *name, void *arg, uint64_t offset,
+typedef int (*rgw_readdir_cb)(const char *name, void *arg, uint64_t offset,
struct stat *st, uint32_t mask,
uint32_t flags);
}
extern "C" {
- static bool r1_cb(const char* name, void *arg, uint64_t offset,
+ static int r1_cb(const char* name, void *arg, uint64_t offset,
struct stat* st, uint32_t st_mask,
uint32_t flags) {
// don't need arg--it would point to fids1
}
extern "C" {
- static bool r2_cb(const char* name, void *arg, uint64_t offset,
+ static int r2_cb(const char* name, void *arg, uint64_t offset,
struct stat* st, uint32_t st_mask,
uint32_t flags) {
std::vector<fid_type>& obj_vector = *(static_cast<std::vector<fid_type>*>(arg));
}
extern "C" {
- static bool r2_cb(const char* name, void *arg, uint64_t offset,
+ static int r2_cb(const char* name, void *arg, uint64_t offset,
struct stat *st, uint32_t st_mask,
uint32_t flags) {
// don't need arg--it would point to fids
}
extern "C" {
- static bool r2_cb(const char* name, void *arg, uint64_t offset,
+ static int r2_cb(const char* name, void *arg, uint64_t offset,
struct stat* st, uint32_t st_mask,
uint32_t flags) {
dirent_vec& dvec =
}
extern "C" {
- static bool r1_cb(const char* name, void *arg, uint64_t offset,
+ static int r1_cb(const char* name, void *arg, uint64_t offset,
struct stat* st, uint32_t st_mask,
uint32_t flags) {
struct rgw_file_handle* parent_fh
}
extern "C" {
- static bool r2_cb(const char* name, void *arg, uint64_t offset,
+ static int r2_cb(const char* name, void *arg, uint64_t offset,
struct stat* st, uint32_t st_mask,
uint32_t flags) {
dirent_vec& dvec =