@ -80,8 +80,10 @@ pub struct RustParser {
/// Function to get events
pub get_events : Option < GetEventsFn > ,
/// Function to get an event description
/// Function to get an event id from a description
pub get_eventinfo : Option < GetEventInfoFn > ,
/// Function to get an event description from an event id
pub get_eventinfo_byid : Option < GetEventInfoByIdFn > ,
/// Function to allocate local storage
pub localstorage_new : Option < LocalStorageNewFn > ,
@ -137,6 +139,7 @@ pub type StateGetProgressFn = extern "C" fn (*mut c_void, u8) -> c_int;
pub type GetDetectStateFn = extern "C" fn ( * mut c_void ) -> * mut DetectEngineState ;
pub type SetDetectStateFn = extern "C" fn ( * mut c_void , & mut DetectEngineState ) -> c_int ;
pub type GetEventInfoFn = extern "C" fn ( * const c_char , * mut c_int , * mut AppLayerEventType ) -> c_int ;
pub type GetEventInfoByIdFn = extern "C" fn ( c_int , * mut * const c_char , * mut AppLayerEventType ) -> i8 ;
pub type GetEventsFn = extern "C" fn ( * mut c_void ) -> * mut AppLayerDecoderEvents ;
pub type GetTxLoggedFn = extern "C" fn ( * mut c_void , * mut c_void ) -> u32 ;
pub type SetTxLoggedFn = extern "C" fn ( * mut c_void , * mut c_void , u32 ) ;