httpserver.h
上传用户:qin5330
上传日期:2007-01-05
资源大小:114k
文件大小:1k
- /* httpserver.h
- **/
- #ifndef __HTTPSERVER_H
- #define __HTTPSERVER_H
- typedef struct httpserverinfo {
- char *baseurl;
-
- time_t lastretrieval;
-
- char *useragent;
- struct robotrules *robotrules;
-
- struct httpserverinfo *next;
- } httpserverinfo;
- typedef struct robotrules {
- char *disallow;
- struct robotrules *next;
- } robotrules;
- /*
- ** use _AP() for easier cross-compiler (non-ANSI) porting
- ** <return value> <functionname> _AP( (<arg prototypes>) );
- */
- httpserverinfo *getserverinfo _AP((char *url));
- int urldisallowed _AP((char *url));
- int equivalentserver _AP((char *url, char *baseurl));
- #endif