Only define CTDLDIR if not already defined
[citadel.git] / ctdlsh / src / ctdlsh.h
index db607975acd250146c85482abefb8acd9c120562..8424391e38f23764b5d1dd41b97ae431377c9412 100644 (file)
@@ -1,3 +1,11 @@
+/*
+ * main header file for ctdlsh
+ *
+ * Copyright (c) 2009-2013 by the citadel.org team
+ * This program is open source software, cheerfully made available to
+ * you under the terms of the GNU General Public License version 3.
+ */
+
 #include <config.h>
 #include <stdlib.h>
 #include <unistd.h>
@@ -20,7 +28,9 @@
  * Set to the location of Citadel
  * FIXME this needs to be configurable
  */
-#define CTDLDIR        "/appl/citadel"
+#ifndef CTDLDIR
+#define CTDLDIR        "/usr/local/citadel"
+#endif
 
 typedef int ctdlsh_cmdfunc_t(int, char *);
 
@@ -35,3 +45,4 @@ int cmd_quit(int, char *);
 int cmd_datetime(int, char *);
 int cmd_passwd(int, char *);
 int cmd_shutdown(int, char *);
+int cmd_who(int, char *);