]> code.citadel.org Git - citadel.git/blob - citadel/serv_vandelay.c
* Added the Art Vandelay module
[citadel.git] / citadel / serv_vandelay.c
1 /*
2  * $Id$
3  *
4  * This is the "Art Vandelay" module.  It is an importer/exporter.
5  *
6  */
7
8 #include "sysdep.h"
9 #include <stdlib.h>
10 #include <unistd.h>
11 #include <stdio.h>
12 #include <fcntl.h>
13 #include <signal.h>
14 #include <pwd.h>
15 #include <errno.h>
16 #include <sys/types.h>
17 #include <sys/time.h>
18 #include <sys/wait.h>
19 #include <string.h>
20 #include <limits.h>
21 #include "citadel.h"
22 #include "server.h"
23 #include <time.h>
24 #include "sysdep_decls.h"
25 #include "citserver.h"
26 #include "support.h"
27 #include "config.h"
28 #include "dynloader.h"
29 #include "database.h"
30 #include "msgbase.h"
31 #include "tools.h"
32
33
34 void artv_do_export(void) {
35         cprintf("%d command not yet implemented\n", ERROR);
36 }
37
38
39
40
41 void artv_do_import(void) {
42         cprintf("%d command not yet implemented\n", ERROR);
43 }
44
45
46
47 void cmd_artv(char *cmdbuf) {
48         char cmd[256];
49
50         if (CtdlAccessCheck(ac_aide)) return;   /* FIXME should be intpgm */
51
52         extract(cmd, cmdbuf, 0);
53         if (!strcasecmp(cmd, "export")) artv_do_export();
54         else if (!strcasecmp(cmd, "import")) artv_do_import();
55         else cprintf("%d illegal command\n", ERROR);
56 }
57
58
59
60
61 char *Dynamic_Module_Init(void)
62 {
63         CtdlRegisterProtoHook(cmd_artv, "ARTV", "import/export data store");
64         return "$Id$";
65 }