X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/56e0c4ce946ae13628c4349f982c3407e1019dd0..6545de78cb822ab5db97a2f16fe7a42cc9488bd8:/src/src/lookups/cdb.c diff --git a/src/src/lookups/cdb.c b/src/src/lookups/cdb.c index 6e8b88790..a8fb6b096 100644 --- a/src/src/lookups/cdb.c +++ b/src/src/lookups/cdb.c @@ -435,6 +435,25 @@ struct cdb_state * cdbp = handle; (void)close(cdbp->fileno); } + + +/************************************************* +* Version reporting entry point * +*************************************************/ + +/* See local README for interface description. */ + +#include "../version.h" + +void +cdb_version_report(FILE *f) +{ +#ifdef DYNLOOKUP +fprintf(f, "Library version: CDB: Exim version %s\n", EXIM_VERSION_STR); +#endif +} + + lookup_info cdb_lookup_info = { US"cdb", /* lookup name */ lookup_absfile, /* uses absolute file name */ @@ -443,7 +462,8 @@ lookup_info cdb_lookup_info = { cdb_find, /* find function */ cdb_close, /* close function */ NULL, /* no tidy function */ - NULL /* no quoting function */ + NULL, /* no quoting function */ + cdb_version_report /* version reporting */ }; #ifdef DYNLOOKUP