Copyright updates:
[exim.git] / src / src / routers / iplookup.h
1 /*************************************************
2 *     Exim - an Internet mail transport agent    *
3 *************************************************/
4
5 /* Copyright (c) University of Cambridge 1995 - 2009 */
6 /* Copyright (c) The Exim Maintainers 2021 */
7 /* See the file NOTICE for conditions of use and distribution. */
8
9
10 /* Private structure for the private options. */
11
12 typedef struct {
13   int   port;
14   int   protocol;
15   int   timeout;
16   uschar *protocol_name;
17   uschar *hosts;
18   uschar *query;
19   uschar *response_pattern;
20   uschar *reroute;
21   const pcre2_code *re_response_pattern;
22   BOOL  optional;
23 } iplookup_router_options_block;
24
25 /* Data for reading the private options. */
26
27 extern optionlist iplookup_router_options[];
28 extern int iplookup_router_options_count;
29
30 /* Block containing default values. */
31
32 extern iplookup_router_options_block iplookup_router_option_defaults;
33
34 /* The main and initialization entry points for the router */
35
36 extern int iplookup_router_entry(router_instance *, address_item *,
37   struct passwd *, int, address_item **, address_item **,
38   address_item **, address_item **);
39
40 extern void iplookup_router_init(router_instance *);
41
42 /* End of routers/iplookup.h */