// Defined in app-layer-register.h
/// cbindgen:ignore
-extern {
+extern "C" {
pub fn AppLayerRegisterProtocolDetection(parser: *const RustParser, enable_default: c_int) -> AppProto;
pub fn AppLayerRegisterParserAlias(parser_name: *const c_char, alias_name: *const c_char);
pub fn AppLayerRegisterParser(parser: *const RustParser, alproto: AppProto) -> c_int;
// Defined in app-layer-detect-proto.h
/// cbindgen:ignore
-extern {
+extern "C" {
pub fn AppLayerForceProtocolChange(f: *const Flow, new_proto: AppProto);
pub fn AppLayerProtoDetectPPRegister(ipproto: u8, portstr: *const c_char, alproto: AppProto,
min_depth: u16, max_depth: u16, dir: u8,
pub const _APP_LAYER_TX_INSPECTED_TC: u8 = BIT_U8!(3);
/// cbindgen:ignore
-extern {
+extern "C" {
pub fn AppLayerParserStateSetFlag(state: *mut c_void, flag: u16);
pub fn AppLayerParserStateIssetFlag(state: *mut c_void, flag: u16) -> u16;
pub fn AppLayerParserSetStreamDepth(ipproto: u8, alproto: AppProto, stream_depth: u32);
// Defined in app-layer-protos.h
/// cbindgen:ignore
-extern {
+extern "C" {
pub fn StringToAppProto(proto_name: *const u8) -> AppProto;
}
}
/// cbindgen:ignore
-extern {
+extern "C" {
pub fn SCGetContext() -> &'static mut SuricataContext;
}
pub const SIGMATCH_INFO_STICKY_BUFFER: u16 = 0x200; // BIT_U16(9)
/// cbindgen:ignore
-extern {
+extern "C" {
pub fn DetectBufferSetActiveList(de: *mut c_void, s: *mut c_void, bufid: c_int) -> c_int;
pub fn DetectHelperGetData(
de: *mut c_void, transforms: *const c_void, flow: *const c_void, flow_flags: u8,
// Defined in util-file.h
/// cbindgen:ignore
-extern {
+extern "C" {
pub fn FileFlowFlagsToFlags(flow_file_flags: u16, flags: u8) -> u16;
}
// Defined in app-layer-register.h
/// cbindgen:ignore
-extern {
+extern "C" {
#[cfg(not(test))]
fn AppLayerFrameNewByRelativeOffset(
flow: *const Flow, stream_slice: *const StreamSlice, frame_start_rel: u32, len: i64,
pub enum CLuaState {}
/// cbindgen:ignore
-extern {
+extern "C" {
fn lua_createtable(lua: *mut CLuaState, narr: c_int, nrec: c_int);
fn lua_settable(lua: *mut CLuaState, idx: c_long);
fn lua_pushlstring(lua: *mut CLuaState, s: *const c_char, len: usize);