Mailing list header changes (fuck you Google)
[citadel.git] / ctdlsh / ctdlsh.h
1 /*
2  * main header file for ctdlsh
3  *
4  * Copyright (c) 2009-2013 by the citadel.org team
5  * This program is open source software, cheerfully made available to
6  * you under the terms of the GNU General Public License version 3.
7  */
8
9 #include <stdlib.h>
10 #include <unistd.h>
11 #include <stdio.h>
12 #include <signal.h>
13 #include <sys/types.h>
14 #include <sys/time.h>
15 #include <sys/socket.h>
16 #include <sys/un.h>
17 #include <string.h>
18 #include <pwd.h>
19 #include <time.h>
20 #include <errno.h>
21 #include <stdarg.h>
22 #include <fcntl.h>
23 #include <errno.h>
24 #include <readline/readline.h>
25 #include <libcitadel.h>
26
27 /*
28  * Set to the location of Citadel
29  * FIXME this needs to be configurable
30  */
31 #ifndef CTDLDIR
32 #define CTDLDIR "/usr/local/citadel"
33 #endif
34
35 typedef int ctdlsh_cmdfunc_t(int, char *);
36
37 enum ctdlsh_cmdfunc_return_values {
38         cmdret_ok,
39         cmdret_exit,
40         cmdret_error
41 };
42
43 int cmd_help(int, char *);
44 int cmd_quit(int, char *);
45 int cmd_datetime(int, char *);
46 int cmd_passwd(int, char *);
47 int cmd_shutdown(int, char *);
48 int cmd_who(int, char *);
49 int cmd_export(int, char *);
50 int cmd_config(int, char *);
51 int cmd_mailq(int, char *);