4 * This is the "Art Vandelay" module. It is an importer/exporter.
16 #include <sys/types.h>
24 #include "sysdep_decls.h"
25 #include "citserver.h"
28 #include "dynloader.h"
34 void artv_do_export(void) {
35 cprintf("%d command not yet implemented\n", ERROR);
41 void artv_do_import(void) {
42 cprintf("%d command not yet implemented\n", ERROR);
47 void cmd_artv(char *cmdbuf) {
50 if (CtdlAccessCheck(ac_aide)) return; /* FIXME should be intpgm */
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);
61 char *Dynamic_Module_Init(void)
63 CtdlRegisterProtoHook(cmd_artv, "ARTV", "import/export data store");