From: Shivani Bhardwaj Date: Wed, 5 May 2021 10:27:51 +0000 (+0530) Subject: applayer/rust: add extern AppLayerProtoDetectPMRegisterPatternCSwPP X-Git-Tag: suricata-7.0.0-beta1~1619 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d66ad96f0d4d5e512cf941e4b9e7651011a74d54;p=thirdparty%2Fsuricata.git applayer/rust: add extern AppLayerProtoDetectPMRegisterPatternCSwPP --- diff --git a/rust/src/applayer.rs b/rust/src/applayer.rs index 31c18c77af..2660504c37 100644 --- a/rust/src/applayer.rs +++ b/rust/src/applayer.rs @@ -300,6 +300,10 @@ pub unsafe fn AppLayerRegisterParser(parser: *const RustParser, alproto: AppProt // Defined in app-layer-detect-proto.h extern { + pub fn AppLayerProtoDetectPMRegisterPatternCSwPP(iproto: u8, alproto: AppProto, + pattern: *const c_char, depth: u16, + offset: u16, direction: u8, ppfn: ProbeFn, + pp_min_depth: u16, pp_max_depth: u16) -> c_int; pub fn AppLayerProtoDetectConfProtoDetectionEnabled(ipproto: *const c_char, proto: *const c_char) -> c_int; }