From 89caa0e86be9e20702a24fea4f94a11e6e02cc93 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 25 Jan 2009 21:55:05 +0100 Subject: cli_ucs2 --- source3/libsmb/clientgen.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source3/libsmb') 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 @@ -55,6 +55,16 @@ void cli_set_port(struct cli_state *cli, int port) cli->port = 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 -- cgit