r65: added support for file streams in the simple NTVFS backend
[samba.git] / source / 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 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 {
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         TALLOC_CTX *mem_ctx;
33         uint16 handle;
34         uint_t current_index;
35         struct svfs_dir *dir;
36 };