]> code.citadel.org Git - citadel.git/blobdiff - citadel/serv_network.c
* prep for new network node infrastructure
[citadel.git] / citadel / serv_network.c
index 6aa5d9481d4454096b551f4ddcf120fb0ba76c48..9c428c8c271ed1462d5d09c11f78078eb7bdb9b7 100644 (file)
@@ -340,10 +340,43 @@ void network_do_queue(void) {
 }
 
 
+
+/*
+ * Add, change, or delete network nodes
+ */
+void cmd_node(char *argbuf) {
+       char command[SIZ];
+       char nodename[SIZ];
+       char secret[SIZ];
+       FILE *fp;
+
+       if (CtdlAccessCheck(ac_aide)) return;
+
+       extract(command, argbuf, 0);
+
+       if (!strcasecmp(command, "add")) {
+               cprintf("%d bloopyblard\n", ERROR);
+               return;
+       }
+       
+       else {
+               cprintf("%d Illegal option(s) specified.\n",
+                       ERROR+ILLEGAL_VALUE);
+               return;
+       }
+}
+
+
+
+
+/*
+ * Module entry point
+ */
 char *Dynamic_Module_Init(void)
 {
        CtdlRegisterProtoHook(cmd_gnet, "GNET", "Get network config");
        CtdlRegisterProtoHook(cmd_snet, "SNET", "Get network config");
+       CtdlRegisterProtoHook(cmd_node, "NODE", "Modify network nodes");
        CtdlRegisterSessionHook(network_do_queue, EVT_TIMER);
        return "$Id$";
 }