summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-04-05 23:17:55 +0200
committerVolker Lendecke <vl@samba.org>2009-04-06 21:32:07 +0200
commit025eb40fbc9db7de9c2497390c3d7449a0169cac (patch)
treeac4046d3dcbb7910e3a4cdbff635af6ea41445cd /source3/include
parent31910810cf03a463e3728db9e0298ad9f73900f7 (diff)
downloadsamba-025eb40fbc9db7de9c2497390c3d7449a0169cac.tar.gz
samba-025eb40fbc9db7de9c2497390c3d7449a0169cac.tar.bz2
samba-025eb40fbc9db7de9c2497390c3d7449a0169cac.zip
Convert cli_open to tevent_req
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 557e5f2c71..514ee68e7a 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -2513,10 +2513,15 @@ NTSTATUS cli_ntcreate(struct cli_state *cli,
int cli_nt_create(struct cli_state *cli, const char *fname, uint32 DesiredAccess);
uint8_t *smb_bytes_push_str(uint8_t *buf, bool ucs2, const char *str,
size_t str_len, size_t *pconverted_size);
-struct async_req *cli_open_send(TALLOC_CTX *mem_ctx, struct event_context *ev,
- struct cli_state *cli,
- const char *fname, int flags, int share_mode);
-NTSTATUS cli_open_recv(struct async_req *req, int *fnum);
+struct tevent_req *cli_open_create(TALLOC_CTX *mem_ctx,
+ struct event_context *ev,
+ struct cli_state *cli, const char *fname,
+ int flags, int share_mode,
+ struct tevent_req **psmbreq);
+struct tevent_req *cli_open_send(TALLOC_CTX *mem_ctx, struct event_context *ev,
+ struct cli_state *cli, const char *fname,
+ int flags, int share_mode);
+NTSTATUS cli_open_recv(struct tevent_req *req, int *fnum);
int cli_open(struct cli_state *cli, const char *fname, int flags, int share_mode);
struct tevent_req *cli_close_create(TALLOC_CTX *mem_ctx,
struct event_context *ev,