summaryrefslogtreecommitdiff
path: root/source4/libcli/climessage.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libcli/climessage.c')
-rw-r--r--source4/libcli/climessage.c54
1 files changed, 27 insertions, 27 deletions
diff --git a/source4/libcli/climessage.c b/source4/libcli/climessage.c
index 6470f4c154..dde512159e 100644
--- a/source4/libcli/climessage.c
+++ b/source4/libcli/climessage.c
@@ -25,23 +25,23 @@
/****************************************************************************
start a message sequence
****************************************************************************/
-BOOL cli_message_start(struct cli_tree *tree, char *host, char *username,
+BOOL smbcli_message_start(struct smbcli_tree *tree, char *host, char *username,
int *grp)
{
- struct cli_request *req;
+ struct smbcli_request *req;
- 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(tree)) {
- cli_request_destroy(req);
+ req = smbcli_request_setup(tree, SMBsendstrt, 0, 0);
+ smbcli_req_append_string(req, username, STR_TERMINATE);
+ smbcli_req_append_string(req, host, STR_TERMINATE);
+ if (!smbcli_request_send(req) ||
+ !smbcli_request_receive(req) ||
+ smbcli_is_error(tree)) {
+ smbcli_request_destroy(req);
return False;
}
*grp = SVAL(req->in.vwv, VWV(0));
- cli_request_destroy(req);
+ smbcli_request_destroy(req);
return True;
}
@@ -50,44 +50,44 @@ BOOL cli_message_start(struct cli_tree *tree, char *host, char *username,
/****************************************************************************
send a message
****************************************************************************/
-BOOL cli_message_text(struct cli_tree *tree, char *msg, int len, int grp)
+BOOL smbcli_message_text(struct smbcli_tree *tree, char *msg, int len, int grp)
{
- struct cli_request *req;
+ struct smbcli_request *req;
- req = cli_request_setup(tree, SMBsendtxt, 1, 0);
+ req = smbcli_request_setup(tree, SMBsendtxt, 1, 0);
SSVAL(req->out.vwv, VWV(0), grp);
- cli_req_append_bytes(req, msg, len);
+ smbcli_req_append_bytes(req, msg, len);
- if (!cli_request_send(req) ||
- !cli_request_receive(req) ||
- cli_is_error(tree)) {
- cli_request_destroy(req);
+ if (!smbcli_request_send(req) ||
+ !smbcli_request_receive(req) ||
+ smbcli_is_error(tree)) {
+ smbcli_request_destroy(req);
return False;
}
- cli_request_destroy(req);
+ smbcli_request_destroy(req);
return True;
}
/****************************************************************************
end a message
****************************************************************************/
-BOOL cli_message_end(struct cli_tree *tree, int grp)
+BOOL smbcli_message_end(struct smbcli_tree *tree, int grp)
{
- struct cli_request *req;
+ struct smbcli_request *req;
- req = cli_request_setup(tree, SMBsendend, 1, 0);
+ req = smbcli_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(tree)) {
- cli_request_destroy(req);
+ if (!smbcli_request_send(req) ||
+ !smbcli_request_receive(req) ||
+ smbcli_is_error(tree)) {
+ smbcli_request_destroy(req);
return False;
}
- cli_request_destroy(req);
+ smbcli_request_destroy(req);
return True;
}