Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions azo-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ impl ResultCode {
}
}

#[repr(C)]
#[repr(C, packed(4))]
#[derive(Debug, Clone, PartialEq)]
pub struct TimeCode {
pub speed: c_double,
Expand Down Expand Up @@ -182,7 +182,7 @@ bitflags! {
}
}

#[repr(C)]
#[repr(C, packed(4))]
#[derive(Debug, Default, Clone, PartialEq)]
pub struct TimeInfo {
pub speed : c_double,
Expand Down Expand Up @@ -246,7 +246,7 @@ pub type BufferSwitchTimeInfo =
direct_process : Bool
) -> *mut Time;

#[repr(C)]
#[repr(C, packed(4))]
#[derive(Debug, Clone, Hash)]
pub struct Callbacks {
pub buffer_switch : BufferSwitch,
Expand Down Expand Up @@ -359,7 +359,7 @@ pub struct ChannelInfo {
pub name : [u8; 32]
}

#[repr(C)]
#[repr(C, packed(4))]
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct BufferInfo {
pub is_input : Bool,
Expand Down
1 change: 1 addition & 0 deletions azo-sys/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ macro_rules! c_enum {
}
}

#[repr(C)]
#[derive(Debug, Default, Clone, Copy, PartialEq, Eq, Hash)]
pub struct I64Split {
pub hi: u32,
Expand Down