* Doxygen groups. Sorted the files into groups. so now we have a nice structure
[citadel.git] / webcit / autocompletion.c
index 9c99817350d1c4b55d4cf618ae1c3c607e61ffc3..0b9373ea2a8a5fea8b940fd831c9a7fb8285cf32 100644 (file)
@@ -1,20 +1,22 @@
 /*
  * $Id$
- *
- * ajax-powered autocompletion...
+ *//**
+ * \defgroup AjaxAutoCompletion ajax-powered autocompletion...
+ * \ingroup ClientPower
  */
 
+/*@{*/
 #include "webcit.h"
 
-
-/*
- * Recipient autocompletion results
+/**
+ * \brief Recipient autocompletion results
+ * \param partial the account to search for ??????
  */
-void recp_autocomplete(void) {
+void recp_autocomplete(char *partial) {
        char buf[1024];
        char name[128];
 
-       output_headers(0, 0, 0, 0, 0, 0, 0);
+       output_headers(0, 0, 0, 0, 0, 0);
 
        wprintf("Content-type: text/html\r\n"
                "Server: %s\r\n"
@@ -26,8 +28,7 @@ void recp_autocomplete(void) {
 
        wprintf("<ul>");
 
-
-       serv_printf("AUTO %s", bstr("recp"));
+       serv_printf("AUTO %s", partial);
        serv_getln(buf, sizeof buf);
        if (buf[0] == '1') {
                while(serv_getln(buf, sizeof buf), strcmp(buf, "000")) {
@@ -44,3 +45,5 @@ void recp_autocomplete(void) {
        wDumpContent(0);
 }
 
+
+/** @} */