aboutsummaryrefslogtreecommitdiffstats
path: root/include/iobuf.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/iobuf.h')
-rw-r--r--include/iobuf.h7
1 files changed, 5 insertions, 2 deletions
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)