diff options
Diffstat (limited to 'include/libipset/types.h')
-rw-r--r-- | include/libipset/types.h | 8 |
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 |