connect getattr and readdir to hashtbl

This commit is contained in:
josch
2014-09-26 16:08:30 +02:00
parent b4045f19ce
commit da914e67b1
3 changed files with 86 additions and 39 deletions

View File

@@ -19,6 +19,8 @@
#ifndef _MFFUSE_HASHTBL_H_
#define _MFFUSE_HASHTBL_H_
#include <fuse/fuse.h>
#include "../mfapi/mfconn.h"
typedef struct folder_tree folder_tree;
@@ -35,4 +37,10 @@ void folder_tree_housekeep(folder_tree * tree);
void folder_tree_debug(folder_tree * tree, h_entry * ent,
int depth);
int folder_tree_getattr(folder_tree * tree, const char *path,
struct stat *stbuf);
int folder_tree_readdir(folder_tree * tree, const char *path,
void *buf, fuse_fill_dir_t filldir);
#endif