From a4db940701e899b87a1d4e70db614f23cb8f6cdf Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Thu, 20 Aug 2020 17:15:05 +0200 Subject: libnftnl: export nftnl_set_elem_fprintf Was not exported so far due to a typo. While at it, add const qualifier to element structure. Will be used to optionally dump set contents / elements from nft frontend. Signed-off-by: Florian Westphal --- include/libnftnl/set.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/libnftnl/set.h') diff --git a/include/libnftnl/set.h b/include/libnftnl/set.h index 5138bb9..961ce5d 100644 --- a/include/libnftnl/set.h +++ b/include/libnftnl/set.h @@ -142,7 +142,7 @@ int nftnl_set_elem_parse(struct nftnl_set_elem *e, enum nftnl_parse_type type, int nftnl_set_elem_parse_file(struct nftnl_set_elem *e, enum nftnl_parse_type type, FILE *fp, struct nftnl_parse_err *err); int nftnl_set_elem_snprintf(char *buf, size_t size, const struct nftnl_set_elem *s, uint32_t type, uint32_t flags); -int nftnl_set_elem_fprintf(FILE *fp, struct nftnl_set_elem *se, uint32_t type, uint32_t flags); +int nftnl_set_elem_fprintf(FILE *fp, const struct nftnl_set_elem *se, uint32_t type, uint32_t flags); int nftnl_set_elem_foreach(struct nftnl_set *s, int (*cb)(struct nftnl_set_elem *e, void *data), void *data); -- cgit v1.2.3