Remove autoconf include from typedefs headers.
Including this file in any "public" API header breaks all projects that also use autotools because macros such as PACKAGE_VERSION will be redefined. Signed-off-by: Darryl Sokoloski <darryl@sokoloski.ca>
This commit is contained in:
@@ -26,9 +26,6 @@
|
|||||||
|
|
||||||
#include "ndpi_define.h"
|
#include "ndpi_define.h"
|
||||||
|
|
||||||
/* Needed to have access to HAVE_* defines */
|
|
||||||
#include "ndpi_config.h"
|
|
||||||
|
|
||||||
/* NDPI_LOG_LEVEL */
|
/* NDPI_LOG_LEVEL */
|
||||||
typedef enum {
|
typedef enum {
|
||||||
NDPI_LOG_ERROR,
|
NDPI_LOG_ERROR,
|
||||||
@@ -854,14 +851,6 @@ typedef struct ndpi_proto {
|
|||||||
#define NUM_CUSTOM_CATEGORIES 5
|
#define NUM_CUSTOM_CATEGORIES 5
|
||||||
#define CUSTOM_CATEGORY_LABEL_LEN 32
|
#define CUSTOM_CATEGORY_LABEL_LEN 32
|
||||||
|
|
||||||
#ifdef HAVE_HYPERSCAN
|
|
||||||
struct hs_list {
|
|
||||||
char *expression;
|
|
||||||
unsigned int id;
|
|
||||||
struct hs_list *next;
|
|
||||||
};
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef NDPI_LIB_COMPILATION
|
#ifdef NDPI_LIB_COMPILATION
|
||||||
|
|
||||||
struct ndpi_detection_module_struct {
|
struct ndpi_detection_module_struct {
|
||||||
|
|||||||
+6
-2
@@ -48,9 +48,13 @@
|
|||||||
|
|
||||||
#ifdef HAVE_HYPERSCAN
|
#ifdef HAVE_HYPERSCAN
|
||||||
#include <hs/hs.h>
|
#include <hs/hs.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_HYPERSCAN
|
struct hs_list {
|
||||||
|
char *expression;
|
||||||
|
unsigned int id;
|
||||||
|
struct hs_list *next;
|
||||||
|
};
|
||||||
|
|
||||||
struct hs {
|
struct hs {
|
||||||
hs_database_t *database;
|
hs_database_t *database;
|
||||||
hs_scratch_t *scratch;
|
hs_scratch_t *scratch;
|
||||||
|
|||||||
Reference in New Issue
Block a user