summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-08-06 12:15:51 +0200
committerStefan Metzmacher <metze@samba.org>2009-08-07 14:18:17 +0200
commit59c3f5e3ca8885266fef65261ecae3f51ce78729 (patch)
tree2972ced82e7a8bcb607cedb25cd4827ba29063e4 /source3/include
parentc50a03e4e2c47b828f81f2e4dc214ec84d9cae63 (diff)
downloadsamba-59c3f5e3ca8885266fef65261ecae3f51ce78729.tar.gz
samba-59c3f5e3ca8885266fef65261ecae3f51ce78729.tar.bz2
samba-59c3f5e3ca8885266fef65261ecae3f51ce78729.zip
s3:smbd: move dptr globals into struct smbd_server_connection
metze
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h22
1 files changed, 13 insertions, 9 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index b00a08446a..e8bfe8efae 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -6181,14 +6181,15 @@ bool make_dir_struct(TALLOC_CTX *ctx,
uint32 mode,
time_t date,
bool uc);
-void init_dptrs(void);
-char *dptr_path(int key);
-char *dptr_wcard(int key);
-uint16 dptr_attr(int key);
-void dptr_close(int *key);
+bool init_dptrs(struct smbd_server_connection *sconn);
+char *dptr_path(struct smbd_server_connection *sconn, int key);
+char *dptr_wcard(struct smbd_server_connection *sconn, int key);
+uint16 dptr_attr(struct smbd_server_connection *sconn, int key);
+void dptr_close(struct smbd_server_connection *sconn, int *key);
void dptr_closecnum(connection_struct *conn);
void dptr_idlecnum(connection_struct *conn);
-void dptr_closepath(char *path,uint16 spid);
+void dptr_closepath(struct smbd_server_connection *sconn,
+ char *path,uint16 spid);
NTSTATUS dptr_create(connection_struct *conn, const char *path, bool old_handle, bool expect_close,uint16 spid,
const char *wcard, bool wcard_has_wild, uint32 attr, struct dptr_struct **dptr_ret);
int dptr_CloseDir(struct dptr_struct *dptr);
@@ -6203,9 +6204,12 @@ char *dptr_ReadDirName(TALLOC_CTX *ctx,
bool dptr_SearchDir(struct dptr_struct *dptr, const char *name, long *poffset, SMB_STRUCT_STAT *pst);
void dptr_DirCacheAdd(struct dptr_struct *dptr, const char *name, long offset);
void dptr_init_search_op(struct dptr_struct *dptr);
-bool dptr_fill(char *buf1,unsigned int key);
-struct dptr_struct *dptr_fetch(char *buf,int *num);
-struct dptr_struct *dptr_fetch_lanman2(int dptr_num);
+bool dptr_fill(struct smbd_server_connection *sconn,
+ char *buf1,unsigned int key);
+struct dptr_struct *dptr_fetch(struct smbd_server_connection *sconn,
+ char *buf,int *num);
+struct dptr_struct *dptr_fetch_lanman2(struct smbd_server_connection *sconn,
+ int dptr_num);
bool dir_check_ftype(connection_struct *conn, uint32 mode, uint32 dirtype);
bool get_dir_entry(TALLOC_CTX *ctx,
struct dptr_struct *dirptr,