Back to index

courier  0.68.2
rwint.h
Go to the documentation of this file.
00001 #ifndef       rwint_h
00002 #define       rwint_h
00003 
00004 #if    HAVE_CONFIG_H
00005 #include      "courier_lib_config.h"
00006 #endif
00007 
00008 #include      "courier.h"
00009 
00010 #ifdef __cplusplus
00011 extern "C" {
00012 #endif
00013 
00014 struct rwmsginfo {
00015 
00016        int    inheaders;
00017        int    lastnl;
00018        char   *headerbuf;
00019        size_t headerbufsize;
00020        size_t headerbuflen;
00021 
00022        int (*writefunc)(const char *p, unsigned l, void *);
00023        void (*rewritefunc)(struct rw_info *, void (*)(struct rw_info *),
00024               void *);
00025 
00026        void   *arg;
00027        } ;
00028 
00029 
00030 void rw_rewrite_msg_init(struct rwmsginfo *,
00031        int (*)(const char *p, unsigned l, void *),
00032        void (*)(struct rw_info *,
00033               void (*)(struct rw_info *), void *),
00034        void *);
00035 
00036 int rw_rewrite_msg_finish(struct rwmsginfo *);
00037 
00038 int rw_rewrite_msgheaders(const char *, unsigned, struct rwmsginfo *);
00039 
00040 #ifdef __cplusplus
00041 }
00042 #endif
00043 #endif