-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Bindgen more 7762 v6.1 #14342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
catenacyber
wants to merge
2
commits into
OISF:main
Choose a base branch
from
catenacyber:bindgen-more-7762-v6.1
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+156
−131
Open
Bindgen more 7762 v6.1 #14342
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| // This file is automatically generated. Do not edit. | ||
|
|
||
| use super::sys::FileContainer; | ||
|
|
||
| impl Default for FileContainer { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Needed by Filetracker Default implementation... |
||
| fn default() -> Self { | ||
| Self { | ||
| head: std::ptr::null_mut(), | ||
| tail: std::ptr::null_mut(), | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,5 +19,6 @@ | |
| #![allow(non_snake_case)] | ||
| #![allow(clippy::all)] | ||
|
|
||
| pub mod file; | ||
| pub mod jsonbuilder; | ||
| pub mod sys; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -762,6 +762,11 @@ pub struct File_ { | |
| _unused: [u8; 0], | ||
| } | ||
| pub type File = File_; | ||
| #[repr(C)] | ||
| #[derive(Debug, Copy, Clone)] | ||
| pub struct AppLayerTxData { | ||
| _unused: [u8; 0], | ||
| } | ||
| extern "C" { | ||
| #[doc = " \\brief Given a protocol name, checks if the parser is enabled in\n the conf file.\n\n \\param alproto_name Name of the app layer protocol.\n\n \\retval 1 If enabled.\n \\retval 0 If disabled."] | ||
| pub fn SCAppLayerParserConfParserEnabled( | ||
|
|
@@ -793,6 +798,9 @@ extern "C" { | |
| extern "C" { | ||
| pub fn SCAppLayerParserStateIssetFlag(pstate: *mut AppLayerParserState, flag: u16) -> u16; | ||
| } | ||
| extern "C" { | ||
| pub fn FileApplyTxFlags(txd: *const AppLayerTxData, direction: u8, file: *mut File); | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We do not need to bindgen this one |
||
| } | ||
| extern "C" { | ||
| pub fn SCAppLayerRegisterParserAlias( | ||
| proto_name: *const ::std::os::raw::c_char, proto_alias: *const ::std::os::raw::c_char, | ||
|
|
@@ -879,6 +887,34 @@ extern "C" { | |
| data_len: u32, | ||
| ) -> ::std::os::raw::c_int; | ||
| } | ||
| extern "C" { | ||
| #[doc = " \\brief Open a new File\n\n \\param ffc flow container\n \\param sbcfg buffer config\n \\param name filename character array\n \\param name_len filename len\n \\param data initial data\n \\param data_len initial data len\n \\param flags open flags\n\n \\retval ff flowfile object\n\n \\note filename is not a string, so it's not nul terminated.\n\n If flags contains the FILE_USE_DETECT bit, the pruning code will\n consider not just the content_stored tracker, but also content_inspected.\n It's the responsibility of the API user to make sure this tracker is\n properly updated."] | ||
| pub fn FileOpenFileWithId( | ||
| arg1: *mut FileContainer, arg2: *const StreamingBufferConfig, track_id: u32, | ||
| name: *const u8, name_len: u16, data: *const u8, data_len: u32, flags: u16, | ||
| ) -> ::std::os::raw::c_int; | ||
| } | ||
| extern "C" { | ||
| pub fn FileAppendDataById( | ||
| arg1: *mut FileContainer, sbcfg: *const StreamingBufferConfig, track_id: u32, | ||
| data: *const u8, data_len: u32, | ||
| ) -> ::std::os::raw::c_int; | ||
| } | ||
| extern "C" { | ||
| pub fn FileAppendGAPById( | ||
| ffc: *mut FileContainer, sbcfg: *const StreamingBufferConfig, track_id: u32, | ||
| data: *const u8, data_len: u32, | ||
| ) -> ::std::os::raw::c_int; | ||
| } | ||
| extern "C" { | ||
| pub fn FileCloseFileById( | ||
| arg1: *mut FileContainer, sbcfg: *const StreamingBufferConfig, track_id: u32, | ||
| data: *const u8, data_len: u32, flags: u16, | ||
| ) -> ::std::os::raw::c_int; | ||
| } | ||
| extern "C" { | ||
| pub fn FileContainerRecycle(arg1: *mut FileContainer, cfg: *const StreamingBufferConfig); | ||
| } | ||
| #[repr(C)] | ||
| #[derive(Debug, Copy, Clone)] | ||
| pub struct HttpRangeContainerBuffer { | ||
|
|
@@ -924,6 +960,12 @@ extern "C" { | |
| len: u32, | ||
| ) -> ::std::os::raw::c_int; | ||
| } | ||
| extern "C" { | ||
| pub fn SCHTPFileCloseHandleRange( | ||
| sbcfg: *const StreamingBufferConfig, arg1: *mut FileContainer, arg2: u16, | ||
| arg3: *mut HttpRangeContainerBlock, arg4: *const u8, arg5: u32, | ||
| ) -> bool; | ||
| } | ||
| pub type FrameId = i64; | ||
| #[repr(C)] | ||
| #[derive(Debug, Copy, Clone)] | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.