Make dnssec_request_domains/dnssec_require_domains generic
[users/jgh/exim.git] / src / src / routers / queryprogram.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
8
9 /* Private structure for the private options. */
10
11 typedef struct {
12   uschar *command;
13   int timeout;
14   uid_t cmd_uid;
15   gid_t cmd_gid;
16   BOOL cmd_uid_set;
17   BOOL cmd_gid_set;
18   uschar *current_directory;
19   uschar *expand_cmd_gid;
20   uschar *expand_cmd_uid;
21 } queryprogram_router_options_block;
22
23 /* Data for reading the private options. */
24
25 extern optionlist queryprogram_router_options[];
26 extern int queryprogram_router_options_count;
27
28 /* Block containing default values. */
29
30 extern queryprogram_router_options_block queryprogram_router_option_defaults;
31
32 /* The main and initialization entry points for the router */
33
34 extern int queryprogram_router_entry(router_instance *, address_item *,
35   struct passwd *, int, address_item **, address_item **,
36   address_item **, address_item **);
37
38 extern void queryprogram_router_init(router_instance *);
39
40 /* End of routers/queryprogram.h */