WIZlib Library API  ver 1.0
WIZlib Library API User Menual
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
httputil.h
Go to the documentation of this file.
1 
12 #ifndef __HTTPUTIL_H__
13 #define __HTTPUTIL_H__
14 
15 #include "protocol/HTTP/httpd.h"
16 #include "common/common.h"
17 
18 #define MAX_CGI_CALLBACK 10
19 typedef void (*cgi_func)(char *buf, uint16 *len);
20 struct CGI_CALLBACK {
21  char *tokken;
22  cgi_func get_func;
23  cgi_func set_func;
24 };
25 
26 void WebServer(uint8 s);
27 void HTTPProcessor(uint8 s, char * buf);
28 void RESTProcessor(st_http_request *http_request);
29 void CGIProcessor(st_http_request *http_request, char* buf);
30 void cgi_callback_add(char *tokken, cgi_func get_func, cgi_func set_func);
31 
32 #endif