diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2023-07-16 17:13:47 +0900 |
---|---|---|
committer | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2023-07-16 17:13:47 +0900 |
commit | d76688665d25007ee56a18958f574a6bc1891fee (patch) | |
tree | 03a3d577e54b68c8e8d6a7ac94bda05261244ec2 | |
parent | a77a2d2fe5b65b0c42d7df54455976fb1aad5b54 (diff) | |
download | hinawa-rs-d76688665d25007ee56a18958f574a6bc1891fee.tar.gz |
hinawa-sys: regenerate crate
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
-rw-r--r-- | hinawa-sys/Cargo.toml | 7 | ||||
-rw-r--r-- | hinawa-sys/src/lib.rs | 100 | ||||
-rw-r--r-- | hinawa-sys/versions.txt | 2 |
3 files changed, 107 insertions, 2 deletions
diff --git a/hinawa-sys/Cargo.toml b/hinawa-sys/Cargo.toml index 7e0dc09..4f4b344 100644 --- a/hinawa-sys/Cargo.toml +++ b/hinawa-sys/Cargo.toml @@ -19,7 +19,11 @@ repository = "https://git.kernel.org/pub/scm/libs/ieee1394/hinawa-rs.git/" features = ["dox"] [package.metadata.system-deps.hinawa] name = "hinawa" -version = "2.5" +version = "2.6" + +[package.metadata.system-deps.hinawa.v2_6] +name = "hinawa" +version = "2.6" [lib] name = "hinawa_sys" @@ -46,3 +50,4 @@ tempfile = "3" [features] # To suppress linking to C library when generating documentation. dox = [] +v2_6 = [] diff --git a/hinawa-sys/src/lib.rs b/hinawa-sys/src/lib.rs index 52327d0..b3eb349 100644 --- a/hinawa-sys/src/lib.rs +++ b/hinawa-sys/src/lib.rs @@ -126,11 +126,25 @@ pub const HINAWA_SND_UNIT_TYPE_MOTU: HinawaSndUnitType = 7; pub const HINAWA_SND_UNIT_TYPE_FIREFACE: HinawaSndUnitType = 8; // Records +#[repr(C)] +pub struct HinawaCycleTime { + _data: [u8; 0], + _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, +} + +impl ::std::fmt::Debug for HinawaCycleTime { + fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { + f.debug_struct(&format!("HinawaCycleTime @ {:p}", self)) + .finish() + } +} + #[derive(Copy, Clone)] #[repr(C)] pub struct HinawaFwFcpClass { pub parent_class: HinawaFwRespClass, pub responded: Option<unsafe extern "C" fn(*mut HinawaFwFcp, *const u8, c_uint)>, + pub responded2: Option<unsafe extern "C" fn(*mut HinawaFwFcp, c_uint, *const u8, c_uint)>, } impl ::std::fmt::Debug for HinawaFwFcpClass { @@ -138,6 +152,7 @@ impl ::std::fmt::Debug for HinawaFwFcpClass { f.debug_struct(&format!("HinawaFwFcpClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("responded", &self.responded) + .field("responded2", &self.responded2) .finish() } } @@ -165,6 +180,9 @@ impl ::std::fmt::Debug for HinawaFwNodeClass { pub struct HinawaFwReqClass { pub parent_class: gobject::GObjectClass, pub responded: Option<unsafe extern "C" fn(*mut HinawaFwReq, HinawaFwRcode, *const u8, c_uint)>, + pub responded2: Option< + unsafe extern "C" fn(*mut HinawaFwReq, HinawaFwRcode, c_uint, c_uint, *const u8, c_uint), + >, } impl ::std::fmt::Debug for HinawaFwReqClass { @@ -172,6 +190,7 @@ impl ::std::fmt::Debug for HinawaFwReqClass { f.debug_struct(&format!("HinawaFwReqClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("responded", &self.responded) + .field("responded2", &self.responded2) .finish() } } @@ -194,6 +213,20 @@ pub struct HinawaFwRespClass { c_uint, ) -> HinawaFwRcode, >, + pub requested3: Option< + unsafe extern "C" fn( + *mut HinawaFwResp, + HinawaFwTcode, + u64, + c_uint, + c_uint, + c_uint, + c_uint, + c_uint, + *const u8, + c_uint, + ) -> HinawaFwRcode, + >, } impl ::std::fmt::Debug for HinawaFwRespClass { @@ -202,6 +235,7 @@ impl ::std::fmt::Debug for HinawaFwRespClass { .field("parent_class", &self.parent_class) .field("requested", &self.requested) .field("requested2", &self.requested2) + .field("requested3", &self.requested3) .finish() } } @@ -530,6 +564,26 @@ extern "C" { pub fn hinawa_snd_unit_type_get_type() -> GType; //========================================================================= + // HinawaCycleTime + //========================================================================= + pub fn hinawa_cycle_time_get_type() -> GType; + pub fn hinawa_cycle_time_new() -> *mut HinawaCycleTime; + pub fn hinawa_cycle_time_compute_tstamp( + self_: *const HinawaCycleTime, + tstamp: c_uint, + isoc_cycle: *mut [c_uint; 2], + ); + pub fn hinawa_cycle_time_get_clock_id(self_: *const HinawaCycleTime, clock_id: *mut c_int); + pub fn hinawa_cycle_time_get_fields(self_: *const HinawaCycleTime, fields: *mut [u16; 3]); + pub fn hinawa_cycle_time_get_raw(self_: *const HinawaCycleTime, raw: *mut u32); + pub fn hinawa_cycle_time_get_system_time( + self_: *const HinawaCycleTime, + tv_sec: *mut i64, + tv_nsec: *mut i32, + ); + pub fn hinawa_cycle_time_parse_tstamp(tstamp: c_uint, isoc_cycle: *mut [c_uint; 2]); + + //========================================================================= // HinawaSndMotuRegisterDspParameter //========================================================================= pub fn hinawa_snd_motu_register_dsp_parameter_get_type() -> GType; @@ -610,6 +664,16 @@ extern "C" { timeout_ms: c_uint, error: *mut *mut glib::GError, ); + pub fn hinawa_fw_fcp_avc_transaction_with_tstamp( + self_: *mut HinawaFwFcp, + cmd: *const u8, + cmd_size: size_t, + resp: *mut *mut u8, + resp_size: *mut size_t, + tstamp: *mut [c_uint; 3], + timeout_ms: c_uint, + error: *mut *mut glib::GError, + ) -> gboolean; pub fn hinawa_fw_fcp_bind( self_: *mut HinawaFwFcp, node: *mut HinawaFwNode, @@ -622,6 +686,14 @@ extern "C" { timeout_ms: c_uint, error: *mut *mut glib::GError, ); + pub fn hinawa_fw_fcp_command_with_tstamp( + self_: *mut HinawaFwFcp, + cmd: *const u8, + cmd_size: size_t, + tstamp: *mut [c_uint; 2], + timeout_ms: c_uint, + error: *mut *mut glib::GError, + ) -> gboolean; pub fn hinawa_fw_fcp_transaction( self_: *mut HinawaFwFcp, req_frame: *const u8, @@ -653,12 +725,28 @@ extern "C" { path: *const c_char, error: *mut *mut glib::GError, ); + pub fn hinawa_fw_node_read_cycle_time( + self_: *mut HinawaFwNode, + clock_id: c_int, + cycle_time: *const *mut HinawaCycleTime, + error: *mut *mut glib::GError, + ) -> gboolean; //========================================================================= // HinawaFwReq //========================================================================= pub fn hinawa_fw_req_get_type() -> GType; pub fn hinawa_fw_req_new() -> *mut HinawaFwReq; + pub fn hinawa_fw_req_request( + self_: *mut HinawaFwReq, + node: *mut HinawaFwNode, + tcode: HinawaFwTcode, + addr: u64, + length: size_t, + frame: *const *mut u8, + frame_size: *mut size_t, + error: *mut *mut glib::GError, + ) -> gboolean; pub fn hinawa_fw_req_transaction( self_: *mut HinawaFwReq, node: *mut HinawaFwNode, @@ -690,6 +778,18 @@ extern "C" { timeout_ms: c_uint, error: *mut *mut glib::GError, ); + pub fn hinawa_fw_req_transaction_with_tstamp( + self_: *mut HinawaFwReq, + node: *mut HinawaFwNode, + tcode: HinawaFwTcode, + addr: u64, + length: size_t, + frame: *mut *mut u8, + frame_size: *mut size_t, + tstamp: *mut [c_uint; 2], + timeout_ms: c_uint, + error: *mut *mut glib::GError, + ) -> gboolean; //========================================================================= // HinawaFwResp diff --git a/hinawa-sys/versions.txt b/hinawa-sys/versions.txt index 1313169..4bb7a0b 100644 --- a/hinawa-sys/versions.txt +++ b/hinawa-sys/versions.txt @@ -1,3 +1,3 @@ Generated by gir (https://github.com/gtk-rs/gir @ c8a7a13d2c4d) from -from gir-files (https://github.com/gtk-rs/gir-files @ 7ebd4478b4a5) +from gir-files (https://github.com/gtk-rs/gir-files @ faebfb303ca6) |