00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef _KLONE_SUPPLIER_H_
00012 #define _KLONE_SUPPLIER_H_
00013
00014 #include <klone/request.h>
00015 #include <klone/response.h>
00016 #include <klone/page.h>
00017
00018 #ifdef __cplusplus
00019 extern "C" {
00020 #endif
00021
00022 typedef struct supplier_s
00023 {
00024 const char *name;
00025 int (*init)(void);
00026 void (*term)(void);
00027 int (*is_valid_uri)(const char *buf, size_t len, time_t *mtime);
00028 int (*serve)(request_t *, response_t*);
00029 } supplier_t;
00030
00031 #ifdef __cplusplus
00032 }
00033 #endif
00034
00035 #endif