]> git.ipfire.org Git - thirdparty/nftables.git/commit
libnftables: Support buffering output and error
authorPhil Sutter <phil@nwl.cc>
Tue, 10 Apr 2018 17:00:22 +0000 (19:00 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 11 Apr 2018 07:57:28 +0000 (09:57 +0200)
commit40d94ca1dcd8ee0c6df4a33707e224dbe6a684b3
tree8718d5921ccc45486315fb9b94e7dcea030dc01c
parent4176e24e14f0723486253ebcfd2885c77f82f7b1
libnftables: Support buffering output and error

When integrating libnftables into Python code using ctypes module,
having to use a FILE pointer for output becomes a show-stopper.
Therefore make Python hackers' lives (a little) less painful by
providing convenience functions to setup buffering output and error
streams using fopencookie() and retrieving the buffers.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/nftables.h
include/nftables/nftables.h
src/libnftables.c