1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/source4/ntvfs/simple/svfs.h
Stefan Metzmacher dcad0f6fd4 r2751: this is a new ntvfs design which tries to solve:
- the stacking of modules
- finding the modules private data
- hide the ntvfs details from the calling layer
- I set NTVFS_INTERFACE_VERSION 0 till we are closer to release
  (because we need to solve some async problems with the module stacking)

metze
(This used to be commit 3ff03b5cb2)
2007-10-10 12:59:30 -05:00

36 lines
562 B
C

struct svfs_private {
/* the base directory */
char *connectpath;
/* a linked list of open searches */
struct search_state *search;
/* next available search handle */
uint16_t next_search_handle;
struct svfs_file *open_files;
};
struct svfs_dir {
uint_t count;
char *unix_dir;
struct svfs_dirfile {
char *name;
struct stat st;
} *files;
};
struct svfs_file {
struct svfs_file *next, *prev;
int fd;
char *name;
};
struct search_state {
struct search_state *next, *prev;
uint16_t handle;
uint_t current_index;
struct svfs_dir *dir;
};