summaryrefslogtreecommitdiff
path: root/source3/include/proto.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-06-30 15:01:00 +0200
committerStefan Metzmacher <metze@samba.org>2009-07-02 09:11:01 +0200
commitb804c30856edc2d57a82ca64e6c98177f3116e49 (patch)
tree9ccdc3ba10250d1d8bd3d162997bc736e32336fa /source3/include/proto.h
parentef96e8c95867a23e664ef25b1a96e5796e51a72b (diff)
downloadsamba-b804c30856edc2d57a82ca64e6c98177f3116e49.tar.gz
samba-b804c30856edc2d57a82ca64e6c98177f3116e49.tar.bz2
samba-b804c30856edc2d57a82ca64e6c98177f3116e49.zip
s3:smbd: make change_notify_reply() more generic and hide send_nt_replies() behind a callback
This prepares change notify support for SMB2. metze
Diffstat (limited to 'source3/include/proto.h')
-rw-r--r--source3/include/proto.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 05ef6fe00d..2b290116e4 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -6467,15 +6467,21 @@ void reply_negprot(struct smb_request *req);
void change_notify_reply(connection_struct *conn,
struct smb_request *req,
- NTSTATUS status,
+ NTSTATUS error_code,
uint32_t max_param,
- struct notify_change_buf *notify_buf);
+ struct notify_change_buf *notify_buf,
+ void (*reply_fn)(struct smb_request *req,
+ NTSTATUS error_code,
+ uint8_t *buf, size_t len));
NTSTATUS change_notify_create(struct files_struct *fsp, uint32 filter,
bool recursive);
NTSTATUS change_notify_add_request(struct smb_request *req,
uint32 max_param,
uint32 filter, bool recursive,
- struct files_struct *fsp);
+ struct files_struct *fsp,
+ void (*reply_fn)(struct smb_request *req,
+ NTSTATUS error_code,
+ uint8_t *buf, size_t len));
void remove_pending_change_notify_requests_by_mid(uint16 mid);
void remove_pending_change_notify_requests_by_fid(files_struct *fsp,
NTSTATUS status);