Date: Sat, 24 Jul 2004 20:08:26 +0000 (UTC) From: Tim Kientzle <kientzle@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libarchive archive.h archive_util.c Message-ID: <200407242008.i6OK8RHU004260@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kientzle 2004-07-24 20:08:26 UTC
FreeBSD src repository
Modified files:
lib/libarchive archive.h archive_util.c
Log:
Add some functions to query basic facts about the library:
archive_version: Returns a text string, e.g., "libarchive 1.00.000"
archive_api_version: Returns the SHLIB major version
archive_api_feature: Returns a feature number useful for answering
questions such as "Is this recent enough to do XXX?"
The last two also have macros defined in archive.h, so you can compare
the compile-time and run-time environments. (In particular, you can
compare ARCHIVE_API_VERSION to archive_api_version() to detect library
version mismatches.)
With these in hand, it will soon be time to turn on the
shared-library version of libarchive... stay tuned.
Revision Changes Path
1.15 +24 -6 src/lib/libarchive/archive.h
1.7 +18 -0 src/lib/libarchive/archive_util.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407242008.i6OK8RHU004260>
