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/parse.h | |
parent | 09812a4873f044d3597b990c77be9d608285b930 (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.h | 8 |
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 */ |