summaryrefslogtreecommitdiffstats
path: root/include/libipset/errcode.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/errcode.h
parent09812a4873f044d3597b990c77be9d608285b930 (diff)
Support linking libipset to C++ programs
Issue reported by Pavel Odintsov.
Diffstat (limited to 'include/libipset/errcode.h')
-rw-r--r--include/libipset/errcode.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/libipset/errcode.h b/include/libipset/errcode.h
index 1593d89..6b9dfe0 100644
--- a/include/libipset/errcode.h
+++ b/include/libipset/errcode.h
@@ -18,7 +18,15 @@ struct ipset_errcode_table {
const char *message; /* error message the code translated to */
};
+#ifdef __cplusplus
+extern "C" {
+#endif
+
extern int ipset_errcode(struct ipset_session *session, enum ipset_cmd cmd,
int errcode);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* LIBIPSET_ERRCODE_H */