From 6db6ec4d46270d1cd0b877bc03cd589789c53367 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 24 Oct 2017 15:20:04 +0200 Subject: src: add nft_ prefix to everything exposed through include/nftables/nftables.h Prepend nft_ prefix before these are exposed, reduce chances we hit symbol namespace pollution problems when mixing libnftables with other existing libraries. Signed-off-by: Pablo Neira Ayuso --- src/libnftables.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/libnftables.c') diff --git a/src/libnftables.c b/src/libnftables.c index 5e70c197..5ef5532c 100644 --- a/src/libnftables.c +++ b/src/libnftables.c @@ -210,12 +210,13 @@ void nft_ctx_set_dry_run(struct nft_ctx *ctx, bool dry) ctx->check = dry; } -enum numeric_level nft_ctx_output_get_numeric(struct nft_ctx *ctx) +enum nft_numeric_level nft_ctx_output_get_numeric(struct nft_ctx *ctx) { return ctx->output.numeric; } -void nft_ctx_output_set_numeric(struct nft_ctx *ctx, enum numeric_level level) +void nft_ctx_output_set_numeric(struct nft_ctx *ctx, + enum nft_numeric_level level) { ctx->output.numeric = level; } -- cgit v1.2.3