From 1759d7ec38637e1eaf009619f463d6b121e23502 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Wed, 18 Mar 2015 20:58:25 +0100 Subject: Support linking libipset to C++ programs Issue reported by Pavel Odintsov. --- include/libipset/ui.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/libipset/ui.h') 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 */ -- cgit v1.2.3