diff options
author | Jeremy Allison <jra@samba.org> | 2009-06-10 11:58:00 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-06-10 11:58:00 -0700 |
commit | dc5c7b7f98345621f4cf1b9992ebbe9144e14ebb (patch) | |
tree | 749446aa31baf51f8d9eb0d811d33bd5ef118654 /source3/include | |
parent | 29b78b33d3c2a392ef47183c0b455efa7838bb73 (diff) | |
download | samba-dc5c7b7f98345621f4cf1b9992ebbe9144e14ebb.tar.gz samba-dc5c7b7f98345621f4cf1b9992ebbe9144e14ebb.tar.bz2 samba-dc5c7b7f98345621f4cf1b9992ebbe9144e14ebb.zip |
Make ctemp async. Fix the test to pass against W2K3.
Jeremy.
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/proto.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index 40855a0650..9b297155e9 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -2582,7 +2582,19 @@ struct tevent_req *cli_dskattr_send(TALLOC_CTX *mem_ctx, NTSTATUS cli_dskattr_recv(struct tevent_req *req, int *bsize, int *total, int *avail); NTSTATUS cli_dskattr(struct cli_state *cli, int *bsize, int *total, int *avail); -int cli_ctemp(struct cli_state *cli, const char *path, char **tmp_path); +struct tevent_req *cli_ctemp_send(TALLOC_CTX *mem_ctx, + struct event_context *ev, + struct cli_state *cli, + const char *path); +NTSTATUS cli_ctemp_recv(struct tevent_req *req, + TALLOC_CTX *ctx, + uint16_t *pfnum, + char **outfile); +NTSTATUS cli_ctemp(struct cli_state *cli, + TALLOC_CTX *ctx, + const char *path, + uint16_t *pfnum, + char **out_path); NTSTATUS cli_raw_ioctl(struct cli_state *cli, uint16_t fnum, uint32_t code, DATA_BLOB *blob); bool cli_set_ea_path(struct cli_state *cli, const char *path, const char *ea_name, const char *ea_val, size_t ea_len); bool cli_set_ea_fnum(struct cli_state *cli, uint16_t fnum, const char *ea_name, const char *ea_val, size_t ea_len); |