Repository navigation
fix(mdb): Build against SDK 1.15 #276
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
fishloa
wants to merge
7
commits into
AxisCommunications:main
Choose a base branch
from
fishloa:mdb-axis-os-12
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.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
29e4845
fix(mdb): Build against SDK 1.15
fishloa f245c68
chore: Update consume_analytics_metadata checksum
fishloa e2112d9
fix(mdb): Declare mdb_on_error_t once instead of transmuting
fishloa cd6d0f5
ci: Check mdb against the AXIS OS 11 bindings
fishloa ccae784
ci: Don't regenerate the AXIS OS 11 mdb-sys bindings in check_generat…
fishloa 8341027
docs(mdb-sys): Note that the hand-written mdb_on_error_t is not a pat…
fishloa 7cdba4e
chore: Restore consume_analytics_metadata checksum
fishloa 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,98 @@ | ||
| /* automatically generated by rust-bindgen 0.69.5 */ | ||
|
|
||
| pub const mdb_error_code_t_MDB_ERROR_NONE: mdb_error_code_t = 0; | ||
| pub const mdb_error_code_t_MDB_ERROR_ACCESS_DENIED: mdb_error_code_t = -1; | ||
| pub const mdb_error_code_t_MDB_ERROR_IO: mdb_error_code_t = -2; | ||
| pub const mdb_error_code_t_MDB_ERROR_MEMORY: mdb_error_code_t = -3; | ||
| pub const mdb_error_code_t_MDB_ERROR_OTHER: mdb_error_code_t = -4; | ||
| pub const mdb_error_code_t_MDB_ERROR_TIMEOUT: mdb_error_code_t = -5; | ||
| pub const mdb_error_code_t_MDB_ERROR_USER: mdb_error_code_t = -6; | ||
| pub const mdb_error_code_t_MDB_ERROR_VERSION_ERROR: mdb_error_code_t = -7; | ||
| pub const mdb_error_code_t_MDB_ERROR_TOO_MANY_PENDING_MESSAGES: mdb_error_code_t = -8; | ||
| pub type mdb_error_code_t = ::std::os::raw::c_int; | ||
| #[repr(C)] | ||
| #[derive(Debug, Copy, Clone)] | ||
| pub struct mdb_error_t { | ||
| pub code: mdb_error_code_t, | ||
| pub message: *mut ::std::os::raw::c_char, | ||
| } | ||
| extern "C" { | ||
| pub fn mdb_error_destroy(error: *mut *mut mdb_error_t); | ||
| } | ||
| #[repr(C)] | ||
| #[derive(Debug, Copy, Clone)] | ||
| pub struct mdb_connection { | ||
| _unused: [u8; 0], | ||
| } | ||
| pub type mdb_connection_t = mdb_connection; | ||
| extern "C" { | ||
| pub fn mdb_connection_create( | ||
| on_error: mdb_on_error_t, | ||
| user_data: *mut ::std::os::raw::c_void, | ||
| error: *mut *mut mdb_error_t, | ||
| ) -> *mut mdb_connection_t; | ||
| } | ||
| extern "C" { | ||
| pub fn mdb_connection_destroy(self_: *mut *mut mdb_connection_t); | ||
| } | ||
| #[repr(C)] | ||
| #[derive(Debug, Copy, Clone)] | ||
| pub struct mdb_message { | ||
| _unused: [u8; 0], | ||
| } | ||
| pub type mdb_message_t = mdb_message; | ||
| #[repr(C)] | ||
| #[derive(Debug, Copy, Clone)] | ||
| pub struct mdb_message_payload { | ||
| pub size: usize, | ||
| pub data: *mut u8, | ||
| } | ||
| pub type mdb_message_payload_t = mdb_message_payload; | ||
| extern "C" { | ||
| pub fn mdb_message_get_payload(message: *const mdb_message_t) -> *const mdb_message_payload_t; | ||
| } | ||
| extern "C" { | ||
| pub fn mdb_message_get_timestamp(message: *const mdb_message_t) -> *const timespec; | ||
| } | ||
| pub type mdb_on_done_t = ::std::option::Option< | ||
| unsafe extern "C" fn(error: *const mdb_error_t, user_data: *mut ::std::os::raw::c_void), | ||
| >; | ||
| #[repr(C)] | ||
| #[derive(Debug, Copy, Clone)] | ||
| pub struct mdb_subscriber_config { | ||
| _unused: [u8; 0], | ||
| } | ||
| pub type mdb_subscriber_config_t = mdb_subscriber_config; | ||
| pub type mdb_subscriber_on_message_t = ::std::option::Option< | ||
| unsafe extern "C" fn(message: *const mdb_message_t, user_data: *mut ::std::os::raw::c_void), | ||
| >; | ||
| extern "C" { | ||
| pub fn mdb_subscriber_config_create( | ||
| topic: *const ::std::os::raw::c_char, | ||
| source: *const ::std::os::raw::c_char, | ||
| on_message: mdb_subscriber_on_message_t, | ||
| user_data: *mut ::std::os::raw::c_void, | ||
| error: *mut *mut mdb_error_t, | ||
| ) -> *mut mdb_subscriber_config_t; | ||
| } | ||
| extern "C" { | ||
| pub fn mdb_subscriber_config_destroy(self_: *mut *mut mdb_subscriber_config_t); | ||
| } | ||
| #[repr(C)] | ||
| #[derive(Debug, Copy, Clone)] | ||
| pub struct mdb_subscriber { | ||
| _unused: [u8; 0], | ||
| } | ||
| pub type mdb_subscriber_t = mdb_subscriber; | ||
| extern "C" { | ||
| pub fn mdb_subscriber_create_async( | ||
| connection: *mut mdb_connection_t, | ||
| config: *mut mdb_subscriber_config_t, | ||
| on_done: mdb_on_done_t, | ||
| user_data: *mut ::std::os::raw::c_void, | ||
| error: *mut *mut mdb_error_t, | ||
| ) -> *mut mdb_subscriber_t; | ||
| } | ||
| extern "C" { | ||
| pub fn mdb_subscriber_destroy(self_: *mut *mut mdb_subscriber_t); | ||
| } |
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
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.