d3bafb42e37f87896ee1e67750379549c60886b1
[samba.git] / source4 / ntvfs / simple / svfs.h
1
2 struct svfs_private {
3         /* the base directory */
4         char *connectpath;
5
6         /* a linked list of open searches */
7         struct search_state *search;
8
9         /* next available search handle */
10         uint16_t next_search_handle;
11
12         struct svfs_file *open_files;
13
14         const struct ntvfs_ops *ops;
15 };
16
17 struct svfs_dir {
18         uint_t count;
19         char *unix_dir;
20         struct svfs_dirfile {
21                 char *name;
22                 struct stat st;
23         } *files;
24 };
25
26 struct svfs_file {
27         struct svfs_file *next, *prev;
28         int fd;
29         char *name;
30 };
31
32 struct search_state {
33         struct search_state *next, *prev;
34         uint16_t handle;
35         uint_t current_index;
36         struct svfs_dir *dir;
37 };