]> git.ipfire.org Git - people/ms/suricata.git/commitdiff
location: Move private declaration away from header
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 1 Oct 2021 11:09:42 +0000 (11:09 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 4 Dec 2021 12:44:16 +0000 (12:44 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/detect-location.c
src/detect-location.h

index 0d212581dc10586d1f9c05685738c5ff321c4c8a..1556d7cd601310a0fc5a9829ca05219b75406ef9 100644 (file)
 #include <libloc/database.h>
 #include <libloc/network.h>
 
+enum location_flags {
+    LOCATION_FLAG_SRC     = (1 << 0),
+    LOCATION_FLAG_DST     = (1 << 1),
+    LOCATION_FLAG_BOTH    = (1 << 2),
+    LOCATION_FLAG_NEGATED = (1 << 3),
+};
+
+struct DetectLocationData {
+    struct loc_ctx* ctx;
+    struct loc_database* db;
+    char** countries;
+    int flags;
+};
+
 /**
  * \brief This function will free all resources used by the location module
  *
index 8d82573f3452678857d823fa432ef36d409a529c..682e9afd9b2de07e8d78ddecdd9e6d3a383e97c7 100644 (file)
 #ifndef __DETECT_LOCATION_H__
 #define __DETECT_LOCATION_H__
 
-#ifdef HAVE_LIBLOC
-
-#include <libloc/libloc.h>
-#include <libloc/database.h>
-
-enum location_flags {
-    LOCATION_FLAG_SRC     = (1 << 0),
-    LOCATION_FLAG_DST     = (1 << 1),
-    LOCATION_FLAG_BOTH    = (1 << 2),
-    LOCATION_FLAG_NEGATED = (1 << 3),
-};
-
-struct DetectLocationData {
-    struct loc_ctx* ctx;
-    struct loc_database* db;
-    char** countries;
-    int flags;
-};
-
-#endif /* HAVE_LIBLOC */
-
 void DetectLocationRegister(void);
 
 #endif /* __DETECT_LOCATION_H__ */