From 4176e24e14f0723486253ebcfd2885c77f82f7b1 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Tue, 10 Apr 2018 19:00:21 +0200 Subject: libnftables: Introduce nft_ctx_set_error() Analogous to nft_ctx_set_output(), this allows to set a custom file pointer for writing error messages to. Signed-off-by: Phil Sutter Signed-off-by: Pablo Neira Ayuso --- include/nftables/nftables.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/nftables/nftables.h') diff --git a/include/nftables/nftables.h b/include/nftables/nftables.h index 8e59f2b2..1e930682 100644 --- a/include/nftables/nftables.h +++ b/include/nftables/nftables.h @@ -57,6 +57,8 @@ bool nft_ctx_output_get_echo(struct nft_ctx *ctx); void nft_ctx_output_set_echo(struct nft_ctx *ctx, bool val); FILE *nft_ctx_set_output(struct nft_ctx *ctx, FILE *fp); +FILE *nft_ctx_set_error(struct nft_ctx *ctx, FILE *fp); + int nft_ctx_add_include_path(struct nft_ctx *ctx, const char *path); void nft_ctx_clear_include_paths(struct nft_ctx *ctx); -- cgit v1.2.3