]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect: clean up detect-engine-state.h
authorVictor Julien <vjulien@oisf.net>
Thu, 15 Sep 2022 18:51:54 +0000 (20:51 +0200)
committerVictor Julien <vjulien@oisf.net>
Sat, 1 Oct 2022 18:15:27 +0000 (20:15 +0200)
Remove prototypes that are not about purely the data structures.

src/detect-engine-state.h
src/detect-engine.h
src/rust.h

index d6265b3a9bab09a8ff77a7149fe95b0e3f5132f8..25cd679a0dae75cae2e056f7dd488cc02df07c25 100644 (file)
@@ -108,24 +108,6 @@ DetectEngineState *DetectEngineStateAlloc(void);
  */
 void DetectEngineStateFree(DetectEngineState *state);
 
-void DetectEngineStateResetTxs(Flow *f);
-
-void DeStateRegisterTests(void);
-
-
-void DetectRunStoreStateTx(
-        const SigGroupHead *sgh,
-        Flow *f, void *tx, uint64_t tx_id,
-        const Signature *s,
-        uint32_t inspect_flags, uint8_t flow_flags,
-        const uint16_t file_no_match);
-
-void DetectRunStoreStateTxFileOnly(
-        const SigGroupHead *sgh,
-        Flow *f, void *tx, uint64_t tx_id,
-        const uint8_t flow_flags,
-        const uint16_t file_no_match);
-
 #endif /* __DETECT_ENGINE_STATE_H__ */
 
 /**
index 755d4ac1df9877a3370aba0cea1098be49bf8cbf..9de97726500fd7256b32e287dd953f6461f23628 100644 (file)
@@ -189,4 +189,15 @@ int DetectBufferGetActiveList(DetectEngineCtx *de_ctx, Signature *s);
 DetectEngineThreadCtx *DetectEngineThreadCtxInitForReload(
         ThreadVars *tv, DetectEngineCtx *new_de_ctx, int mt);
 
+void DetectRunStoreStateTx(const SigGroupHead *sgh, Flow *f, void *tx, uint64_t tx_id,
+        const Signature *s, uint32_t inspect_flags, uint8_t flow_flags,
+        const uint16_t file_no_match);
+
+void DetectRunStoreStateTxFileOnly(const SigGroupHead *sgh, Flow *f, void *tx, uint64_t tx_id,
+        const uint8_t flow_flags, const uint16_t file_no_match);
+
+void DetectEngineStateResetTxs(Flow *f);
+
+void DeStateRegisterTests(void);
+
 #endif /* __DETECT_ENGINE_H__ */
index dc345412a9bb79bd56003a90f2f09bf918bd5f11..a01e6e602b518c71b6f196e98bdf229ef819b48e 100644 (file)
@@ -21,7 +21,6 @@
 #include "util-lua.h"
 // hack for include orders cf SCSha256
 typedef struct HttpRangeContainerBlock HttpRangeContainerBlock;
-#include "detect-engine-state.h"
 #include "rust-context.h"
 #include "rust-bindings.h"