diff options
author | Jeremy Allison <jra@samba.org> | 2009-04-28 13:18:51 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-04-28 13:18:51 -0700 |
commit | 06e404f5743d1ccce0f4c51ca3ef97927f801a42 (patch) | |
tree | 6110ac31bde76bc2132208d3ec687a1d03a7abcc /source3/include | |
parent | d47669684dd072b796ebfeb630342456346f449f (diff) | |
download | samba-06e404f5743d1ccce0f4c51ca3ef97927f801a42.tar.gz samba-06e404f5743d1ccce0f4c51ca3ef97927f801a42.tar.bz2 samba-06e404f5743d1ccce0f4c51ca3ef97927f801a42.zip |
Convert cli_posix_unlink() and cli_posix_rmdir()
to async. First trans calls I've done.
Jeremy.
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/proto.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index 101831577f..00a37ddba9 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -2452,8 +2452,20 @@ bool cli_get_ea_list_fnum(struct cli_state *cli, int fnum, 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); -bool cli_posix_unlink(struct cli_state *cli, const char *fname); -int cli_posix_rmdir(struct cli_state *cli, const char *fname); + +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(struct cli_state *cli, const char *fname); + +struct tevent_req *cli_posix_rmdir_send(TALLOC_CTX *mem_ctx, + struct event_context *ev, + struct cli_state *cli, + const char *fname); +NTSTATUS cli_posix_rmdir_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx); +NTSTATUS cli_posix_rmdir(struct cli_state *cli, const char *fname); /* The following definitions come from libsmb/clifsinfo.c */ |