]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust: remove some unneeded cbindgen:ignore
authorPhilippe Antoine <pantoine@oisf.net>
Thu, 5 Jun 2025 09:22:12 +0000 (11:22 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 5 Jun 2025 17:14:33 +0000 (19:14 +0200)
Ticket: 7667

rust/cbindgen.toml
rust/src/core.rs
rust/src/ftp/ftp.rs

index 354f052ac709e4035a7adaba907253c6d85383a6..bacacfca8fafe434c8964d69832fa57dc5f374fa 100644 (file)
@@ -120,6 +120,7 @@ exclude = [
     "SRepCatGetByShortname",
     "SIGMATCH_NOOPT",
     "SIGMATCH_INFO_STICKY_BUFFER",
+    "FtpCommand",
 ]
 
 # Types of items that we'll generate. If empty, then all types of item are emitted.
index 4f6ce602a88d88d5b44c569c1bf86513ce5a5ecc..2280e28958ffbdb6ec9d121c172e85fae9fb328c 100644 (file)
@@ -68,11 +68,6 @@ macro_rules!BIT_U64 {
     ($x:expr) => (1 << $x);
 }
 
-// Defined in app-layer-protos.h
-/// cbindgen:ignore
-extern "C" {
-    pub fn StringToAppProto(proto_name: *const u8) -> AppProto;
-}
 
 /// cbindgen:ignore
 extern "C" {
index 1efa85bbae4e711bfc60eb2971422326481dab68..154badf8c25ede149b9c2930ba8b41b49aa71d6f 100644 (file)
@@ -35,7 +35,6 @@ pub struct DetectFtpReplyReceivedData {
     pub received: bool,
 }
 
-/// cbindgen:ignore
 #[repr(C)]
 pub struct FtpCommand {
     command_name: CString,