X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsrc%2Flookupapi.h;h=adaed8253cd5f1eacca9327856d79e4fc1a5f171;hb=a746f186fdd8b3b6561919177b6dd011c2b177e4;hp=97f92ab3a582df2d2aa12936d0c73f96bed6a9ec;hpb=e6d225ae6e6811d3c88dc201642a2127ff6c11bd;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/lookupapi.h b/src/src/lookupapi.h index 97f92ab3a..adaed8253 100644 --- a/src/src/lookupapi.h +++ b/src/src/lookupapi.h @@ -1,10 +1,9 @@ -/* $Cambridge$ */ - /************************************************* * Exim - an Internet mail transport agent * *************************************************/ -/* Copyright (c) University of Cambridge 1995 - 2009 */ +/* Copyright (c) University of Cambridge 1995 - 2015 */ +/* Copyright (c) The Exim Maintainers 2020 */ /* See the file NOTICE for conditions of use and distribution. */ @@ -20,34 +19,39 @@ typedef struct lookup_info { uschar *name; /* e.g. "lsearch" */ int type; /* query/singlekey/abs-file */ void *(*open)( /* open function */ - uschar *, /* file name for those that have one */ + const uschar *, /* file name for those that have one */ uschar **); /* for error message */ BOOL (*check)( /* file checking function */ void *, /* handle */ - uschar *, /* file name */ + const uschar *, /* file name */ int, /* modemask for file checking */ uid_t *, /* owners for file checking */ gid_t *, /* owngroups for file checking */ uschar **); /* for error messages */ int (*find)( /* find function */ void *, /* handle */ - uschar *, /* file name or NULL */ - uschar *, /* key or query */ + const uschar *, /* file name or NULL */ + const uschar *, /* key or query */ int, /* length of key or query */ uschar **, /* for returning answer */ uschar **, /* for error message */ - BOOL *); /* to request cache cleanup */ + uint *, /* cache TTL, seconds */ + const uschar *); /* options */ void (*close)( /* close function */ void *); /* handle */ 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 */ } lookup_info; /* This magic number is used by the following lookup_module_info structure - for checking API compatibility. It's equivalent to the string"LMM1" */ -#define LOOKUP_MODULE_INFO_MAGIC 0x4c4d4d31 + for checking API compatibility. It used to be equivalent to the string"LMM3" */ +#define LOOKUP_MODULE_INFO_MAGIC 0x4c4d4933 +/* Version 2 adds: version_report */ +/* Version 3 change: non/cache becomes TTL in seconds */ typedef struct lookup_module_info { uint magic;