1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00
samba-mirror/libcli/smb/reparse_symlink.h
Volker Lendecke 8ad55c382a libsmb: Move symlink_reparse_buffer_parse() to reparse.c
The goal of this is to eventually remove reparse_symlink.c once we
have marshalling routines for symlinks in reparse.c

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2023-08-10 13:40:31 +00:00

48 lines
1.3 KiB
C

/*
* Unix SMB/CIFS implementation.
*
* Implementation of
* http://msdn.microsoft.com/en-us/library/cc232006%28v=PROT.13%29.aspx
*
* Copyright (C) Volker Lendecke 2011
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __REPARSE_SYMLINK_H__
#define __REPARSE_SYMLINK_H__
#include "replace.h"
#include <talloc.h>
#include "lib/util/iov_buf.h"
ssize_t reparse_buffer_marshall(
uint32_t reparse_tag,
uint16_t reserved,
const struct iovec *iov,
int iovlen,
uint8_t *buf,
size_t buflen);
bool symlink_reparse_buffer_marshall(
const char *substitute,
const char *printname,
uint16_t unparsed_path_length,
uint32_t flags,
TALLOC_CTX *mem_ctx,
uint8_t **pdst,
size_t *pdstlen);
#endif