Commit 48452ce4 48452ce4e79704c4c027daa3058a5a46f7856a85 by Sergey Poznyakoff

Moved to mailbox

1 parent 94abb6c5
1 /* GNU mailutils - a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
7 any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17
18 #ifndef MU_ARGP_H
19 #define MU_ARGP_H 1
20
21 #include <mailutils/mailbox.h>
22 #include <argp.h>
23
24 #define MODE_INTERACTIVE 0
25 #define MODE_DAEMON 1
26
27 struct daemon_param {
28 int mode;
29 size_t maxchildren;
30 unsigned int port;
31 unsigned int timeout;
32 };
33
34 #ifdef USE_LIBPAM
35 extern char *pam_service;
36 #endif
37 extern int log_facility;
38 extern int mu_argp_error_code;
39
40 extern void mu_create_argcv __P((const char *capa[],
41 int argc, char **argv,
42 int *p_argc, char ***p_argv));
43 extern error_t mu_argp_parse __P((const struct argp *argp,
44 int *p_argc, char ***p_argv,
45 unsigned flags,
46 const char *capa[],
47 int *arg_index,
48 void *input));
49
50 #endif
51