Make BOOL unsigned; fix resulting latent bugs
[exim.git] / src / src / routers / queryprogram.h
CommitLineData
0756eb3c
PH
1/*************************************************
2* Exim - an Internet mail transport agent *
3*************************************************/
4
0a49a7a4 5/* Copyright (c) University of Cambridge 1995 - 2009 */
0756eb3c
PH
6/* See the file NOTICE for conditions of use and distribution. */
7
8
9/* Private structure for the private options. */
10
11typedef 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
25extern optionlist queryprogram_router_options[];
26extern int queryprogram_router_options_count;
27
28/* Block containing default values. */
29
30extern queryprogram_router_options_block queryprogram_router_option_defaults;
31
32/* The main and initialization entry points for the router */
33
34extern int queryprogram_router_entry(router_instance *, address_item *,
fd6de02e 35 struct passwd *, int, address_item **, address_item **,
0756eb3c
PH
36 address_item **, address_item **);
37
38extern void queryprogram_router_init(router_instance *);
39
40/* End of routers/queryprogram.h */