summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-07-13 18:43:10 -0700
committerJeremy Allison <jra@samba.org>2009-07-13 18:43:10 -0700
commite67de63ba6c6de60400e7deb4664d259f6dfb638 (patch)
treefe31b3b1936d10074b413d325d3f76be3dfe54ec /source3/include
parentb25e3b6c8a7a1dd31607dd344e6e767716dd645d (diff)
downloadsamba-e67de63ba6c6de60400e7deb4664d259f6dfb638.tar.gz
samba-e67de63ba6c6de60400e7deb4664d259f6dfb638.tar.bz2
samba-e67de63ba6c6de60400e7deb4664d259f6dfb638.zip
Make cli_posix_lock/unlock asynchronous.
Jeremy.
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h21
1 files changed, 18 insertions, 3 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index c0ce35a865..7b3eaa0659 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -2516,11 +2516,26 @@ bool cli_unlock(struct cli_state *cli, uint16_t fnum, uint32_t offset, uint32_t
bool cli_lock64(struct cli_state *cli, uint16_t fnum,
uint64_t offset, uint64_t len, int timeout, enum brl_type lock_type);
bool cli_unlock64(struct cli_state *cli, uint16_t fnum, uint64_t offset, uint64_t len);
-bool cli_posix_lock(struct cli_state *cli, uint16_t fnum,
+struct tevent_req *cli_posix_lock_send(TALLOC_CTX *mem_ctx,
+ struct event_context *ev,
+ struct cli_state *cli,
+ uint16_t fnum,
+ uint64_t offset,
+ uint64_t len,
+ bool wait_lock,
+ enum brl_type lock_type);
+NTSTATUS cli_posix_lock_recv(struct tevent_req *req);
+NTSTATUS cli_posix_lock(struct cli_state *cli, uint16_t fnum,
uint64_t offset, uint64_t len,
bool wait_lock, enum brl_type lock_type);
-bool cli_posix_unlock(struct cli_state *cli, uint16_t fnum, uint64_t offset, uint64_t len);
-bool cli_posix_getlock(struct cli_state *cli, uint16_t fnum, uint64_t *poffset, uint64_t *plen);
+struct tevent_req *cli_posix_unlock_send(TALLOC_CTX *mem_ctx,
+ struct event_context *ev,
+ struct cli_state *cli,
+ uint16_t fnum,
+ uint64_t offset,
+ uint64_t len);
+NTSTATUS cli_posix_unlock_recv(struct tevent_req *req);
+NTSTATUS cli_posix_unlock(struct cli_state *cli, uint16_t fnum, uint64_t offset, uint64_t len);
struct tevent_req *cli_getattrE_send(TALLOC_CTX *mem_ctx,
struct event_context *ev,
struct cli_state *cli,