r15387: Fix installation of dcerpc headers, remove more instances of uint_t
[nivanova/samba-autobuild/.git] / source4 / ntvfs / simple / svfs.h
index e74fd07fceaa5b1aac6518de283620ed04a9c40e..74e7b6c4529676aa4ef0be5c2093899e37f240c0 100644 (file)
@@ -7,22 +7,29 @@ struct svfs_private {
        struct search_state *search;
 
        /* next available search handle */
-       uint16 next_search_handle;
+       uint16_t next_search_handle;
+
+       struct svfs_file *open_files;
 };
 
 struct svfs_dir {
-       uint_t count;
+       unsigned int count;
        char *unix_dir;
-       struct {
+       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;
-       TALLOC_CTX *mem_ctx;
-       uint16 handle;
-       uint_t current_index;
+       uint16_t handle;
+       unsigned int current_index;
        struct svfs_dir *dir;
 };