summaryrefslogtreecommitdiffstats
path: root/libarchive/archive_private.h
diff options
context:
space:
mode:
authorLibArchive Upstream <libarchive-discuss@googlegroups.com>2015-10-21 08:47:34 (GMT)
committerBrad King <brad.king@kitware.com>2015-10-21 13:37:00 (GMT)
commit1a8c7bc2c649781d1163c1966245a45e0fb829ba (patch)
tree9be1fb64019a5ef371a2f4136831e275546dc5a6 /libarchive/archive_private.h
parent37f225b72c8e4c440025a98f68eda9914f7ba5f7 (diff)
downloadCMake-1a8c7bc2c649781d1163c1966245a45e0fb829ba.zip
CMake-1a8c7bc2c649781d1163c1966245a45e0fb829ba.tar.gz
CMake-1a8c7bc2c649781d1163c1966245a45e0fb829ba.tar.bz2
libarchive 3.1.2-601-g3bfe5f1 (reduced)
Extract upstream libarchive using the following shell code. url=git://github.com/libarchive/libarchive.git && v=3.1.2-601-g3bfe5f1 && r=3bfe5f1 && paths=" CMakeLists.txt COPYING CTestConfig.cmake build/cmake build/pkgconfig build/utils build/version libarchive/*.* " && mkdir libarchive-$v-g$r-reduced && git clone $url libarchive-git && date=$(cd libarchive-git && git log -n 1 --format='%cd' $r) && (cd libarchive-git && git archive --format=tar $r -- $paths) | (cd libarchive-$v-g$r-reduced && tar xv) && fromdos libarchive-$v-g$r-reduced/build/cmake/Find*.cmake && echo "g$r date: $date"
Diffstat (limited to 'libarchive/archive_private.h')
-rw-r--r--libarchive/archive_private.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/libarchive/archive_private.h b/libarchive/archive_private.h
index 30d472f..4b4be97 100644
--- a/libarchive/archive_private.h
+++ b/libarchive/archive_private.h
@@ -119,6 +119,23 @@ struct archive {
unsigned current_codepage; /* Current ACP(ANSI CodePage). */
unsigned current_oemcp; /* Current OEMCP(OEM CodePage). */
struct archive_string_conv *sconv;
+
+ /*
+ * Used by archive_read_data() to track blocks and copy
+ * data to client buffers, filling gaps with zero bytes.
+ */
+ const char *read_data_block;
+ int64_t read_data_offset;
+ int64_t read_data_output_offset;
+ size_t read_data_remaining;
+
+ /*
+ * Used by formats/filters to determine the amount of data
+ * requested from a call to archive_read_data(). This is only
+ * useful when the format/filter has seek support.
+ */
+ char read_data_is_posix_read;
+ size_t read_data_requested;
};
/* Check magic value and state; return(ARCHIVE_FATAL) if it isn't valid. */
@@ -139,6 +156,8 @@ int __archive_mktemp(const char *tmpdir);
int __archive_clean(struct archive *);
+void __archive_reset_read_data(struct archive *);
+
#define err_combine(a,b) ((a) < (b) ? (a) : (b))
#if defined(__BORLANDC__) || (defined(_MSC_VER) && _MSC_VER <= 1300)