+#include <config.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <stdio.h>
+#include <signal.h>
+#include <sys/types.h>
+#include <sys/time.h>
+#include <sys/socket.h>
+#include <sys/un.h>
+#include <string.h>
+#include <pwd.h>
+#include <time.h>
+#include <errno.h>
+#include <stdarg.h>
+#include <fcntl.h>
+#include <errno.h>
+#include <readline/readline.h>
+
+/*
+ * Set to the location of Citadel
+ * FIXME this needs to be configurable
+ */
+#define CTDLDIR "/appl/citadel"
+
/*
* This is a small subset of 'struct config' ... don't worry about the rest; we
* only need to snarf the c_ipgm_secret.
int c_port_number; /* Cit listener port (usually 504) */
int c_ipgm_secret; /* Internal program authentication */
};
+
+typedef int ctdlsh_cmdfunc_t(int, char *);
+
+enum ctdlsh_cmdfunc_return_values {
+ cmdret_ok,
+ cmdret_exit,
+ cmdret_error
+};
+
+int cmd_help(int, char *);
+int cmd_quit(int, char *);
+int cmd_datetime(int, char *);
+int cmd_passwd(int, char *);