From: Philippe Antoine Date: Thu, 23 Jan 2025 09:18:09 +0000 (+0100) Subject: rust/detect: extend visibility of SIGMATH_NOOPT X-Git-Tag: suricata-8.0.0-beta1~202 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1db49487a1a4062ac3ee9f3dd6f8e039d158325e;p=thirdparty%2Fsuricata.git rust/detect: extend visibility of SIGMATH_NOOPT so that it can be used by plugins Avoid export by cbindgen as this constant is also defined in C --- diff --git a/rust/cbindgen.toml b/rust/cbindgen.toml index 6e9954990a..b8b88676e6 100644 --- a/rust/cbindgen.toml +++ b/rust/cbindgen.toml @@ -114,6 +114,8 @@ exclude = [ "IPPROTO_TCP", "IPPROTO_UDP", "SRepCatGetByShortname", + "SIGMATCH_NOOPT", + "SIGMATCH_INFO_STICKY_BUFFER", ] # Types of items that we'll generate. If empty, then all types of item are emitted. diff --git a/rust/src/detect/mod.rs b/rust/src/detect/mod.rs index 9a5de6dad8..3a3f6f74a7 100644 --- a/rust/src/detect/mod.rs +++ b/rust/src/detect/mod.rs @@ -79,9 +79,9 @@ pub struct SCSigTableElmt { >, } -pub(crate) const SIGMATCH_NOOPT: u16 = 1; // BIT_U16(0) in detect.h +pub const SIGMATCH_NOOPT: u16 = 1; // BIT_U16(0) in detect.h pub(crate) const SIGMATCH_QUOTES_MANDATORY: u16 = 0x40; // BIT_U16(6) in detect.h -pub(crate) const SIGMATCH_INFO_STICKY_BUFFER: u16 = 0x200; // BIT_U16(9) +pub const SIGMATCH_INFO_STICKY_BUFFER: u16 = 0x200; // BIT_U16(9) /// cbindgen:ignore extern {