summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-07-25 09:27:00 +0200
committerStefan Metzmacher <metze@samba.org>2012-07-25 12:15:03 +0200
commita10fe7b25203248e3b7b41248e5bbc86ba9c2ed3 (patch)
treeabba581c5d6f578cf644250ab20f364159506135
parent167d94c73dc1b2c79dbc980a2094c90711500fbf (diff)
downloadsamba-a10fe7b25203248e3b7b41248e5bbc86ba9c2ed3.tar.gz
samba-a10fe7b25203248e3b7b41248e5bbc86ba9c2ed3.tar.bz2
samba-a10fe7b25203248e3b7b41248e5bbc86ba9c2ed3.zip
libcli/smb: add smb2cli_tcon_capabilities()
metze
-rw-r--r--libcli/smb/smbXcli_base.c5
-rw-r--r--libcli/smb/smbXcli_base.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/libcli/smb/smbXcli_base.c b/libcli/smb/smbXcli_base.c
index 037c0dd8a3..4c094ea87e 100644
--- a/libcli/smb/smbXcli_base.c
+++ b/libcli/smb/smbXcli_base.c
@@ -4617,6 +4617,11 @@ uint32_t smb2cli_tcon_current_id(struct smbXcli_tcon *tcon)
return tcon->smb2.tcon_id;
}
+uint32_t smb2cli_tcon_capabilities(struct smbXcli_tcon *tcon)
+{
+ return tcon->smb2.capabilities;
+}
+
void smb2cli_tcon_set_values(struct smbXcli_tcon *tcon,
uint32_t tcon_id,
uint8_t type,
diff --git a/libcli/smb/smbXcli_base.h b/libcli/smb/smbXcli_base.h
index 60ef2727a6..665fb9c8ce 100644
--- a/libcli/smb/smbXcli_base.h
+++ b/libcli/smb/smbXcli_base.h
@@ -284,6 +284,7 @@ bool smb1cli_tcon_set_values(struct smbXcli_tcon *tcon,
const char *service,
const char *fs_type);
uint32_t smb2cli_tcon_current_id(struct smbXcli_tcon *tcon);
+uint32_t smb2cli_tcon_capabilities(struct smbXcli_tcon *tcon);
void smb2cli_tcon_set_values(struct smbXcli_tcon *tcon,
uint32_t tcon_id,
uint8_t type,