summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-05-20 18:31:36 -0700
committerJeremy Allison <jra@samba.org>2009-05-20 18:31:36 -0700
commit000da55dd930d151db14ee8eed58e82806522692 (patch)
treed04850e454a6f01749ad60d767927e6afaf64fff /source3/include
parentc1a21d085d758284fe6997a05396f225da683352 (diff)
downloadsamba-000da55dd930d151db14ee8eed58e82806522692.tar.gz
samba-000da55dd930d151db14ee8eed58e82806522692.tar.bz2
samba-000da55dd930d151db14ee8eed58e82806522692.zip
Make cli_posix_open() and cli_posix_mkdir() async.
Jeremy.
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h20
1 files changed, 17 insertions, 3 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index a45fa42e3d..e0b0e59700 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -2527,14 +2527,28 @@ bool cli_get_ea_list_fnum(struct cli_state *cli, uint16_t fnum,
TALLOC_CTX *ctx,
size_t *pnum_eas,
struct ea_struct **pea_list);
-int cli_posix_open(struct cli_state *cli, const char *fname, int flags, mode_t mode);
-int cli_posix_mkdir(struct cli_state *cli, const char *fname, mode_t mode);
+struct tevent_req *cli_posix_open_send(TALLOC_CTX *mem_ctx,
+ struct event_context *ev,
+ struct cli_state *cli,
+ const char *fname,
+ int flags,
+ mode_t mode);
+NTSTATUS cli_posix_open_recv(struct tevent_req *req, uint16_t *pfnum);
+NTSTATUS cli_posix_open(struct cli_state *cli, const char *fname,
+ int flags, mode_t mode, uint16_t *fnum);
+struct tevent_req *cli_posix_mkdir_send(TALLOC_CTX *mem_ctx,
+ struct event_context *ev,
+ struct cli_state *cli,
+ const char *fname,
+ mode_t mode);
+NTSTATUS cli_posix_mkdir_recv(struct tevent_req *req);
+NTSTATUS cli_posix_mkdir(struct cli_state *cli, const char *fname, mode_t mode);
struct tevent_req *cli_posix_unlink_send(TALLOC_CTX *mem_ctx,
struct event_context *ev,
struct cli_state *cli,
const char *fname);
-NTSTATUS cli_posix_unlink_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx);
+NTSTATUS cli_posix_unlink_recv(struct tevent_req *req);
NTSTATUS cli_posix_unlink(struct cli_state *cli, const char *fname);
struct tevent_req *cli_posix_rmdir_send(TALLOC_CTX *mem_ctx,