summaryrefslogtreecommitdiffstats
path: root/include/libipset/icmpv6.h
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2015-03-18 20:58:25 +0100
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2015-03-18 20:58:25 +0100
commit1759d7ec38637e1eaf009619f463d6b121e23502 (patch)
treefaaaaafb626ff0bbfd4c21fc951c5d7e590edbee /include/libipset/icmpv6.h
parent09812a4873f044d3597b990c77be9d608285b930 (diff)
Support linking libipset to C++ programs
Issue reported by Pavel Odintsov.
Diffstat (limited to 'include/libipset/icmpv6.h')
-rw-r--r--include/libipset/icmpv6.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/libipset/icmpv6.h b/include/libipset/icmpv6.h
index 8295445..69c1119 100644
--- a/include/libipset/icmpv6.h
+++ b/include/libipset/icmpv6.h
@@ -9,8 +9,16 @@
#include <stdint.h> /* uintxx_t */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
extern const char *id_to_icmpv6(uint8_t id);
extern const char *icmpv6_to_name(uint8_t type, uint8_t code);
extern int name_to_icmpv6(const char *str, uint16_t *typecode);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* LIBIPSET_ICMPV6_H */