summaryrefslogtreecommitdiffstats
path: root/include/libipset/print.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/print.h
parent09812a4873f044d3597b990c77be9d608285b930 (diff)
Support linking libipset to C++ programs
Issue reported by Pavel Odintsov.
Diffstat (limited to 'include/libipset/print.h')
-rw-r--r--include/libipset/print.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/libipset/print.h b/include/libipset/print.h
index 8f672c3..2103ce1 100644
--- a/include/libipset/print.h
+++ b/include/libipset/print.h
@@ -13,6 +13,10 @@ typedef int (*ipset_printfn)(char *buf, unsigned int len,
const struct ipset_data *data,
enum ipset_opt opt, uint8_t env);
+#ifdef __cplusplus
+extern "C" {
+#endif
+
extern int ipset_print_ether(char *buf, unsigned int len,
const struct ipset_data *data,
enum ipset_opt opt, uint8_t env);
@@ -77,4 +81,8 @@ extern int ipset_print_data(char *buf, unsigned int len,
const struct ipset_data *data,
enum ipset_opt opt, uint8_t env);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* LIBIPSET_PRINT_H */