From owner-cvs-all@FreeBSD.ORG Sat Jul 24 20:08:27 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 24F2216A4CE; Sat, 24 Jul 2004 20:08:27 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2013143D49; Sat, 24 Jul 2004 20:08:27 +0000 (GMT) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i6OK8R4l004261; Sat, 24 Jul 2004 20:08:27 GMT (envelope-from kientzle@repoman.freebsd.org) Received: (from kientzle@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i6OK8RHU004260; Sat, 24 Jul 2004 20:08:27 GMT (envelope-from kientzle) Message-Id: <200407242008.i6OK8RHU004260@repoman.freebsd.org> From: Tim Kientzle Date: Sat, 24 Jul 2004 20:08:26 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libarchive archive.h archive_util.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jul 2004 20:08:27 -0000 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