make smb_bytes_push_str public
authorVolker Lendecke <vl@sernet.de>
Tue, 9 Sep 2008 12:35:42 +0000 (14:35 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 9 Sep 2008 15:37:34 +0000 (17:37 +0200)
(This used to be commit d611f599b45ad9dad1027a16a0e8da7d4b96e608)

source3/include/proto.h
source3/libsmb/clifile.c

index 8d033f1837ba3018668011c1d58e93763011a1e2..d51be6781d9425364375c7ea9b53ea72becf4b20 100644 (file)
@@ -4382,6 +4382,7 @@ int cli_nt_create_full(struct cli_state *cli, const char *fname,
                 uint32 CreateDisposition, uint32 CreateOptions,
                 uint8 SecuityFlags);
 int cli_nt_create(struct cli_state *cli, const char *fname, uint32 DesiredAccess);
+uint8_t *smb_bytes_push_str(uint8_t *buf, bool ucs2, const char *str);
 struct async_req *cli_open_send(TALLOC_CTX *mem_ctx, struct event_context *ev,
                                struct cli_state *cli,
                                const char *fname, int flags, int share_mode);
index a8b34405133d9180b1b0b58f3db66432e72d8c92..d3819af444825f301f046f079e35c1e392f89dfe 100644 (file)
@@ -781,7 +781,7 @@ int cli_nt_create(struct cli_state *cli, const char *fname, uint32 DesiredAccess
                                FILE_SHARE_READ|FILE_SHARE_WRITE, FILE_OPEN, 0x0, 0x0);
 }
 
-static uint8_t *smb_bytes_push_str(uint8_t *buf, bool ucs2, const char *str)
+uint8_t *smb_bytes_push_str(uint8_t *buf, bool ucs2, const char *str)
 {
        size_t buflen = talloc_get_size(buf);
        char *converted;