00001 #ifndef _CP_SVC_FILE_H 00002 #define _CP_SVC_FILE_H 00003 00004 #include "cprops/http.h" 00005 00006 /** initialize file service */ 00007 int init_file_service(char *mimetypes_filename, char *doc_path); 00008 /** register service by file extension (ie .cpsp) */ 00009 void *register_ext_svc(char *ext, cp_http_service *svc); 00010 00011 /** file service function */ 00012 int file_service(cp_http_request *request, cp_http_response *response); 00013 00014 #endif /* _CP_SVC_FILE_H */