diff options
author | Volker Lendecke <vl@samba.org> | 2009-01-25 21:55:05 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-01-29 21:38:06 +0100 |
commit | 89caa0e86be9e20702a24fea4f94a11e6e02cc93 (patch) | |
tree | a07131d0c7bde8a5978402ee70f7defa32fe8233 /source3/libsmb | |
parent | 1a87568d99e35c7d028d742c59a3f811a67731e3 (diff) | |
download | samba-89caa0e86be9e20702a24fea4f94a11e6e02cc93.tar.gz samba-89caa0e86be9e20702a24fea4f94a11e6e02cc93.tar.bz2 samba-89caa0e86be9e20702a24fea4f94a11e6e02cc93.zip |
cli_ucs2
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/clientgen.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index 0bec24202c..d841bcff8d 100644 --- a/source3/libsmb/clientgen.c +++ b/source3/libsmb/clientgen.c @@ -56,6 +56,16 @@ void cli_set_port(struct cli_state *cli, int port) } /**************************************************************************** + convenience routine to find if we negotiated ucs2 +****************************************************************************/ + +bool cli_ucs2(struct cli_state *cli) +{ + return ((cli->capabilities & CAP_UNICODE) != 0); +} + + +/**************************************************************************** Read an smb from a fd ignoring all keepalive packets. The timeout is in milliseconds |