]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust: reuse/reexport suricata_sys DetectEngineThreadCtx
authorPhilippe Antoine <pantoine@oisf.net>
Fri, 2 May 2025 13:30:32 +0000 (15:30 +0200)
committerVictor Julien <victor@inliniac.net>
Sat, 10 May 2025 01:09:48 +0000 (03:09 +0200)
Use the bindgen'd version instead of our own recoded one

rust/src/core.rs

index ee4960293eb76a6aa7b31bf4a3f31935ea84067c..91253326daf63a1524d6e5a3ae636c3c416a371d 100644 (file)
@@ -28,10 +28,7 @@ use crate::flow::Flow;
 pub enum DetectEngineState {}
 pub enum AppLayerDecoderEvents {}
 pub enum GenericVar {}
-#[repr(C)]
-pub struct DetectEngineThreadCtx {
-    _unused: [u8; 0],
-}
+pub(crate) use suricata_sys::sys::DetectEngineThreadCtx;
 
 #[repr(C)]
 #[derive(Debug, PartialEq, Eq, Clone, Copy)]