summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2017-01-16 14:43:08 (GMT)
committerTobias Klauser <tklauser@distanz.ch>2017-01-20 08:38:11 (GMT)
commitdbc5f414b25645535adc3f6b31704a36edba308e (patch)
treed728ab261b207f39fd804001c218731b8e4e7618
parenta4aa54f7c1502063ecbdaba127957f8f63150a96 (diff)
downloadlibnl-dbc5f414b25645535adc3f6b31704a36edba308e.zip
libnl-dbc5f414b25645535adc3f6b31704a36edba308e.tar.gz
libnl-dbc5f414b25645535adc3f6b31704a36edba308e.tar.bz2
netfilter/exp: Add missing function prototypes
Add missing function prototypes for nfnl_exp_unset_flags(), nfnl_exp_flags2str() and nfnl_exp_str2flags() to the public header. This fixes the following GCC warnings when compiling with -Wmissing-prototypes: netfilter/exp_obj.c:458:6: warning: no previous prototype for ‘nfnl_exp_unset_flags’ [-Wmissing-prototypes] netfilter/exp_obj.c:475:8: warning: no previous prototype for ‘nfnl_exp_flags2str’ [-Wmissing-prototypes] netfilter/exp_obj.c:481:5: warning: no previous prototype for ‘nfnl_exp_str2flags’ [-Wmissing-prototypes] Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r--include/netlink/netfilter/exp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/netlink/netfilter/exp.h b/include/netlink/netfilter/exp.h
index 4e95014..736af24 100644
--- a/include/netlink/netfilter/exp.h
+++ b/include/netlink/netfilter/exp.h
@@ -82,7 +82,10 @@ extern uint16_t nfnl_exp_get_zone(const struct nfnl_exp *);
extern void nfnl_exp_set_flags(struct nfnl_exp *, uint32_t);
extern int nfnl_exp_test_flags(const struct nfnl_exp *);
+extern void nfnl_exp_unset_flags(struct nfnl_exp *exp, uint32_t flags);
extern uint32_t nfnl_exp_get_flags(const struct nfnl_exp *);
+extern char * nfnl_exp_flags2str(int flags, char *buf, size_t len);
+int nfnl_exp_str2flags(const char *name);
extern void nfnl_exp_set_class(struct nfnl_exp *, uint32_t);
extern int nfnl_exp_test_class(const struct nfnl_exp *);