X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsrc%2Flookupapi.h;h=62c8c0524b50db9df6c371461179ed7ecd305a58;hb=4f7a93c27e3d43b44c42d3fc503f03b9b42ca622;hp=a3380527c5f4d5505bc7f0861e0697aba7301334;hpb=67a57a5afd313490a8763d60ec4df857b9cf239b;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/lookupapi.h b/src/src/lookupapi.h index a3380527c..62c8c0524 100644 --- a/src/src/lookupapi.h +++ b/src/src/lookupapi.h @@ -2,8 +2,10 @@ * Exim - an Internet mail transport agent * *************************************************/ +/* Copyright (c) The Exim Maintainers 2022 */ /* Copyright (c) University of Cambridge 1995 - 2015 */ /* See the file NOTICE for conditions of use and distribution. */ +/* SPDX-License-Identifier: GPL-2.0-or-later */ /* The "type" field in each item is a set of bit flags: @@ -41,16 +43,19 @@ typedef struct lookup_info { void (*tidy)(void); /* tidy function */ uschar *(*quote)( /* quoting function */ uschar *, /* string to quote */ - uschar *); /* additional data from quote name */ - void (*version_report)( /* diagnostic function */ - FILE *); /* fh to write to */ + uschar *, /* additional data from quote name */ + unsigned); /* lookup type index */ + gstring * (*version_report)( /* diagnostic function */ + gstring *); /* string to appand to */ } lookup_info; /* This magic number is used by the following lookup_module_info structure for checking API compatibility. It used to be equivalent to the string"LMM3" */ -#define LOOKUP_MODULE_INFO_MAGIC 0x4c4d4933 +#define LOOKUP_MODULE_INFO_MAGIC 0x4c4d4935 /* Version 2 adds: version_report */ /* Version 3 change: non/cache becomes TTL in seconds */ +/* Version 4 add: index on quoting function */ +/* Version 5 change: version report now adds to a gstring */ typedef struct lookup_module_info { uint magic;