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/ui.h | |
parent | 09812a4873f044d3597b990c77be9d608285b930 (diff) |
Support linking libipset to C++ programs
Issue reported by Pavel Odintsov.
Diffstat (limited to 'include/libipset/ui.h')
-rw-r--r-- | include/libipset/ui.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/libipset/ui.h b/include/libipset/ui.h index 2b7119e..4846dc1 100644 --- a/include/libipset/ui.h +++ b/include/libipset/ui.h @@ -20,6 +20,10 @@ struct ipset_commands { const char *help; }; +#ifdef __cplusplus +extern "C" { +#endif + extern const struct ipset_commands ipset_commands[]; struct ipset_session; @@ -45,4 +49,8 @@ extern void ipset_shift_argv(int *argc, char *argv[], int from); extern void ipset_port_usage(void); extern int ipset_parse_file(struct ipset_session *s, int opt, const char *str); +#ifdef __cplusplus +} +#endif + #endif /* LIBIPSET_UI_H */ |