diff options
author | Florian Westphal <fw@strlen.de> | 2020-08-20 17:15:05 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2020-08-20 17:16:13 +0200 |
commit | a4db940701e899b87a1d4e70db614f23cb8f6cdf (patch) | |
tree | 6b0e78d28099f40b43be169379b531ecb5c8f2c4 /include/libnftnl | |
parent | 58e7e9cf40ce17c0f47b56e749571cd2bf9150ac (diff) |
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 <fw@strlen.de>
Diffstat (limited to 'include/libnftnl')
-rw-r--r-- | include/libnftnl/set.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); |