rsfilter.h

00001 /*
00002  * Copyright (c) 2005-2012 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: rsfilter.h,v 1.8 2007/12/03 16:05:55 tat Exp $
00009  */
00010 
00011 #ifndef _KLONE_RSFILTER_H_
00012 #define _KLONE_RSFILTER_H_
00013 
00014 #include <klone/codec.h>
00015 
00016 #ifdef __cplusplus
00017 extern "C" {
00018 #endif
00019 
00020 /* the filter will buffer the first RFBUFSZ bytes printed so page developers
00021  * can postpone header modifications (i.e. header will be sent after RFBUFSZ
00022  * bytes of printed data or on io_flush()
00023  */
00024 enum { RFBUFSZ = 4096 };
00025 
00026 struct response_s;
00027 struct request_s;
00028 struct session_s;
00029 typedef struct response_filter_s response_filter_t;
00030 
00031 int response_filter_create(struct request_s *rq, struct response_s *rs, 
00032     struct session_s *ss, codec_t **prf);
00033 int response_filter_feeded(codec_t *codec);
00034 
00035 #ifdef __cplusplus
00036 }
00037 #endif 
00038 
00039 #endif

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