diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2017-01-16 14:42:57 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2017-01-20 09:38:10 +0100 |
commit | 6cae3db1e015932f204370c896cdf64386f0d6b4 (patch) | |
tree | 027c1e8ef4d7bb29dd3e3d6eae51acbff084870d /include/netlink/fib_lookup | |
parent | 0c6792a6e02776d23b115c9b7e501e3b123f212a (diff) | |
download | libnl-6cae3db1e015932f204370c896cdf64386f0d6b4.tar.gz |
fib_lookup: Add missing prototypes to public header
Add the function prototypes for the struct flnl_result attribute access
functions to the public header fib_lookup/lookup.h
This fixes the following GCC warnings when compiling with
-Wmissing-prototypes:
fib_lookup/lookup.c:284:5: warning: no previous prototype for ‘flnl_result_get_table_id’ [-Wmissing-prototypes]
fib_lookup/lookup.c:289:5: warning: no previous prototype for ‘flnl_result_get_prefixlen’ [-Wmissing-prototypes]
fib_lookup/lookup.c:294:5: warning: no previous prototype for ‘flnl_result_get_nexthop_sel’ [-Wmissing-prototypes]
fib_lookup/lookup.c:299:5: warning: no previous prototype for ‘flnl_result_get_type’ [-Wmissing-prototypes]
fib_lookup/lookup.c:304:5: warning: no previous prototype for ‘flnl_result_get_scope’ [-Wmissing-prototypes]
fib_lookup/lookup.c:309:5: warning: no previous prototype for ‘flnl_result_get_error’ [-Wmissing-prototypes]
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'include/netlink/fib_lookup')
-rw-r--r-- | include/netlink/fib_lookup/lookup.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/netlink/fib_lookup/lookup.h b/include/netlink/fib_lookup/lookup.h index 8bf27b8d..b3c7b5f4 100644 --- a/include/netlink/fib_lookup/lookup.h +++ b/include/netlink/fib_lookup/lookup.h @@ -35,6 +35,13 @@ extern int flnl_lookup(struct nl_sock *, struct flnl_request *, struct nl_cache *); +extern int flnl_result_get_table_id(struct flnl_result *res); +extern int flnl_result_get_prefixlen(struct flnl_result *res); +extern int flnl_result_get_nexthop_sel(struct flnl_result *res); +extern int flnl_result_get_type(struct flnl_result *res); +extern int flnl_result_get_scope(struct flnl_result *res); +extern int flnl_result_get_error(struct flnl_result *res); + #ifdef __cplusplus } #endif |