summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-07-30 12:04:16 +0200
committerStefan Metzmacher <metze@samba.org>2011-08-02 04:54:28 +0200
commit24c5427810e76c733de8141ff3ad7c65fcb8ec91 (patch)
tree28afa581a8d942fcc2d0ef90e185fe57c9b955a4 /source3
parenta83e769b010700b258d0b395709fae0111714d9c (diff)
downloadsamba-24c5427810e76c733de8141ff3ad7c65fcb8ec91.tar.gz
samba-24c5427810e76c733de8141ff3ad7c65fcb8ec91.tar.bz2
samba-24c5427810e76c733de8141ff3ad7c65fcb8ec91.zip
s3:libsmb: add cli_state_capabilities()
metze
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/clientgen.c5
-rw-r--r--source3/libsmb/proto.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index 559be9265b..854d9a3c32 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -446,6 +446,11 @@ bool cli_set_case_sensitive(struct cli_state *cli, bool case_sensitive)
return ret;
}
+uint32_t cli_state_capabilities(struct cli_state *cli)
+{
+ return cli->capabilities;
+}
+
struct cli_echo_state {
uint16_t vwv[1];
DATA_BLOB data;
diff --git a/source3/libsmb/proto.h b/source3/libsmb/proto.h
index 1d2da7f8fb..584d46e602 100644
--- a/source3/libsmb/proto.h
+++ b/source3/libsmb/proto.h
@@ -179,6 +179,7 @@ uint16_t cli_state_set_tid(struct cli_state *cli, uint16_t tid);
uint16_t cli_state_get_uid(struct cli_state *cli);
uint16_t cli_state_set_uid(struct cli_state *cli, uint16_t uid);
bool cli_set_case_sensitive(struct cli_state *cli, bool case_sensitive);
+uint32_t cli_state_capabilities(struct cli_state *cli);
struct tevent_req *cli_echo_send(TALLOC_CTX *mem_ctx, struct event_context *ev,
struct cli_state *cli, uint16_t num_echos,
DATA_BLOB data);