c06e2aa05305477bd93cbdf124125ecaa0f63f5a
[citadel.git] / ctdlsh / src / ctdlsh.h
1 /*
2  * main header file for ctdlsh
3  *
4  * Copyright (c) 2009-2012 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 <config.h>
10 #include <stdlib.h>
11 #include <unistd.h>
12 #include <stdio.h>
13 #include <signal.h>
14 #include <sys/types.h>
15 #include <sys/time.h>
16 #include <sys/socket.h>
17 #include <sys/un.h>
18 #include <string.h>
19 #include <pwd.h>
20 #include <time.h>
21 #include <errno.h>
22 #include <stdarg.h>
23 #include <fcntl.h>
24 #include <errno.h>
25 #include <readline/readline.h>
26
27 /*
28  * Set to the location of Citadel
29  * FIXME this needs to be configurable
30  */
31 #define CTDLDIR "/appl/citadel"
32
33 typedef int ctdlsh_cmdfunc_t(int, char *);
34
35 enum ctdlsh_cmdfunc_return_values {
36         cmdret_ok,
37         cmdret_exit,
38         cmdret_error
39 };
40
41 int cmd_help(int, char *);
42 int cmd_quit(int, char *);
43 int cmd_datetime(int, char *);
44 int cmd_passwd(int, char *);
45 int cmd_shutdown(int, char *);
46 int cmd_who(int, char *);