summaryrefslogtreecommitdiffstats
path: root/include/libipset/parse.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/parse.h
parent09812a4873f044d3597b990c77be9d608285b930 (diff)
Support linking libipset to C++ programs
Issue reported by Pavel Odintsov.
Diffstat (limited to 'include/libipset/parse.h')
-rw-r--r--include/libipset/parse.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/libipset/parse.h b/include/libipset/parse.h
index 810ea28..9223eeb 100644
--- a/include/libipset/parse.h
+++ b/include/libipset/parse.h
@@ -24,6 +24,10 @@ struct ipset_arg;
typedef int (*ipset_parsefn)(struct ipset_session *s,
enum ipset_opt opt, const char *str);
+#ifdef __cplusplus
+extern "C" {
+#endif
+
extern int ipset_parse_ether(struct ipset_session *session,
enum ipset_opt opt, const char *str);
extern int ipset_parse_port(struct ipset_session *session,
@@ -116,4 +120,8 @@ extern int ipset_parse_iptimeout(struct ipset_session *session,
extern int ipset_parse_name_compat(struct ipset_session *session,
enum ipset_opt opt, const char *str);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* LIBIPSET_PARSE_H */