cli_ucs2
authorVolker Lendecke <vl@samba.org>
Sun, 25 Jan 2009 20:55:05 +0000 (21:55 +0100)
committerVolker Lendecke <vl@samba.org>
Thu, 29 Jan 2009 20:38:06 +0000 (21:38 +0100)
source3/include/proto.h
source3/libsmb/clientgen.c

index f8a9dbce66f2af119ee395311c4bbbe955d829b5..e2aeb197d087a504c867ad8e977376eef7bfe83c 100644 (file)
@@ -2462,6 +2462,7 @@ struct async_req *cli_echo_send(TALLOC_CTX *mem_ctx, struct event_context *ev,
                                DATA_BLOB data);
 NTSTATUS cli_echo_recv(struct async_req *req);
 NTSTATUS cli_echo(struct cli_state *cli, uint16_t num_echos, DATA_BLOB data);
+bool cli_ucs2(struct cli_state *cli);
 
 /* The following definitions come from libsmb/clierror.c  */
 
index 0bec24202cbb0cdc6e6b3b683a02f87ed88a13a4..d841bcff8d68dd06127ec76f4a90f70f37af6397 100644 (file)
@@ -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