]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
datasets: restrict scope of macro/enum
authorPhilippe Antoine <pantoine@oisf.net>
Thu, 1 Aug 2024 18:50:28 +0000 (20:50 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 26 Sep 2024 06:56:15 +0000 (08:56 +0200)
(cherry picked from commit 1352ed68c77dd9cd7d9fa708d68e8ec787958258)

src/detect-dataset.c
src/detect-dataset.h

index 69eaf811133cfacf83ba3036dc1d5efe42c0dc6b..e174b0ab9056c321b1522cb0be7b45bff1aff80e 100644 (file)
 #include "util-path.h"
 #include "util-conf.h"
 
+#define DETECT_DATASET_CMD_SET      0
+#define DETECT_DATASET_CMD_UNSET    1
+#define DETECT_DATASET_CMD_ISNOTSET 2
+#define DETECT_DATASET_CMD_ISSET    3
+
 int DetectDatasetMatch (ThreadVars *, DetectEngineThreadCtx *, Packet *,
         const Signature *, const SigMatchCtx *);
 static int DetectDatasetSetup (DetectEngineCtx *, Signature *, const char *);
index ca83267d15929a7b6473c8eaf41291635086c880..d24355299b26703c9321cab8ffb0248fcb7df6d8 100644 (file)
 
 #include "datasets.h"
 
-#define DETECT_DATASET_CMD_SET      0
-#define DETECT_DATASET_CMD_UNSET    1
-#define DETECT_DATASET_CMD_ISNOTSET 2
-#define DETECT_DATASET_CMD_ISSET    3
-
 typedef struct DetectDatasetData_ {
     Dataset *set;
     uint8_t cmd;