From a10fe7b25203248e3b7b41248e5bbc86ba9c2ed3 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 25 Jul 2012 09:27:00 +0200 Subject: [PATCH] libcli/smb: add smb2cli_tcon_capabilities() metze --- libcli/smb/smbXcli_base.c | 5 +++++ libcli/smb/smbXcli_base.h | 1 + 2 files changed, 6 insertions(+) diff --git a/libcli/smb/smbXcli_base.c b/libcli/smb/smbXcli_base.c index 037c0dd8a31..4c094ea87e4 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 60ef2727a60..665fb9c8ce4 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, -- 2.11.4.GIT