From a4ff45f634a5a7bfcee39bc8da50840231933d4a Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 19 Feb 1999 14:54:00 +0000 Subject: See ChangeLog: Fri Feb 19 15:49:15 CET 1999 Werner Koch --- include/iobuf.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/iobuf.h b/include/iobuf.h index 56607b723..fb21badbc 100644 --- a/include/iobuf.h +++ b/include/iobuf.h @@ -55,6 +55,7 @@ struct iobuf_struct { int (*filter)( void *opaque, int control, IOBUF chain, byte *buf, size_t *len); void *filter_ov; /* value for opaque */ + int filter_ov_owner; IOBUF chain; /* next iobuf used for i/o if any (passed to filter) */ int no, subno; const char *desc; @@ -84,8 +85,10 @@ int iobuf_cancel( IOBUF iobuf ); int iobuf_push_filter( IOBUF a, int (*f)(void *opaque, int control, IOBUF chain, byte *buf, size_t *len), void *ov ); -int iobuf_pop_filter( IOBUF a, int (*f)(void *opaque, int control, - IOBUF chain, byte *buf, size_t *len), void *ov ); +int iobuf_push_filter2( IOBUF a, + int (*f)(void *opaque, int control, + IOBUF chain, byte *buf, size_t *len), + void *ov, int rel_ov ); int iobuf_flush(IOBUF a); void iobuf_clear_eof(IOBUF a); #define iobuf_set_error(a) do { (a)->error = 1; } while(0) -- cgit v1.2.3