00001 00002 #ifndef _CP_SVC_CGI_H 00003 #define _CP_SVC_CGI_H 00004 00005 #include "cprops/common.h" 00006 #include "cprops/http.h" 00007 00008 __BEGIN_DECLS 00009 00010 /** initialized cgi service */ 00011 int init_cgi(char *path, char *uri_prefix); 00012 /** stop cgi service */ 00013 void shutdown_cgi(void *dummy); 00014 00015 /** cgi service function */ 00016 int cgi(cp_http_request *request, cp_http_response *response); 00017 00018 __END_DECLS 00019 00020 #endif 00021