summaryrefslogtreecommitdiffstats
path: root/source3/include/async_smb.h
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-08-24 14:17:43 +0200
committerVolker Lendecke <vl@samba.org>2008-08-28 17:53:37 +0200
commit2650207d4adbfd68974fc2b342dd2af079a2552c (patch)
treea2ce1dc059d344cac2478de099777e907b8750b2 /source3/include/async_smb.h
parentde9fcfc79504fbca0350a99269b4a3423e5f2561 (diff)
downloadsamba-2650207d4adbfd68974fc2b342dd2af079a2552c.tar.gz
samba-2650207d4adbfd68974fc2b342dd2af079a2552c.tar.xz
samba-2650207d4adbfd68974fc2b342dd2af079a2552c.zip
Remove cli->event_ctx, pass it explicitly
Storing the event_context as permanent state in struct cli_state creates more complex code than necessary IMO. (This used to be commit debb37f703075008e5ea7d34d214cfa4d0f8f916)
Diffstat (limited to 'source3/include/async_smb.h')
-rw-r--r--source3/include/async_smb.h18
1 files changed, 3 insertions, 15 deletions
diff --git a/source3/include/async_smb.h b/source3/include/async_smb.h
index 5ec6b12050a..40a8d3476ee 100644
--- a/source3/include/async_smb.h
+++ b/source3/include/async_smb.h
@@ -23,7 +23,9 @@
* Ship a new smb request to the server
*/
-struct async_req *cli_request_send(TALLOC_CTX *mem_ctx, struct cli_state *cli,
+struct async_req *cli_request_send(TALLOC_CTX *mem_ctx,
+ struct event_context *ev,
+ struct cli_state *cli,
uint8_t smb_command,
uint8_t additional_flags,
uint8_t wct, const uint16_t *vwv,
@@ -46,17 +48,3 @@ NTSTATUS cli_pull_error(char *buf);
*/
void cli_set_error(struct cli_state *cli, NTSTATUS status);
-
-/*
- * Create a temporary event context for use in the sync helper functions
- */
-
-struct cli_tmp_event *cli_tmp_event_ctx(TALLOC_CTX *mem_ctx,
- struct cli_state *cli);
-
-/*
- * Attach an event context permanently to a cli_struct
- */
-
-NTSTATUS cli_add_event_ctx(struct cli_state *cli,
- struct event_context *event_ctx);