cvs commit: src/lib/libarchive archive.h archive_util.c
Tim Kientzle
kientzle at FreeBSD.org
Sat Jul 24 13:08:27 PDT 2004
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
More information about the cvs-src
mailing list