X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/e6d225ae6e6811d3c88dc201642a2127ff6c11bd..6545de78cb822ab5db97a2f16fe7a42cc9488bd8:/src/src/lookups/dbmdb.c diff --git a/src/src/lookups/dbmdb.c b/src/src/lookups/dbmdb.c index 29a4a3adb..1b5e69eeb 100644 --- a/src/src/lookups/dbmdb.c +++ b/src/src/lookups/dbmdb.c @@ -142,6 +142,25 @@ static dbmdb_close(void *handle) EXIM_DBCLOSE((EXIM_DB *)handle); } + + +/************************************************* +* Version reporting entry point * +*************************************************/ + +/* See local README for interface description. */ + +#include "../version.h" + +void +dbm_version_report(FILE *f) +{ +#ifdef DYNLOOKUP +fprintf(f, "Library version: DBM: Exim version %s\n", EXIM_VERSION_STR); +#endif +} + + lookup_info dbm_lookup_info = { US"dbm", /* lookup name */ lookup_absfile, /* uses absolute file name */ @@ -150,7 +169,8 @@ lookup_info dbm_lookup_info = { dbmdb_find, /* find function */ dbmdb_close, /* close function */ NULL, /* no tidy function */ - NULL /* no quoting function */ + NULL, /* no quoting function */ + dbm_version_report /* version reporting */ }; lookup_info dbmz_lookup_info = { @@ -161,7 +181,8 @@ lookup_info dbmz_lookup_info = { dbmnz_find, /* find function */ dbmdb_close, /* sic */ /* close function */ NULL, /* no tidy function */ - NULL /* no quoting function */ + NULL, /* no quoting function */ + NULL /* no version reporting (redundant) */ }; #ifdef DYNLOOKUP