]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Encourage people not to use libarchive internal headers.
authorTim Kientzle <kientzle@gmail.com>
Wed, 12 Aug 2009 01:45:49 +0000 (21:45 -0400)
committerTim Kientzle <kientzle@gmail.com>
Wed, 12 Aug 2009 01:45:49 +0000 (21:45 -0400)
SVN-Revision: 1363

15 files changed:
libarchive/archive_crc32.h
libarchive/archive_endian.h
libarchive/archive_entry_private.h
libarchive/archive_hash.h
libarchive/archive_platform.h
libarchive/archive_private.h
libarchive/archive_read_disk_private.h
libarchive/archive_read_private.h
libarchive/archive_string.h
libarchive/archive_windows.h
libarchive/archive_write_disk_private.h
libarchive/archive_write_private.h
libarchive/config_freebsd.h
libarchive/config_windows.h
libarchive/filter_fork.h

index 60570120a81874bb626a8dc82697bd0e6bccfe85..b01fc58225ee3304a9d976dbbcce03ad2896f944 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#ifndef __LIBARCHIVE_BUILD
+#error This header is only to be used internally to libarchive.
+#endif
+
 /*
  * When zlib is unavailable, we should still be able to validate
  * uncompressed zip archives.  That requires us to be able to compute
index 3c62fbf5305093ccc7cb4de8a1284a74a0dfb6cb..cc0266e2886c7ba3d3f06bfac24f8414fb3a6cfc 100644 (file)
  * Borrowed from FreeBSD's <sys/endian.h>
  */
 
+#ifndef __LIBARCHIVE_BUILD
+#error This header is only to be used internally to libarchive.
+#endif
+
 /* Note:  This is a purely internal header! */
 /* Do not use this outside of libarchive internal code! */
 
index a4317decbfa8ce577f7782a55b7ef6cdde7e7442..c1d7c3f94aa27a373d22487ec2456f3d8b959126 100644 (file)
  * $FreeBSD: src/lib/libarchive/archive_entry_private.h,v 1.6 2008/09/30 03:53:03 kientzle Exp $
  */
 
+#ifndef __LIBARCHIVE_BUILD
+#error This header is only to be used internally to libarchive.
+#endif
+
 #ifndef ARCHIVE_ENTRY_PRIVATE_H_INCLUDED
 #define        ARCHIVE_ENTRY_PRIVATE_H_INCLUDED
 
index df87854ab52a9f85906a0fdef1837774cca5d54c..6ba0da3088fadafb598874d3065fe2feeda8c24c 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#ifndef __LIBARCHIVE_BUILD
+#error This header is only to be used internally to libarchive.
+#endif
+
 /*
  * Hash function support in various Operating Systems:
  *
index 88bcfd505f8006048c57ec193cd8f13b88ab8d71..75abc1bade1a038a8a692ebda7a6f4d339fa943d 100644 (file)
@@ -25,6 +25,8 @@
  * $FreeBSD: src/lib/libarchive/archive_platform.h,v 1.32 2008/12/06 05:53:05 kientzle Exp $
  */
 
+/* !!ONLY FOR USE INTERNALLY TO LIBARCHIVE!! */
+
 /*
  * This header is the first thing included in any of the libarchive
  * source files.  As far as possible, platform-specific issues should
index 6381abdb870cc3d9deb9cdc55a82564a6c4adafb..67374a4ff456201089029c45fe0107635cdeb460 100644 (file)
  * $FreeBSD: src/lib/libarchive/archive_private.h,v 1.32 2008/12/06 06:23:37 kientzle Exp $
  */
 
+#ifndef __LIBARCHIVE_BUILD
+#error This header is only to be used internally to libarchive.
+#endif
+
 #ifndef ARCHIVE_PRIVATE_H_INCLUDED
 #define        ARCHIVE_PRIVATE_H_INCLUDED
 
index fd385a6b77e6aca6a59c43a2ae98cb53dab9e9c3..3e8884b613c710471651f30e089d2464a1288658 100644 (file)
  * $FreeBSD$
  */
 
+#ifndef __LIBARCHIVE_BUILD
+#error This header is only to be used internally to libarchive.
+#endif
+
 #ifndef ARCHIVE_READ_DISK_PRIVATE_H_INCLUDED
 #define ARCHIVE_READ_DISK_PRIVATE_H_INCLUDED
 
index 0808cbc1dbd8fb83cfcb452ef74b6d235c317700..e64d69137c692bea0d78c4253d0794415e8bf503 100644 (file)
  * $FreeBSD: src/lib/libarchive/archive_read_private.h,v 1.7 2008/12/06 06:45:15 kientzle Exp $
  */
 
+#ifndef __LIBARCHIVE_BUILD
+#error This header is only to be used internally to libarchive.
+#endif
+
 #ifndef ARCHIVE_READ_PRIVATE_H_INCLUDED
 #define        ARCHIVE_READ_PRIVATE_H_INCLUDED
 
index 9b6f22232f7829559d3053e654f77c1361dae44b..3d3730400cdc719411a75dbcbc0ec09bd6b689db 100644 (file)
  *
  */
 
+#ifndef __LIBARCHIVE_BUILD
+#error This header is only to be used internally to libarchive.
+#endif
+
 #ifndef ARCHIVE_STRING_H_INCLUDED
 #define        ARCHIVE_STRING_H_INCLUDED
 
index cbbb1b8f9612ee66574597b70b4c6134f43150c9..250d3fb4ac0b621005631365f051fa7b37ffdae6 100644 (file)
  * $FreeBSD$
  */
 
+#ifndef __LIBARCHIVE_BUILD
+#error This header is only to be used internally to libarchive.
+#endif
+
 #ifndef LIBARCHIVE_ARCHIVE_WINDOWS_H_INCLUDED
 #define        LIBARCHIVE_ARCHIVE_WINDOWS_H_INCLUDED
 
index 1e8ad6922ef223f97b4144fb353ff224a8e1f526..3722c19b4daed2803532c041ba281f064c0abc25 100644 (file)
  * $FreeBSD: src/lib/libarchive/archive_write_disk_private.h,v 1.1 2007/03/03 07:37:36 kientzle Exp $
  */
 
+#ifndef __LIBARCHIVE_BUILD
+#error This header is only to be used internally to libarchive.
+#endif
+
 #ifndef ARCHIVE_WRITE_DISK_PRIVATE_H_INCLUDED
 #define ARCHIVE_WRITE_DISK_PRIVATE_H_INCLUDED
 
index 58a96757d4f2dd89b4d0325a061e58165dcbadbd..6192071ffb95c54e39a5100c13fb1780c86f18ef 100644 (file)
  * $FreeBSD: src/lib/libarchive/archive_write_private.h,v 1.3 2008/03/15 11:04:45 kientzle Exp $
  */
 
+#ifndef __LIBARCHIVE_BUILD
+#error This header is only to be used internally to libarchive.
+#endif
+
 #ifndef ARCHIVE_WRITE_PRIVATE_H_INCLUDED
 #define        ARCHIVE_WRITE_PRIVATE_H_INCLUDED
 
index f8224b322303e66b3bbccde140ea230f7efdd9d8..87b154fef5d2e0f21a44ae161dfc1b0704e02fc2 100644 (file)
  * $FreeBSD: src/lib/libarchive/config_freebsd.h,v 1.15 2008/09/30 03:53:03 kientzle Exp $
  */
 
+#ifndef __LIBARCHIVE_BUILD
+#error This header is only to be used internally to libarchive.
+#endif
+
 /* FreeBSD 5.0 and later have ACL and extattr support. */
 #if __FreeBSD__ > 4
 #define        HAVE_ACL_CREATE_ENTRY 1
+#define        HAVE_ACL_GET_LINK_NP 1
 #define        HAVE_ACL_GET_PERM_NP 1
 #define        HAVE_ACL_INIT 1
 #define        HAVE_ACL_SET_FD 1
index 730e31dc2699715d97dcb243860c7225a4fbcbe9..a9d7150cfcb9246d61368598f118a02df27c58ba 100644 (file)
@@ -1,5 +1,10 @@
 /* config.h.  Generated from config.h.in by configure.  */
 /* config.h.in.  Generated from configure.ac by autoheader.  */
+
+#ifndef __LIBARCHIVE_BUILD
+#error This header is only to be used internally to libarchive.
+#endif
+
 #ifndef CONFIG_H_INCLUDED
 #define        CONFIG_H_INCLUDED
 
index 685efda09fcd8b85fcce19a0451d7fd780af2026..3eb446eeb5b4070d33333d0c9efed0a7c1e1c613 100644 (file)
  * $FreeBSD: src/lib/libarchive/filter_fork.h,v 1.1 2007/05/29 01:00:20 kientzle Exp $
  */
 
+#ifndef __LIBARCHIVE_BUILD
+#error This header is only to be used internally to libarchive.
+#endif
+
 #ifndef FILTER_FORK_H
 #define FILTER_FORK_H