Home GnuPG

Add assuan_check_version and ASSUAN_VERSION_NUMBER.
ab2e01598446Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Add assuan_check_version and ASSUAN_VERSION_NUMBER.

* src/assuan.c (assuan_check_version): New.
(digitp, parse_version_number, parse_version_string)
(compare_versions): New.  Taken from libksba.
* configure.ac (VERSION_NUMBER): New ac_subst.
* src/Makefile.am (assuan.h): Pass VERSION and VERSION_NUMBER to
mkheader.
* src/assuan.h.in (ASSUAN_VERSION, ASSUAN_VERSION_NUMBER): New macros.
(assuan_check_version): New prototype.
* src/libassuan.def, src/libassuan.vers: Add assuan_check_version.
* src/mkheader.c (write_special, main): Support version and
version_number.
* tests/version.c: New.
* tests/Makefile.am (TESTS): Add version.

All our other libs have a version number check, thus we should have
one in Libassuan as well.

Details

Provenance
wernerAuthored on Feb 22 2013, 7:34 PM
Parents
rAa4d64a06f9b8: w32: Fix header inclusion order for newer toolchain.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rAab2e01598446: Add assuan_check_version and ASSUAN_VERSION_NUMBER. (authored by Werner Koch <wk@gnupg.org>).Feb 22 2013, 7:34 PM