summaryrefslogtreecommitdiff
path: root/source4/libcli/climessage.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2004-02-08 00:51:07 +0000
committerTim Potter <tpot@samba.org>2004-02-08 00:51:07 +0000
commit4639eb5a58f8c0906afdc8e8f8f67f82e9547f75 (patch)
tree2115d25166961cea7d49836d53a05e98c796ff8a /source4/libcli/climessage.c
parentf0c9a54b30cfa627b4ddcbc24fe943b21472df34 (diff)
downloadsamba-4639eb5a58f8c0906afdc8e8f8f67f82e9547f75.tar.gz
samba-4639eb5a58f8c0906afdc8e8f8f67f82e9547f75.tar.bz2
samba-4639eb5a58f8c0906afdc8e8f8f67f82e9547f75.zip
Convert libcli routines to use cli_tree instead of cli_state. Port
smbtorture to use the new interface. Part 2 will be to eliminate cli_state from smbtorture as this is now the only place where it is used. (This used to be commit db1cc96af62ea42837d60592877fc3f93cef143b)
Diffstat (limited to 'source4/libcli/climessage.c')
-rw-r--r--source4/libcli/climessage.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/source4/libcli/climessage.c b/source4/libcli/climessage.c
index ad5d41545b..6470f4c154 100644
--- a/source4/libcli/climessage.c
+++ b/source4/libcli/climessage.c
@@ -25,17 +25,17 @@
/****************************************************************************
start a message sequence
****************************************************************************/
-BOOL cli_message_start(struct cli_state *cli, char *host, char *username,
- int *grp)
+BOOL cli_message_start(struct cli_tree *tree, char *host, char *username,
+ int *grp)
{
struct cli_request *req;
- req = cli_request_setup(cli->tree, SMBsendstrt, 0, 0);
+ req = cli_request_setup(tree, SMBsendstrt, 0, 0);
cli_req_append_string(req, username, STR_TERMINATE);
cli_req_append_string(req, host, STR_TERMINATE);
if (!cli_request_send(req) ||
!cli_request_receive(req) ||
- cli_is_error(cli)) {
+ cli_is_error(tree)) {
cli_request_destroy(req);
return False;
}
@@ -50,18 +50,18 @@ BOOL cli_message_start(struct cli_state *cli, char *host, char *username,
/****************************************************************************
send a message
****************************************************************************/
-BOOL cli_message_text(struct cli_state *cli, char *msg, int len, int grp)
+BOOL cli_message_text(struct cli_tree *tree, char *msg, int len, int grp)
{
struct cli_request *req;
- req = cli_request_setup(cli->tree, SMBsendtxt, 1, 0);
+ req = cli_request_setup(tree, SMBsendtxt, 1, 0);
SSVAL(req->out.vwv, VWV(0), grp);
cli_req_append_bytes(req, msg, len);
if (!cli_request_send(req) ||
!cli_request_receive(req) ||
- cli_is_error(cli)) {
+ cli_is_error(tree)) {
cli_request_destroy(req);
return False;
}
@@ -73,16 +73,16 @@ BOOL cli_message_text(struct cli_state *cli, char *msg, int len, int grp)
/****************************************************************************
end a message
****************************************************************************/
-BOOL cli_message_end(struct cli_state *cli, int grp)
+BOOL cli_message_end(struct cli_tree *tree, int grp)
{
struct cli_request *req;
- req = cli_request_setup(cli->tree, SMBsendend, 1, 0);
+ req = cli_request_setup(tree, SMBsendend, 1, 0);
SSVAL(req->out.vwv, VWV(0), grp);
if (!cli_request_send(req) ||
!cli_request_receive(req) ||
- cli_is_error(cli)) {
+ cli_is_error(tree)) {
cli_request_destroy(req);
return False;
}