]> git.ipfire.org Git - people/ms/suricata.git/commitdiff
applayer/rust: add extern AppLayerProtoDetectPMRegisterPatternCSwPP
authorShivani Bhardwaj <shivanib134@gmail.com>
Wed, 5 May 2021 10:27:51 +0000 (15:57 +0530)
committerVictor Julien <victor@inliniac.net>
Fri, 21 May 2021 09:01:26 +0000 (11:01 +0200)
rust/src/applayer.rs

index 31c18c77af263526c4de94818e17fd30c1644618..2660504c37cdefe030a0fa84cd7addd93d49760b 100644 (file)
@@ -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;
 }