Deleted Added
full compact
archive_entry.h (338795) archive_entry.h (348607)
1/*-
2 * Copyright (c) 2003-2008 Tim Kientzle
3 * Copyright (c) 2016 Martin Matuska
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 9 unchanged lines hidden (view full) ---

18 * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2003-2008 Tim Kientzle
3 * Copyright (c) 2016 Martin Matuska
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 9 unchanged lines hidden (view full) ---

18 * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
26 * $FreeBSD: stable/11/contrib/libarchive/libarchive/archive_entry.h 338795 2018-09-19 09:41:33Z mm $
26 * $FreeBSD: stable/11/contrib/libarchive/libarchive/archive_entry.h 348607 2019-06-04 10:35:54Z mm $
27 */
28
29#ifndef ARCHIVE_ENTRY_H_INCLUDED
30#define ARCHIVE_ENTRY_H_INCLUDED
31
32/* Note: Compiler will complain if this does not match archive.h! */
33#define ARCHIVE_VERSION_NUMBER 3003003
34

--- 151 unchanged lines hidden (view full) ---

186#define AE_IFLNK ((__LA_MODE_T)0120000)
187#define AE_IFSOCK ((__LA_MODE_T)0140000)
188#define AE_IFCHR ((__LA_MODE_T)0020000)
189#define AE_IFBLK ((__LA_MODE_T)0060000)
190#define AE_IFDIR ((__LA_MODE_T)0040000)
191#define AE_IFIFO ((__LA_MODE_T)0010000)
192
193/*
27 */
28
29#ifndef ARCHIVE_ENTRY_H_INCLUDED
30#define ARCHIVE_ENTRY_H_INCLUDED
31
32/* Note: Compiler will complain if this does not match archive.h! */
33#define ARCHIVE_VERSION_NUMBER 3003003
34

--- 151 unchanged lines hidden (view full) ---

186#define AE_IFLNK ((__LA_MODE_T)0120000)
187#define AE_IFSOCK ((__LA_MODE_T)0140000)
188#define AE_IFCHR ((__LA_MODE_T)0020000)
189#define AE_IFBLK ((__LA_MODE_T)0060000)
190#define AE_IFDIR ((__LA_MODE_T)0040000)
191#define AE_IFIFO ((__LA_MODE_T)0010000)
192
193/*
194 * Symlink types
195 */
196#define AE_SYMLINK_TYPE_UNDEFINED 0
197#define AE_SYMLINK_TYPE_FILE 1
198#define AE_SYMLINK_TYPE_DIRECTORY 2
199
200/*
194 * Basic object manipulation
195 */
196
197__LA_DECL struct archive_entry *archive_entry_clear(struct archive_entry *);
198/* The 'clone' function does a deep copy; all of the strings are copied too. */
199__LA_DECL struct archive_entry *archive_entry_clone(struct archive_entry *);
200__LA_DECL void archive_entry_free(struct archive_entry *);
201__LA_DECL struct archive_entry *archive_entry_new(void);

--- 68 unchanged lines hidden (view full) ---

270__LA_DECL dev_t archive_entry_rdevminor(struct archive_entry *);
271__LA_DECL const char *archive_entry_sourcepath(struct archive_entry *);
272__LA_DECL const wchar_t *archive_entry_sourcepath_w(struct archive_entry *);
273__LA_DECL la_int64_t archive_entry_size(struct archive_entry *);
274__LA_DECL int archive_entry_size_is_set(struct archive_entry *);
275__LA_DECL const char *archive_entry_strmode(struct archive_entry *);
276__LA_DECL const char *archive_entry_symlink(struct archive_entry *);
277__LA_DECL const char *archive_entry_symlink_utf8(struct archive_entry *);
201 * Basic object manipulation
202 */
203
204__LA_DECL struct archive_entry *archive_entry_clear(struct archive_entry *);
205/* The 'clone' function does a deep copy; all of the strings are copied too. */
206__LA_DECL struct archive_entry *archive_entry_clone(struct archive_entry *);
207__LA_DECL void archive_entry_free(struct archive_entry *);
208__LA_DECL struct archive_entry *archive_entry_new(void);

--- 68 unchanged lines hidden (view full) ---

277__LA_DECL dev_t archive_entry_rdevminor(struct archive_entry *);
278__LA_DECL const char *archive_entry_sourcepath(struct archive_entry *);
279__LA_DECL const wchar_t *archive_entry_sourcepath_w(struct archive_entry *);
280__LA_DECL la_int64_t archive_entry_size(struct archive_entry *);
281__LA_DECL int archive_entry_size_is_set(struct archive_entry *);
282__LA_DECL const char *archive_entry_strmode(struct archive_entry *);
283__LA_DECL const char *archive_entry_symlink(struct archive_entry *);
284__LA_DECL const char *archive_entry_symlink_utf8(struct archive_entry *);
285__LA_DECL int archive_entry_symlink_type(struct archive_entry *);
278__LA_DECL const wchar_t *archive_entry_symlink_w(struct archive_entry *);
279__LA_DECL la_int64_t archive_entry_uid(struct archive_entry *);
280__LA_DECL const char *archive_entry_uname(struct archive_entry *);
281__LA_DECL const char *archive_entry_uname_utf8(struct archive_entry *);
282__LA_DECL const wchar_t *archive_entry_uname_w(struct archive_entry *);
283__LA_DECL int archive_entry_is_data_encrypted(struct archive_entry *);
284__LA_DECL int archive_entry_is_metadata_encrypted(struct archive_entry *);
285__LA_DECL int archive_entry_is_encrypted(struct archive_entry *);

--- 59 unchanged lines hidden (view full) ---

345__LA_DECL void archive_entry_set_rdev(struct archive_entry *, dev_t);
346__LA_DECL void archive_entry_set_rdevmajor(struct archive_entry *, dev_t);
347__LA_DECL void archive_entry_set_rdevminor(struct archive_entry *, dev_t);
348__LA_DECL void archive_entry_set_size(struct archive_entry *, la_int64_t);
349__LA_DECL void archive_entry_unset_size(struct archive_entry *);
350__LA_DECL void archive_entry_copy_sourcepath(struct archive_entry *, const char *);
351__LA_DECL void archive_entry_copy_sourcepath_w(struct archive_entry *, const wchar_t *);
352__LA_DECL void archive_entry_set_symlink(struct archive_entry *, const char *);
286__LA_DECL const wchar_t *archive_entry_symlink_w(struct archive_entry *);
287__LA_DECL la_int64_t archive_entry_uid(struct archive_entry *);
288__LA_DECL const char *archive_entry_uname(struct archive_entry *);
289__LA_DECL const char *archive_entry_uname_utf8(struct archive_entry *);
290__LA_DECL const wchar_t *archive_entry_uname_w(struct archive_entry *);
291__LA_DECL int archive_entry_is_data_encrypted(struct archive_entry *);
292__LA_DECL int archive_entry_is_metadata_encrypted(struct archive_entry *);
293__LA_DECL int archive_entry_is_encrypted(struct archive_entry *);

--- 59 unchanged lines hidden (view full) ---

353__LA_DECL void archive_entry_set_rdev(struct archive_entry *, dev_t);
354__LA_DECL void archive_entry_set_rdevmajor(struct archive_entry *, dev_t);
355__LA_DECL void archive_entry_set_rdevminor(struct archive_entry *, dev_t);
356__LA_DECL void archive_entry_set_size(struct archive_entry *, la_int64_t);
357__LA_DECL void archive_entry_unset_size(struct archive_entry *);
358__LA_DECL void archive_entry_copy_sourcepath(struct archive_entry *, const char *);
359__LA_DECL void archive_entry_copy_sourcepath_w(struct archive_entry *, const wchar_t *);
360__LA_DECL void archive_entry_set_symlink(struct archive_entry *, const char *);
361__LA_DECL void archive_entry_set_symlink_type(struct archive_entry *, int);
353__LA_DECL void archive_entry_set_symlink_utf8(struct archive_entry *, const char *);
354__LA_DECL void archive_entry_copy_symlink(struct archive_entry *, const char *);
355__LA_DECL void archive_entry_copy_symlink_w(struct archive_entry *, const wchar_t *);
356__LA_DECL int archive_entry_update_symlink_utf8(struct archive_entry *, const char *);
357__LA_DECL void archive_entry_set_uid(struct archive_entry *, la_int64_t);
358__LA_DECL void archive_entry_set_uname(struct archive_entry *, const char *);
359__LA_DECL void archive_entry_set_uname_utf8(struct archive_entry *, const char *);
360__LA_DECL void archive_entry_copy_uname(struct archive_entry *, const char *);

--- 326 unchanged lines hidden (view full) ---

687__LA_DECL struct archive_entry_linkresolver *archive_entry_linkresolver_new(void);
688__LA_DECL void archive_entry_linkresolver_set_strategy(
689 struct archive_entry_linkresolver *, int /* format_code */);
690__LA_DECL void archive_entry_linkresolver_free(struct archive_entry_linkresolver *);
691__LA_DECL void archive_entry_linkify(struct archive_entry_linkresolver *,
692 struct archive_entry **, struct archive_entry **);
693__LA_DECL struct archive_entry *archive_entry_partial_links(
694 struct archive_entry_linkresolver *res, unsigned int *links);
362__LA_DECL void archive_entry_set_symlink_utf8(struct archive_entry *, const char *);
363__LA_DECL void archive_entry_copy_symlink(struct archive_entry *, const char *);
364__LA_DECL void archive_entry_copy_symlink_w(struct archive_entry *, const wchar_t *);
365__LA_DECL int archive_entry_update_symlink_utf8(struct archive_entry *, const char *);
366__LA_DECL void archive_entry_set_uid(struct archive_entry *, la_int64_t);
367__LA_DECL void archive_entry_set_uname(struct archive_entry *, const char *);
368__LA_DECL void archive_entry_set_uname_utf8(struct archive_entry *, const char *);
369__LA_DECL void archive_entry_copy_uname(struct archive_entry *, const char *);

--- 326 unchanged lines hidden (view full) ---

696__LA_DECL struct archive_entry_linkresolver *archive_entry_linkresolver_new(void);
697__LA_DECL void archive_entry_linkresolver_set_strategy(
698 struct archive_entry_linkresolver *, int /* format_code */);
699__LA_DECL void archive_entry_linkresolver_free(struct archive_entry_linkresolver *);
700__LA_DECL void archive_entry_linkify(struct archive_entry_linkresolver *,
701 struct archive_entry **, struct archive_entry **);
702__LA_DECL struct archive_entry *archive_entry_partial_links(
703 struct archive_entry_linkresolver *res, unsigned int *links);
695
696#ifdef __cplusplus
697}
698#endif
699
700/* This is meaningless outside of this header. */
701#undef __LA_DECL
702
703#endif /* !ARCHIVE_ENTRY_H_INCLUDED */
704#ifdef __cplusplus
705}
706#endif
707
708/* This is meaningless outside of this header. */
709#undef __LA_DECL
710
711#endif /* !ARCHIVE_ENTRY_H_INCLUDED */