Skip to content

Commit a393147

Browse files
catenacybervictorjulien
authored andcommitted
rust: restrict visibility of reexported suricata_sys structs
1 parent fa322e3 commit a393147

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

rust/src/core.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ macro_rules!BIT_U64 {
6666
//
6767
// Function types for calls into C.
6868
//
69-
pub use suricata_sys::sys::StreamingBufferConfig;
69+
pub(crate) use suricata_sys::sys::StreamingBufferConfig;
7070

7171
#[allow(non_snake_case)]
7272
#[repr(C)]

rust/src/flow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
pub const FLOW_DIR_REVERSED: u32 = BIT_U32!(26);
2020

2121
/// Opaque flow type (defined in C)
22-
pub use suricata_sys::sys::{
22+
pub(crate) use suricata_sys::sys::{
2323
Flow, SCFlowGetDestinationPort, SCFlowGetFlags, SCFlowGetLastTimeAsParts, SCFlowGetSourcePort,
2424
};
2525

0 commit comments

Comments
 (0)