diff options
author | Neal H. Walfield <[email protected]> | 2016-03-02 14:42:18 +0000 |
---|---|---|
committer | Neal H. Walfield <[email protected]> | 2016-03-02 19:36:16 +0000 |
commit | 1463f9b9624fae97cc89df3aa4546655ee893f7c (patch) | |
tree | 889cada55040be496ac3383a7a5b3b8a657441b4 /common/iobuf.h | |
parent | gpg: Split write_pubkey_enc_from_list. (diff) | |
download | gnupg-1463f9b9624fae97cc89df3aa4546655ee893f7c.tar.gz gnupg-1463f9b9624fae97cc89df3aa4546655ee893f7c.zip |
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 <[email protected]>
Diffstat (limited to 'common/iobuf.h')
-rw-r--r-- | common/iobuf.h | 7 |
1 files changed, 7 insertions, 0 deletions
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); |