summaryrefslogtreecommitdiffstats
path: root/include/libipset/types.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/types.h
parent09812a4873f044d3597b990c77be9d608285b930 (diff)
Support linking libipset to C++ programs
Issue reported by Pavel Odintsov.
Diffstat (limited to 'include/libipset/types.h')
-rw-r--r--include/libipset/types.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/libipset/types.h b/include/libipset/types.h
index c98855e..7f41afc 100644
--- a/include/libipset/types.h
+++ b/include/libipset/types.h
@@ -86,6 +86,10 @@ struct ipset_type {
const char *alias[]; /* name alias(es) */
};
+#ifdef __cplusplus
+extern "C" {
+#endif
+
extern int ipset_cache_add(const char *name, const struct ipset_type *type,
uint8_t family);
extern int ipset_cache_del(const char *name);
@@ -107,6 +111,10 @@ extern bool ipset_match_typename(const char *str,
const struct ipset_type *t);
extern void ipset_load_types(void);
+#ifdef __cplusplus
+}
+#endif
+
#ifdef TYPE_INCLUSIVE
# ifdef _INIT
# undef _init