diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-07-30 12:04:37 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-08-02 04:54:28 +0200 |
commit | 233336d0c2f07e202277571c540b5a64b7b0bb63 (patch) | |
tree | 92c04d2e2cd0c540ccff41cea5cd9e2f5f31f971 | |
parent | c399ad4cdd313584fe072b84bfe87ec03182fb5c (diff) | |
download | samba-233336d0c2f07e202277571c540b5a64b7b0bb63.tar.gz samba-233336d0c2f07e202277571c540b5a64b7b0bb63.tar.bz2 samba-233336d0c2f07e202277571c540b5a64b7b0bb63.zip |
s3:libsmb: add cli_state_protocol()
metze
-rw-r--r-- | source3/libsmb/clientgen.c | 5 | ||||
-rw-r--r-- | source3/libsmb/proto.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index 0135157500..2e45044e14 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; } +enum protocol_types cli_state_protocol(struct cli_state *cli) +{ + return cli->protocol; +} + uint32_t cli_state_capabilities(struct cli_state *cli) { return cli->capabilities; diff --git a/source3/libsmb/proto.h b/source3/libsmb/proto.h index 584d46e602..005ccf6b59 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); +enum protocol_types cli_state_protocol(struct cli_state *cli); 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, |