Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals

supplier.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2005, 2006 by KoanLogic s.r.l. <http://www.koanlogic.com>
00003  * All rights reserved.
00004  *
00005  * This file is part of KLone, and as such it is subject to the license stated
00006  * in the LICENSE file which you have received as part of this distribution.
00007  *
00008  * $Id: supplier.h,v 1.5 2006/01/09 12:38:38 tat Exp $
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;       /* descriptive 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

←Products
© 2005-2006 - KoanLogic S.r.l. - All rights reserved