summaryrefslogtreecommitdiff
path: root/source3/include/proto.h
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-11-10 19:49:41 +0100
committerVolker Lendecke <vl@samba.org>2009-11-10 23:48:22 +0100
commit2b759339601ad853588cb74e986a7a88301aea17 (patch)
tree522b21bfc8ad4024ecfec1987ac4a8378e05e770 /source3/include/proto.h
parentfd4061daddc33085855f24dd7f36f0038daaeabb (diff)
downloadsamba-2b759339601ad853588cb74e986a7a88301aea17.tar.gz
samba-2b759339601ad853588cb74e986a7a88301aea17.tar.bz2
samba-2b759339601ad853588cb74e986a7a88301aea17.zip
s3: Convert libsmb/cli_message to the async API
Diffstat (limited to 'source3/include/proto.h')
-rw-r--r--source3/include/proto.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 6955593179..09933405ee 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -2732,13 +2732,14 @@ int cli_list(struct cli_state *cli,const char *Mask,uint16 attribute,
/* The following definitions come from libsmb/climessage.c */
-int cli_message_start_build(struct cli_state *cli, const char *host, const char *username);
-bool cli_message_start(struct cli_state *cli, const char *host, const char *username,
- int *grp);
-int cli_message_text_build(struct cli_state *cli, const char *msg, int len, int grp);
-bool cli_message_text(struct cli_state *cli, const char *msg, int len, int grp);
-int cli_message_end_build(struct cli_state *cli, int grp);
-bool cli_message_end(struct cli_state *cli, int grp);
+struct tevent_req *cli_message_send(TALLOC_CTX *mem_ctx,
+ struct tevent_context *ev,
+ struct cli_state *cli,
+ const char *host, const char *username,
+ const char *message);
+NTSTATUS cli_message_recv(struct tevent_req *req);
+NTSTATUS cli_message(struct cli_state *cli, const char *host,
+ const char *username, const char *message);
/* The following definitions come from libsmb/clioplock.c */