wafsamba: the symbol version string of private libraries should be based on the tople...
[Samba.git] / libcli / smb / reparse_symlink.h
blobb561fa9fc985f793d63e2673c004f2fe51d7c5a0
1 /*
2 * Unix SMB/CIFS implementation.
4 * Implementation of
5 * http://msdn.microsoft.com/en-us/library/cc232006%28v=PROT.13%29.aspx
7 * Copyright (C) Volker Lendecke 2011
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 3 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program. If not, see <http://www.gnu.org/licenses/>.
23 #ifndef __REPARSE_SYMLINK_H__
24 #define __REPARSE_SYMLINK_H__
26 #include "replace.h"
27 #include <talloc.h>
29 struct symlink_reparse_struct {
30 uint16_t unparsed_path_length; /* reserved for the reparse point */
31 char *substitute_name;
32 char *print_name;
33 uint32_t flags;
36 bool symlink_reparse_buffer_marshall(
37 const char *substitute, const char *printname, uint32_t flags,
38 TALLOC_CTX *mem_ctx, uint8_t **pdst, size_t *pdstlen);
39 struct symlink_reparse_struct *symlink_reparse_buffer_parse(
40 TALLOC_CTX *mem_ctx, const uint8_t *src, size_t srclen);
42 #endif