diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2010-10-25 00:43:18 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2010-10-25 00:43:18 +0200 |
commit | 23b58da79166cb3f37a822adfa63107896c7e129 (patch) | |
tree | ac5df4a400067d920380a181c933e3e6ed1ade69 /include | |
parent | dc7aaccd9fb034f0cc7ac3440b0d1b991bd034dc (diff) | |
download | libmnl-23b58da79166cb3f37a822adfa63107896c7e129.tar.gz libmnl-23b58da79166cb3f37a822adfa63107896c7e129.zip |
nlmsg: use bool return type for yes-no functions
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/libmnl/libmnl.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/libmnl/libmnl.h b/include/libmnl/libmnl.h index b64306a..a32fb1d 100644 --- a/include/libmnl/libmnl.h +++ b/include/libmnl/libmnl.h @@ -5,6 +5,9 @@ #include <stdint.h> #include <sys/socket.h> /* for sa_family_t */ #include <linux/netlink.h> +#ifndef __cplusplus +# include <stdbool.h> +#endif #ifdef __cplusplus extern "C" { @@ -50,10 +53,10 @@ extern int mnl_nlmsg_ok(const struct nlmsghdr *nlh, int len); extern struct nlmsghdr *mnl_nlmsg_next(const struct nlmsghdr *nlh, int *len); /* Netlink sequence tracking */ -extern int mnl_nlmsg_seq_ok(const struct nlmsghdr *nlh, unsigned int seq); +extern bool mnl_nlmsg_seq_ok(const struct nlmsghdr *nlh, unsigned int seq); /* Netlink portID checking */ -extern int mnl_nlmsg_portid_ok(const struct nlmsghdr *nlh, unsigned int portid); +extern bool mnl_nlmsg_portid_ok(const struct nlmsghdr *nlh, unsigned int portid); /* Netlink message getters */ extern void *mnl_nlmsg_get_payload(const struct nlmsghdr *nlh); |