Reworked ctdlsh to use the new admin socket instead of ipgm
[citadel.git] / ctdlsh / src / ctdlsh.h
1 #include <config.h>
2 #include <stdlib.h>
3 #include <unistd.h>
4 #include <stdio.h>
5 #include <signal.h>
6 #include <sys/types.h>
7 #include <sys/time.h>
8 #include <sys/socket.h>
9 #include <sys/un.h>
10 #include <string.h>
11 #include <pwd.h>
12 #include <time.h>
13 #include <errno.h>
14 #include <stdarg.h>
15 #include <fcntl.h>
16 #include <errno.h>
17 #include <readline/readline.h>
18
19 /*
20  * Set to the location of Citadel
21  * FIXME this needs to be configurable
22  */
23 #define CTDLDIR "/appl/citadel"
24
25 typedef int ctdlsh_cmdfunc_t(int, char *);
26
27 enum ctdlsh_cmdfunc_return_values {
28         cmdret_ok,
29         cmdret_exit,
30         cmdret_error
31 };
32
33 int cmd_help(int, char *);
34 int cmd_quit(int, char *);
35 int cmd_datetime(int, char *);
36 int cmd_passwd(int, char *);
37 int cmd_shutdown(int, char *);