]> code.citadel.org Git - citadel.git/blobdiff - webcit/netconf.c
Done with doxygenizing
[citadel.git] / webcit / netconf.c
index 8b73b8d7a9e24387a12cd26b1d56865b350d0164..87cdda642b45f653455f351d1d32f682931a9ab8 100644 (file)
@@ -1,12 +1,16 @@
 /* 
  * $Id$
- *
- * Functions which handle network and sharing configuration.
+ */
+/**
+ * \defgroup NetShareConf Functions which handle network and sharing configuration.
  *
  */
-
+/*@{*/
 #include "webcit.h"
 
+/**
+ * \brief edit a network node
+ */
 void edit_node(void) {
        char buf[SIZ];
        char node[SIZ];
@@ -51,7 +55,9 @@ void edit_node(void) {
 }
 
 
-
+/**
+ * \brief add a node
+ */
 void display_add_node(void)
 {
        output_headers(1, 1, 2, 0, 0, 0);
@@ -63,7 +69,7 @@ void display_add_node(void)
        wprintf("</TD></TR></TABLE>\n");
        wprintf("</div>\n<div id=\"content\">\n");
 
-       wprintf("<FORM METHOD=\"POST\" action=\"/edit_node\">\n");
+       wprintf("<FORM METHOD=\"POST\" action=\"edit_node\">\n");
        wprintf("<CENTER><TABLE border=0>\n");
        wprintf("<TR><TD>%s</TD>", _("Node name"));
        wprintf("<TD><INPUT TYPE=\"text\" NAME=\"node\" MAXLENGTH=\"16\"></TD></TR>\n");
@@ -82,6 +88,9 @@ void display_add_node(void)
        wDumpContent(1);
 }
 
+/**
+ * \brief modify an existing node
+ */
 void display_edit_node(void)
 {
        char buf[512];
@@ -113,7 +122,7 @@ void display_edit_node(void)
                        extract_token(cport, buf, 3, '|', sizeof cport);
 
                        if (!strcasecmp(node, cnode)) {
-                               wprintf("<FORM METHOD=\"POST\" action=\"/edit_node\">\n");
+                               wprintf("<FORM METHOD=\"POST\" action=\"edit_node\">\n");
                                wprintf("<CENTER><TABLE border=0>\n");
                                wprintf("<TR><TD>");
                                wprintf(_("Node name"));
@@ -143,7 +152,7 @@ void display_edit_node(void)
                }
        }
 
-       else {          /* command error getting configuration */
+       else {          /** command error getting configuration */
                wprintf("%s<br />\n", &buf[4]);
        }
 
@@ -151,7 +160,9 @@ void display_edit_node(void)
 }
 
 
-
+/**
+ * \brief display all configured nodes
+ */
 void display_netconf(void)
 {
        char buf[SIZ];
@@ -167,7 +178,7 @@ void display_netconf(void)
        wprintf("</div>\n<div id=\"content\">\n");
 
        wprintf("<CENTER>");
-       wprintf("<a href=\"/display_add_node\">");
+       wprintf("<a href=\"display_add_node\">");
        wprintf(_("Add a new node"));
        wprintf("</A><br />\n");
        wprintf("</CENTER>");
@@ -186,12 +197,12 @@ void display_netconf(void)
                        wprintf("<TR><TD><FONT SIZE=+1>");
                        escputs(node);
                        wprintf("</FONT></TD>");
-                       wprintf("<TD><a href=\"/display_edit_node&node=");
+                       wprintf("<TD><a href=\"display_edit_node&node=");
                        urlescputs(node);
                        wprintf("\">");
                        wprintf(_("(Edit)"));
                        wprintf("</A></TD>");
-                       wprintf("<TD><a href=\"/display_confirm_delete_node&node=");
+                       wprintf("<TD><a href=\"display_confirm_delete_node&node=");
                        urlescputs(node);
                        wprintf("\">");
                        wprintf(_("(Delete)"));
@@ -203,7 +214,9 @@ void display_netconf(void)
        wDumpContent(1);
 }
 
-
+/**
+ * \brief display the dialog to verify the deletion
+ */
 void display_confirm_delete_node(void)
 {
        char node[SIZ];
@@ -223,18 +236,20 @@ void display_confirm_delete_node(void)
        wprintf("<FONT SIZE=+1>");
        escputs(node);
        wprintf("</FONT>?<br />\n");
-       wprintf("<a href=\"/delete_node&node=");
+       wprintf("<a href=\"delete_node&node=");
        urlescputs(node);
        wprintf("\">");
        wprintf(_("Yes"));
        wprintf("</A>&nbsp;&nbsp;&nbsp;");
-       wprintf("<a href=\"/display_netconf\">");
+       wprintf("<a href=\"display_netconf\">");
        wprintf(_("No"));
        wprintf("</A><br />\n");
        wDumpContent(1);
 }
 
-
+/**
+ * \brief actually delete the node
+ */
 void delete_node(void)
 {
        char buf[SIZ];
@@ -272,7 +287,9 @@ void delete_node(void)
        display_netconf();
 }
 
-
+/**
+ * \brief add a new node
+ */
 void add_node(void)
 {
        char node[SIZ];
@@ -287,7 +304,7 @@ void add_node(void)
                if (buf[0] == '1') {
                        output_headers(1, 1, 0, 0, 0, 0);
                        server_to_text();
-                       wprintf("<a href=\"/display_netconf\">");
+                       wprintf("<a href=\"display_netconf\">");
                        wprintf(_("Back to menu"));
                        wprintf("</A>\n");
                        wDumpContent(1);
@@ -299,3 +316,4 @@ void add_node(void)
 }
 
 
+/*@}*/