git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SPDX: Mass-update to GPL-2.0-or-later
[exim.git]
/
src
/
src
/
lookupapi.h
diff --git
a/src/src/lookupapi.h
b/src/src/lookupapi.h
index d8364dbb9970c278db9e8b1559491ed1985b1b44..62c8c0524b50db9df6c371461179ed7ecd305a58 100644
(file)
--- a/
src/src/lookupapi.h
+++ b/
src/src/lookupapi.h
@@
-2,9
+2,10
@@
* Exim - an Internet mail transport agent *
*************************************************/
* Exim - an Internet mail transport agent *
*************************************************/
+/* Copyright (c) The Exim Maintainers 2022 */
/* Copyright (c) University of Cambridge 1995 - 2015 */
/* Copyright (c) University of Cambridge 1995 - 2015 */
-/* Copyright (c) The Exim Maintainers 2020 */
/* See the file NOTICE for conditions of use and distribution. */
/* 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:
/* The "type" field in each item is a set of bit flags:
@@
-42,16
+43,19
@@
typedef struct lookup_info {
void (*tidy)(void); /* tidy function */
uschar *(*quote)( /* quoting function */
uschar *, /* string to quote */
void (*tidy)(void); /* tidy function */
uschar *(*quote)( /* quoting function */
uschar *, /* string to quote */
- uschar *); /* additional data from quote name */
+ uschar *, /* additional data from quote name */
+ unsigned); /* lookup type index */
gstring * (*version_report)( /* diagnostic function */
gstring * (*version_report)( /* diagnostic function */
- gstring *); /*
true: stdout. false: debug
*/
+ 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" */
} 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 0x4c4d493
3
+#define LOOKUP_MODULE_INFO_MAGIC 0x4c4d493
5
/* Version 2 adds: version_report */
/* Version 3 change: non/cache becomes TTL in seconds */
/* 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;
typedef struct lookup_module_info {
uint magic;