/*
* $Id$
*
- * \defgroup AjaxAutoCompletion ajax-powered autocompletion...
- * \ingroup ClientPower
+ * AJAX-powered auto-completion
*/
-/*@{*/
#include "webcit.h"
-/**
- * \brief Call this right before wDumpContent() on any page which requires the address book popup
+/*
+ * Call this right before wDumpContent() on any page which requires the address book popup
*/
void address_book_popup(void) {
/* Open a new div, hidden initially, for address book popups. */
/* The 'address_book_popup' div will be closed by wDumpContent() */
}
-/**
- * \brief Address book popup window
+/*
+ * Address book popup window
*/
void display_address_book_middle_div(void) {
char buf[256];
long len;
- char *Name, *Namee;
+ char *Name;
+ void *Namee;
HashList *List;
HashPos *it;
wprintf("</option>\n");
- List = NewHash();
+ List = NewHash(1, NULL);
serv_puts("LKRA");
serv_getln(buf, sizeof buf);
if (buf[0] == '1') while(len = serv_getln(buf, sizeof buf), strcmp(buf, "000")) {
SortByHashKey(List);
it = GetNewHashPos();
- while (GetNextHashPos(List, it, &len, &Name, (void**)&Namee)) {
+ while (GetNextHashPos(List, it, &len, &Name, &Namee)) {
wprintf("<option value=\"");
- urlescputs(Namee);
+ urlescputs((char*)Namee);
wprintf("\">");
- escputs(Namee);
+ escputs((char*)Namee);
wprintf("</option>\n");
}
DeleteHashPos(&it);
-/**
- * \brief Address book popup results
+/*
+ * Address book popup results
*/
void display_address_book_inner_div() {
char buf[256];
char target_id[64];
char target_label[64];
long len;
- char *Name, *Namee;
+ char *Name;
+ void *Namee;
HashList *List;
HashPos *it;
int i;
begin_ajax_response();
- List = NewHash();
+ List = NewHash(1, NULL);
wprintf("<div align=center><form onSubmit=\"return false;\">"
"<select multiple name=\"whichaddr\" id=\"whichaddr\" size=\"15\">\n");
}
SortByHashKey(List);
it = GetNewHashPos();
- while (GetNextHashPos(List, it, &len, &Name, (void**)&Namee)) {
+ while (GetNextHashPos(List, it, &len, &Name, &Namee)) {
wprintf("<option value=\"");
- escputs(Namee);
+ escputs((char*)Namee);
wprintf("\">");
- escputs(Namee);
+ escputs((char*)Namee);
wprintf("</option>\n");
}
DeleteHashPos(&it);
it = GetNewHashPos();
while (GetNextHashPos(List, it, &len, &Name, (void**)&Namee)) {
wprintf("<option value=\"");
- escputs(Namee);
+ escputs((char*)Namee);
wprintf("\">");
- escputs(Namee);
+ escputs((char*)Namee);
wprintf("</option>\n");
}
DeleteHashPos(&it);
DeleteHash(&List);
- gotoroom(bstr(saved_roomname));
+ gotoroom((char*)BSTR(saved_roomname)); /* TODO: get rid of typecast */
}
wprintf("</select>\n");
end_ajax_response();
}
-
-
-/** @} */