misc: add c++ support to some headers

For now, just the headers required by our examples.
pull/13125/head
Jason Ish 1 year ago committed by Victor Julien
parent 23eaa65185
commit 49edd247f7

@ -24,6 +24,11 @@
#ifndef SURICATA_CONF_H
#define SURICATA_CONF_H
#ifdef __cplusplus
extern "C"
{
#endif
#include "queue.h"
/**
@ -105,4 +110,8 @@ SCConfNode *SCConfGetFirstNode(const SCConfNode *parent);
SCConfNode *SCConfGetNextNode(const SCConfNode *node);
const char *SCConfGetValueNode(const SCConfNode *node);
#ifdef __cplusplus
}
#endif
#endif /* ! SURICATA_CONF_H */

@ -26,6 +26,11 @@
#ifndef SURICATA_SURICATA_COMMON_H
#define SURICATA_SURICATA_COMMON_H
#ifdef __cplusplus
extern "C"
{
#endif
#ifdef DEBUG
#define DBG_PERF
#endif
@ -556,4 +561,8 @@ extern int g_ut_covered;
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0]))
#ifdef __cplusplus
}
#endif
#endif /* SURICATA_SURICATA_COMMON_H */

@ -64,6 +64,11 @@
#ifndef SURICATA_SURICATA_H
#define SURICATA_SURICATA_H
#ifdef __cplusplus
extern "C"
{
#endif
#include "suricata-common.h"
/* the name of our binary */
@ -229,4 +234,8 @@ int WindowsInitService(int argc, char **argv);
const char *GetProgramVersion(void);
#ifdef __cplusplus
}
#endif
#endif /* SURICATA_SURICATA_H */

@ -18,6 +18,11 @@
#ifndef SURICATA_UTIL_DEVICE_H
#define SURICATA_UTIL_DEVICE_H
#ifdef __cplusplus
extern "C"
{
#endif
#include "queue.h"
#include "util-storage.h"
#include "util-dpdk-common.h"
@ -95,4 +100,8 @@ TmEcode LiveDeviceIfaceList(json_t *cmd, json_t *server_msg, void *data);
TmEcode LiveDeviceGetBypassedStats(json_t *cmd, json_t *answer, void *data);
#endif
#ifdef __cplusplus
}
#endif
#endif /* SURICATA_UTIL_DEVICE_H */

Loading…
Cancel
Save