Back to index

webcit  8.12-dfsg
Functions
autocompletion.c File Reference
#include "webcit.h"

Go to the source code of this file.

Functions

void recp_autocomplete (char *partial)
void _recp_autocomplete (void)
void _cc_autocomplete (void)
void _bcc_autocomplete (void)
void InitModule_AUTO_COMPLETE (void)

Function Documentation

void _bcc_autocomplete ( void  )

Definition at line 58 of file autocompletion.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void _cc_autocomplete ( void  )

Definition at line 57 of file autocompletion.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void _recp_autocomplete ( void  )

Definition at line 56 of file autocompletion.c.

{recp_autocomplete(bstr("recp"));}

Here is the call graph for this function:

Here is the caller graph for this function:

void InitModule_AUTO_COMPLETE ( void  )

Definition at line 63 of file autocompletion.c.

{
       WebcitAddUrlHandler(HKEY("recp_autocomplete"), "", 0, _recp_autocomplete, 0);
       WebcitAddUrlHandler(HKEY("cc_autocomplete"),   "", 0, _cc_autocomplete, 0);
       WebcitAddUrlHandler(HKEY("bcc_autocomplete"),  "", 0, _bcc_autocomplete, 0);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void recp_autocomplete ( char *  partial)

Definition at line 20 of file autocompletion.c.

                                      {
       char buf[1024];
       char name[128];

       output_headers(0, 0, 0, 0, 0, 0);

       hprintf("Content-type: text/html\r\n"
              "Server: %s\r\n"
              "Connection: close\r\n"
              "Pragma: no-cache\r\n"
              "Cache-Control: no-store\r\n"
              "Expires: -1\r\n"
              ,
              PACKAGE_STRING);
       begin_burst();

       wc_printf("<ul>");

       serv_printf("AUTO %s", partial);
       serv_getln(buf, sizeof buf);
       if (buf[0] == '1') {
              while(serv_getln(buf, sizeof buf), strcmp(buf, "000")) {
                     extract_token(name, buf, 0, '|', sizeof name);
                     wc_printf("<li>");
                     escputs(name);
                     wc_printf("</li>");
              }
       }

       wc_printf("</ul>");

       wc_printf("\r\n\r\n");
       wDumpContent(0);
}

Here is the call graph for this function:

Here is the caller graph for this function: