SPDX: license tags (mostly by guesswork)
[exim.git] / src / src / routers / manualroute.h
1 /*************************************************
2 *     Exim - an Internet mail transport agent    *
3 *************************************************/
4
5 /* Copyright (c) University of Cambridge 1995 - 2009 */
6 /* See the file NOTICE for conditions of use and distribution. */
7 /* SPDX-License-Identifier: GPL-2.0-only */
8
9 /* Header for the manualroute router */
10
11 /* Structure for the private options. */
12
13 typedef struct {
14   int   hai_code;
15   int   hff_code;
16   BOOL  hosts_randomize;
17   uschar *host_all_ignored;
18   uschar *host_find_failed;
19   uschar *route_data;
20   uschar *route_list;
21 } manualroute_router_options_block;
22
23 /* Data for reading the private options. */
24
25 extern optionlist manualroute_router_options[];
26 extern int manualroute_router_options_count;
27
28 /* Block containing default values. */
29
30 extern manualroute_router_options_block manualroute_router_option_defaults;
31
32 /* The main and initialization entry points for the router */
33
34 extern int manualroute_router_entry(router_instance *, address_item *,
35   struct passwd *, int, address_item **, address_item **,
36   address_item **, address_item **);
37
38 extern void manualroute_router_init(router_instance *);
39
40 /* End of routers/manualroute.h */