Blame libarchive/archive_entry_locale.h

Packit 08bd4c
/*-
Packit 08bd4c
 * Copyright (c) 2011 Michihiro NAKAJIMA
Packit 08bd4c
 * All rights reserved.
Packit 08bd4c
 *
Packit 08bd4c
 * Redistribution and use in source and binary forms, with or without
Packit 08bd4c
 * modification, are permitted provided that the following conditions
Packit 08bd4c
 * are met:
Packit 08bd4c
 * 1. Redistributions of source code must retain the above copyright
Packit 08bd4c
 *    notice, this list of conditions and the following disclaimer.
Packit 08bd4c
 * 2. Redistributions in binary form must reproduce the above copyright
Packit 08bd4c
 *    notice, this list of conditions and the following disclaimer in the
Packit 08bd4c
 *    documentation and/or other materials provided with the distribution.
Packit 08bd4c
 *
Packit 08bd4c
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
Packit 08bd4c
 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
Packit 08bd4c
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
Packit 08bd4c
 * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
Packit 08bd4c
 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
Packit 08bd4c
 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
Packit 08bd4c
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
Packit 08bd4c
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
Packit 08bd4c
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
Packit 08bd4c
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Packit 08bd4c
 *
Packit 08bd4c
 * $FreeBSD$
Packit 08bd4c
 */
Packit 08bd4c
Packit 08bd4c
#ifndef __LIBARCHIVE_BUILD
Packit 08bd4c
#error This header is only to be used internally to libarchive.
Packit 08bd4c
#endif
Packit 08bd4c
Packit 08bd4c
#ifndef ARCHIVE_ENTRY_LOCALE_H_INCLUDED
Packit 08bd4c
#define	ARCHIVE_ENTRY_LOCALE_H_INCLUDED
Packit 08bd4c
Packit 08bd4c
struct archive_entry;
Packit 08bd4c
struct archive_string_conv;
Packit 08bd4c
Packit 08bd4c
/*
Packit 08bd4c
 * Utility functions to set and get entry attributes by translating
Packit 08bd4c
 * character-set. These are designed for use in format readers and writers.
Packit 08bd4c
 *
Packit 08bd4c
 * The return code and interface of these are quite different from other
Packit 08bd4c
 * functions for archive_entry defined in archive_entry.h.
Packit 08bd4c
 * Common return code are:
Packit 08bd4c
 *   Return 0 if the string conversion succeeded.
Packit 08bd4c
 *   Return -1 if the string conversion failed.
Packit 08bd4c
 */
Packit 08bd4c
Packit 08bd4c
#define archive_entry_gname_l	_archive_entry_gname_l
Packit 08bd4c
int _archive_entry_gname_l(struct archive_entry *,
Packit 08bd4c
    const char **, size_t *, struct archive_string_conv *);
Packit 08bd4c
#define archive_entry_hardlink_l	_archive_entry_hardlink_l
Packit 08bd4c
int _archive_entry_hardlink_l(struct archive_entry *,
Packit 08bd4c
    const char **, size_t *, struct archive_string_conv *);
Packit 08bd4c
#define archive_entry_pathname_l	_archive_entry_pathname_l
Packit 08bd4c
int _archive_entry_pathname_l(struct archive_entry *,
Packit 08bd4c
    const char **, size_t *, struct archive_string_conv *);
Packit 08bd4c
#define archive_entry_symlink_l	_archive_entry_symlink_l
Packit 08bd4c
int _archive_entry_symlink_l(struct archive_entry *,
Packit 08bd4c
    const char **, size_t *, struct archive_string_conv *);
Packit 08bd4c
#define archive_entry_uname_l	_archive_entry_uname_l
Packit 08bd4c
int _archive_entry_uname_l(struct archive_entry *,
Packit 08bd4c
    const char **, size_t *, struct archive_string_conv *);
Packit 08bd4c
#define archive_entry_acl_text_l _archive_entry_acl_text_l
Packit 08bd4c
int _archive_entry_acl_text_l(struct archive_entry *, int,
Packit 08bd4c
const char **, size_t *, struct archive_string_conv *) __LA_DEPRECATED;
Packit 08bd4c
#define archive_entry_acl_to_text_l _archive_entry_acl_to_text_l
Packit 08bd4c
char *_archive_entry_acl_to_text_l(struct archive_entry *, ssize_t *, int,
Packit 08bd4c
    struct archive_string_conv *);
Packit 08bd4c
#define archive_entry_acl_from_text_l _archive_entry_acl_from_text_l
Packit 08bd4c
int _archive_entry_acl_from_text_l(struct archive_entry *, const char* text,
Packit 08bd4c
    int type, struct archive_string_conv *);
Packit 08bd4c
#define archive_entry_copy_gname_l	_archive_entry_copy_gname_l
Packit 08bd4c
int _archive_entry_copy_gname_l(struct archive_entry *,
Packit 08bd4c
    const char *, size_t, struct archive_string_conv *);
Packit 08bd4c
#define archive_entry_copy_hardlink_l	_archive_entry_copy_hardlink_l
Packit 08bd4c
int _archive_entry_copy_hardlink_l(struct archive_entry *,
Packit 08bd4c
    const char *, size_t, struct archive_string_conv *);
Packit 08bd4c
#define archive_entry_copy_link_l	_archive_entry_copy_link_l
Packit 08bd4c
int _archive_entry_copy_link_l(struct archive_entry *,
Packit 08bd4c
    const char *, size_t, struct archive_string_conv *);
Packit 08bd4c
#define archive_entry_copy_pathname_l	_archive_entry_copy_pathname_l
Packit 08bd4c
int _archive_entry_copy_pathname_l(struct archive_entry *,
Packit 08bd4c
    const char *, size_t, struct archive_string_conv *);
Packit 08bd4c
#define archive_entry_copy_symlink_l	_archive_entry_copy_symlink_l
Packit 08bd4c
int _archive_entry_copy_symlink_l(struct archive_entry *,
Packit 08bd4c
    const char *, size_t, struct archive_string_conv *);
Packit 08bd4c
#define archive_entry_copy_uname_l	_archive_entry_copy_uname_l
Packit 08bd4c
int _archive_entry_copy_uname_l(struct archive_entry *,
Packit 08bd4c
    const char *, size_t, struct archive_string_conv *);
Packit 08bd4c
Packit 08bd4c
#endif /* ARCHIVE_ENTRY_LOCALE_H_INCLUDED */