From: Jason Ish Date: Fri, 17 Dec 2021 22:33:48 +0000 (-0600) Subject: rust/app-layer: expose AppLayerEvent derive macro X-Git-Tag: suricata-7.0.0-beta1~1078 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2011a5579c0a53d1f6d8e540944af6ca721d645d;p=thirdparty%2Fsuricata.git rust/app-layer: expose AppLayerEvent derive macro Export the AppLayerEvent derive macro so plugin (or library code) can use it as expected, for example: use suricata::applayer::AppLayerEvent; enum MyEvent { EventOne, EventTwo, } --- diff --git a/rust/src/applayer.rs b/rust/src/applayer.rs index 23d2bac27a..e8cad8ac9d 100644 --- a/rust/src/applayer.rs +++ b/rust/src/applayer.rs @@ -25,6 +25,10 @@ use std::os::raw::{c_void,c_char,c_int}; use crate::core::SC; use std::ffi::CStr; +// Make the AppLayerEvent derive macro available to users importing +// AppLayerEvent from this module. +pub use suricata_derive::AppLayerEvent; + #[repr(C)] pub struct StreamSlice { input: *const u8,