diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libipset/types.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/libipset/types.h b/include/libipset/types.h index 950988f..1fd3f92 100644 --- a/include/libipset/types.h +++ b/include/libipset/types.h @@ -107,4 +107,16 @@ extern bool ipset_match_typename(const char *str, const struct ipset_type *t); extern void ipset_load_types(void); +extern void ipset_types_init(void); + +#ifdef TYPE_INCLUSIVE +# ifdef _INIT +# undef _init +# define _init _INIT +# endif +#else +# undef _init +# define _init __attribute__((constructor)) _INIT +#endif + #endif /* LIBIPSET_TYPES_H */ |