use filecontainer::FileContainer;
use libc::{c_void,c_char,c_int};
-
+use applayer::{AppLayerGetTxIterTuple};
/// Rust parser declaration
#[repr(C)]
/// Function to get files
pub get_files: Option<GetFilesFn>,
+
+ /// Function to get the TX iterator
+ pub get_tx_iterator: Option<GetTxIteratorFn>,
}
pub type GetTxMpmIDFn = extern "C" fn (*mut c_void) -> u64;
pub type SetTxMpmIDFn = extern "C" fn (*mut c_void, u64) -> c_int;
pub type GetFilesFn = extern "C" fn (*mut c_void, u8) -> *mut FileContainer;
+pub type GetTxIteratorFn = extern "C" fn (ipproto: u8, alproto: AppProto,
+ state: *mut c_void,
+ min_tx_id: u64,
+ max_tx_id: u64,
+ istate: &mut u64)
+ -> AppLayerGetTxIterTuple;
// Defined in app-layer-register.h
extern {