diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2015-03-18 20:58:25 +0100 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2015-03-18 20:58:25 +0100 |
commit | 1759d7ec38637e1eaf009619f463d6b121e23502 (patch) | |
tree | faaaaafb626ff0bbfd4c21fc951c5d7e590edbee /include/libipset/mnl.h | |
parent | 09812a4873f044d3597b990c77be9d608285b930 (diff) |
Support linking libipset to C++ programs
Issue reported by Pavel Odintsov.
Diffstat (limited to 'include/libipset/mnl.h')
-rw-r--r-- | include/libipset/mnl.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/libipset/mnl.h b/include/libipset/mnl.h index 0516ec7..7aaf44e 100644 --- a/include/libipset/mnl.h +++ b/include/libipset/mnl.h @@ -22,8 +22,15 @@ struct nfgenmsg { }; #endif -extern int ipset_get_nlmsg_type(const struct nlmsghdr *nlh); +#ifdef __cplusplus +extern "C" { +#endif +extern int ipset_get_nlmsg_type(const struct nlmsghdr *nlh); extern const struct ipset_transport ipset_mnl_transport; +#ifdef __cplusplus +} +#endif + #endif /* LIBIPSET_MNL_H */ |