diff options
author | Jeremy Allison <jra@samba.org> | 2009-05-28 16:15:09 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-05-28 16:15:09 -0700 |
commit | 9df85a93746d2de0c68c50d634a04e957e8b2c0d (patch) | |
tree | 24bb0a95929a74a5ea858fdbf050e2ab32888edc /source3/include | |
parent | 5c623e6c2e787cad6efde036161e8a2f816d5203 (diff) | |
download | samba-9df85a93746d2de0c68c50d634a04e957e8b2c0d.tar.gz samba-9df85a93746d2de0c68c50d634a04e957e8b2c0d.tar.bz2 samba-9df85a93746d2de0c68c50d634a04e957e8b2c0d.zip |
Make cli_posix_chown()/cli_posix_chmod() async.
Jeremy.
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/proto.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index af68ae74a0..4713bd713a 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -2383,8 +2383,24 @@ NTSTATUS cli_posix_stat_recv(struct tevent_req *req, NTSTATUS cli_posix_stat(struct cli_state *cli, const char *fname, SMB_STRUCT_STAT *sbuf); -bool cli_unix_chmod(struct cli_state *cli, const char *fname, mode_t mode); -bool cli_unix_chown(struct cli_state *cli, const char *fname, uid_t uid, gid_t gid); +struct tevent_req *cli_posix_chmod_send(TALLOC_CTX *mem_ctx, + struct event_context *ev, + struct cli_state *cli, + const char *fname, + mode_t mode); +NTSTATUS cli_posix_chmod_recv(struct tevent_req *req); +NTSTATUS cli_posix_chmod(struct cli_state *cli, const char *fname, mode_t mode); +struct tevent_req *cli_posix_chown_send(TALLOC_CTX *mem_ctx, + struct event_context *ev, + struct cli_state *cli, + const char *fname, + uid_t uid, + gid_t gid); +NTSTATUS cli_posix_chown_recv(struct tevent_req *req); +NTSTATUS cli_posix_chown(struct cli_state *cli, + const char *fname, + uid_t uid, + gid_t gid); struct tevent_req *cli_rename_send(TALLOC_CTX *mem_ctx, struct event_context *ev, struct cli_state *cli, |