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