]> 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>
Mon, 23 Sep 2024 16:59:29 +0000 (18:59 +0200)
src/detect-dataset.c
src/detect-dataset.h

index 1fc145267fd3cd2e88b3bd3cd560baf812c3d0be..5e96b9f27d18f3a1eecf312edef2c6c675c434f5 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 4dae4a4a1715951f06298282c4479242bda15702..047a5b11cb2ffa3f0ee7b5cb4708d7f920b58a27 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;