archive_read_private.h (311041) | archive_read_private.h (348607) |
---|---|
1/*- 2 * Copyright (c) 2003-2007 Tim Kientzle 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 8 unchanged lines hidden (view full) --- 17 * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, 18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * | 1/*- 2 * Copyright (c) 2003-2007 Tim Kientzle 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 8 unchanged lines hidden (view full) --- 17 * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, 18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * |
25 * $FreeBSD: stable/11/contrib/libarchive/libarchive/archive_read_private.h 311041 2017-01-02 01:41:31Z mm $ | 25 * $FreeBSD: stable/11/contrib/libarchive/libarchive/archive_read_private.h 348607 2019-06-04 10:35:54Z mm $ |
26 */ 27 28#ifndef __LIBARCHIVE_BUILD 29#ifndef __LIBARCHIVE_TEST 30#error This header is only to be used internally to libarchive. 31#endif 32#endif 33 --- 59 unchanged lines hidden (view full) --- 93 /* Skip forward this many bytes. */ 94 int64_t (*skip)(struct archive_read_filter *self, int64_t request); 95 /* Seek to an absolute location. */ 96 int64_t (*seek)(struct archive_read_filter *self, int64_t offset, int whence); 97 /* Close (just this filter) and free(self). */ 98 int (*close)(struct archive_read_filter *self); 99 /* Function that handles switching from reading one block to the next/prev */ 100 int (*sswitch)(struct archive_read_filter *self, unsigned int iindex); | 26 */ 27 28#ifndef __LIBARCHIVE_BUILD 29#ifndef __LIBARCHIVE_TEST 30#error This header is only to be used internally to libarchive. 31#endif 32#endif 33 --- 59 unchanged lines hidden (view full) --- 93 /* Skip forward this many bytes. */ 94 int64_t (*skip)(struct archive_read_filter *self, int64_t request); 95 /* Seek to an absolute location. */ 96 int64_t (*seek)(struct archive_read_filter *self, int64_t offset, int whence); 97 /* Close (just this filter) and free(self). */ 98 int (*close)(struct archive_read_filter *self); 99 /* Function that handles switching from reading one block to the next/prev */ 100 int (*sswitch)(struct archive_read_filter *self, unsigned int iindex); |
101 /* Read any header metadata if available. */ 102 int (*read_header)(struct archive_read_filter *self, struct archive_entry *entry); |
|
101 /* My private data. */ 102 void *data; 103 104 const char *name; 105 int code; 106 107 /* Used by reblocking logic. */ 108 char *buffer; --- 136 unchanged lines hidden (view full) --- 245 246const void *__archive_read_ahead(struct archive_read *, size_t, ssize_t *); 247const void *__archive_read_filter_ahead(struct archive_read_filter *, 248 size_t, ssize_t *); 249int64_t __archive_read_seek(struct archive_read*, int64_t, int); 250int64_t __archive_read_filter_seek(struct archive_read_filter *, int64_t, int); 251int64_t __archive_read_consume(struct archive_read *, int64_t); 252int64_t __archive_read_filter_consume(struct archive_read_filter *, int64_t); | 103 /* My private data. */ 104 void *data; 105 106 const char *name; 107 int code; 108 109 /* Used by reblocking logic. */ 110 char *buffer; --- 136 unchanged lines hidden (view full) --- 247 248const void *__archive_read_ahead(struct archive_read *, size_t, ssize_t *); 249const void *__archive_read_filter_ahead(struct archive_read_filter *, 250 size_t, ssize_t *); 251int64_t __archive_read_seek(struct archive_read*, int64_t, int); 252int64_t __archive_read_filter_seek(struct archive_read_filter *, int64_t, int); 253int64_t __archive_read_consume(struct archive_read *, int64_t); 254int64_t __archive_read_filter_consume(struct archive_read_filter *, int64_t); |
255int __archive_read_header(struct archive_read *, struct archive_entry *); |
|
253int __archive_read_program(struct archive_read_filter *, const char *); 254void __archive_read_free_filters(struct archive_read *); 255struct archive_read_extract *__archive_read_get_extract(struct archive_read *); 256 257 258/* 259 * Get a decryption passphrase. 260 */ 261void __archive_read_reset_passphrase(struct archive_read *a); 262const char * __archive_read_next_passphrase(struct archive_read *a); 263#endif | 256int __archive_read_program(struct archive_read_filter *, const char *); 257void __archive_read_free_filters(struct archive_read *); 258struct archive_read_extract *__archive_read_get_extract(struct archive_read *); 259 260 261/* 262 * Get a decryption passphrase. 263 */ 264void __archive_read_reset_passphrase(struct archive_read *a); 265const char * __archive_read_next_passphrase(struct archive_read *a); 266#endif |