From 1463f9b9624fae97cc89df3aa4546655ee893f7c Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Wed, 2 Mar 2016 15:42:18 +0100 Subject: gpg: Rename pop_filter to iobuf_pop_filter and export it. * common/iobuf.c (pop_filter): Rename from this... (iobuf_pop_filter): ... to this. Don't mark it as static. -- Signed-off-by: Neal H. Walfield --- common/iobuf.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'common/iobuf.h') diff --git a/common/iobuf.h b/common/iobuf.h index 785efdc82..a8ca4dc55 100644 --- a/common/iobuf.h +++ b/common/iobuf.h @@ -421,6 +421,13 @@ int iobuf_push_filter2 (iobuf_t a, byte * buf, size_t * len), void *ov, int rel_ov); +/* Pop the top filter. The top filter must have the filter function F + and the cookie OV. The cookie check is ignored if OV is NULL. */ +int iobuf_pop_filter (iobuf_t a, + int (*f) (void *opaque, int control, + iobuf_t chain, byte * buf, size_t * len), + void *ov); + /* Used for debugging. Prints out the chain using log_debug if IOBUF_DEBUG_MODE is not 0. */ int iobuf_print_chain (iobuf_t a); -- cgit v1.2.3