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