r15237: Add primitive Samba 4 backend for cifs posix clients (based on simple backend).
[samba.git] / source / ntvfs / cifs_posix_cli / cvfs.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
15 struct svfs_dir {
16         uint_t count;
17         char *unix_dir;
18         struct svfs_dirfile {
19                 char *name;
20                 struct stat st;
21         } *files;
22 };
23
24 struct svfs_file {
25         struct svfs_file *next, *prev;
26         int fd;
27         char *name;
28 };
29
30 struct search_state {
31         struct search_state *next, *prev;
32         uint16_t handle;
33         uint_t current_index;
34         struct svfs_dir *dir;
35 };