mark functions as extern C
This is needed when #included from C++.
Reported-by: Simon <turner25@gmail.com>
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
#define MSG_TRUNC 0x20
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct ipq_handle
{
struct nfq_handle *nfqnlh;
char *ipq_errstr(void);
void ipq_perror(const char *s);
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
#endif /* _LIBIPQ_H */
#include <libnetfilter_queue/linux_nfnetlink_queue.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct nfq_handle;
struct nfq_q_handle;
struct nfq_data;
/* return -1 if problem, length otherwise */
extern int nfq_get_payload(struct nfq_data *nfad, char **data);
-
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
#endif /* __LIBNFQNETLINK_H */