summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-07-15 11:49:33 -0700
committerJeremy Allison <jra@samba.org>2009-07-15 11:49:33 -0700
commit1f5aec877fc48ff96b14a0e95f01c68a29dd8718 (patch)
tree4c3ab1b8c1a1b706531ae3d80969f6d00b0fc29a /source3/include
parentb76ab511f7238820a4e6ac3a2ae17d103f2bf9b9 (diff)
downloadsamba-1f5aec877fc48ff96b14a0e95f01c68a29dd8718.tar.gz
samba-1f5aec877fc48ff96b14a0e95f01c68a29dd8718.tar.bz2
samba-1f5aec877fc48ff96b14a0e95f01c68a29dd8718.zip
Make cli_unlock and cli_unlock64 async. Fix POSIX lock test.
Jeremy.
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 7bbdc04ae7..15e3f325aa 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -2518,10 +2518,24 @@ NTSTATUS cli_locktype(struct cli_state *cli, uint16_t fnum,
int timeout, unsigned char locktype);
bool cli_lock(struct cli_state *cli, uint16_t fnum,
uint32_t offset, uint32_t len, int timeout, enum brl_type lock_type);
-bool cli_unlock(struct cli_state *cli, uint16_t fnum, uint32_t offset, uint32_t len);
+struct tevent_req *cli_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_unlock_recv(struct tevent_req *req);
+NTSTATUS cli_unlock(struct cli_state *cli, uint16_t fnum, uint32_t offset, uint32_t len);
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);
+struct tevent_req *cli_unlock64_send(TALLOC_CTX *mem_ctx,
+ struct event_context *ev,
+ struct cli_state *cli,
+ uint16_t fnum,
+ uint64_t offset,
+ uint64_t len);
+NTSTATUS cli_unlock64_recv(struct tevent_req *req);
+NTSTATUS cli_unlock64(struct cli_state *cli, uint16_t fnum, uint64_t offset, uint64_t len);
struct tevent_req *cli_posix_lock_send(TALLOC_CTX *mem_ctx,
struct event_context *ev,
struct cli_state *cli,