diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2024-02-25 10:05:05 +0900 |
---|---|---|
committer | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2024-02-25 10:05:05 +0900 |
commit | 19e4fad81c7b2c3f9036bad2ccfb01dd1055b55b (patch) | |
tree | a0f15cb3f3f5b839d6b0c3e687d2b62c918232f0 | |
parent | 63156d6c6b0a809a6db2d4ca1f494ef60f53bb55 (diff) | |
download | hinawa-rs-19e4fad81c7b2c3f9036bad2ccfb01dd1055b55b.tar.gz |
hinawa: regenerate API crate
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
-rw-r--r-- | README.rst | 2 | ||||
-rw-r--r-- | hinawa/Cargo.toml | 2 | ||||
-rw-r--r-- | hinawa/src/auto/cycle_time.rs | 9 | ||||
-rw-r--r-- | hinawa/src/auto/enums.rs | 124 | ||||
-rw-r--r-- | hinawa/src/auto/fw_fcp.rs | 16 | ||||
-rw-r--r-- | hinawa/src/auto/fw_node.rs | 34 | ||||
-rw-r--r-- | hinawa/src/auto/fw_req.rs | 7 | ||||
-rw-r--r-- | hinawa/src/auto/fw_resp.rs | 20 | ||||
-rw-r--r-- | hinawa/src/auto/mod.rs | 3 | ||||
-rw-r--r-- | hinawa/src/auto/versions.txt | 4 | ||||
-rw-r--r-- | hinawa/src/fw_req.rs | 2 | ||||
-rw-r--r-- | hinawa/src/lib.rs | 5 | ||||
-rw-r--r-- | hinawa/src/subclass.rs | 4 |
13 files changed, 38 insertions, 194 deletions
@@ -51,7 +51,7 @@ Dependencies * API crate (`hinawa`) * ``libc`` >= 0.2 - * ``glib`` >= 0.18 + * ``glib`` >= 0.19 * FFI crate (``hinawa-sys``) Examples diff --git a/hinawa/Cargo.toml b/hinawa/Cargo.toml index c3d4df7..1b8ccb3 100644 --- a/hinawa/Cargo.toml +++ b/hinawa/Cargo.toml @@ -22,7 +22,7 @@ name = "hinawa" [dependencies] libc = "0.2" -glib = "0.18" +glib = "0.19" ffi = {package = "hinawa-sys", version = "0.10.0"} [dev-dependencies] diff --git a/hinawa/src/auto/cycle_time.rs b/hinawa/src/auto/cycle_time.rs index 2d7bc08..fdb626f 100644 --- a/hinawa/src/auto/cycle_time.rs +++ b/hinawa/src/auto/cycle_time.rs @@ -4,7 +4,6 @@ // DO NOT EDIT use glib::translate::*; -use std::mem; glib::wrapper! { /// A boxed object to express data of cycle time. @@ -45,7 +44,7 @@ impl CycleTime { #[doc(alias = "get_clock_id")] pub fn clock_id(&self) -> i32 { unsafe { - let mut clock_id = mem::MaybeUninit::uninit(); + let mut clock_id = std::mem::MaybeUninit::uninit(); ffi::hinawa_cycle_time_get_clock_id(self.to_glib_none().0, clock_id.as_mut_ptr()); clock_id.assume_init() } @@ -62,7 +61,7 @@ impl CycleTime { #[doc(alias = "get_raw")] pub fn raw(&self) -> u32 { unsafe { - let mut raw = mem::MaybeUninit::uninit(); + let mut raw = std::mem::MaybeUninit::uninit(); ffi::hinawa_cycle_time_get_raw(self.to_glib_none().0, raw.as_mut_ptr()); raw.assume_init() } @@ -83,8 +82,8 @@ impl CycleTime { #[doc(alias = "get_system_time")] pub fn system_time(&self) -> (i64, i32) { unsafe { - let mut tv_sec = mem::MaybeUninit::uninit(); - let mut tv_nsec = mem::MaybeUninit::uninit(); + let mut tv_sec = std::mem::MaybeUninit::uninit(); + let mut tv_nsec = std::mem::MaybeUninit::uninit(); ffi::hinawa_cycle_time_get_system_time( self.to_glib_none().0, tv_sec.as_mut_ptr(), diff --git a/hinawa/src/auto/enums.rs b/hinawa/src/auto/enums.rs index fa42591..1909610 100644 --- a/hinawa/src/auto/enums.rs +++ b/hinawa/src/auto/enums.rs @@ -4,7 +4,6 @@ // DO NOT EDIT use glib::{prelude::*, translate::*}; -use std::fmt; /// A set of error code for [`glib::Error`][crate::glib::Error] for operations in [`FwFcp`][crate::FwFcp]. #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] @@ -24,21 +23,6 @@ pub enum FwFcpError { __Unknown(i32), } -impl fmt::Display for FwFcpError { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!( - f, - "FwFcpError::{}", - match *self { - Self::Timeout => "Timeout", - Self::LargeResp => "LargeResp", - Self::Aborted => "Aborted", - _ => "Unknown", - } - ) - } -} - #[doc(hidden)] impl IntoGlib for FwFcpError { type GlibType = ffi::HinawaFwFcpError; @@ -162,22 +146,6 @@ pub enum FwNodeError { __Unknown(i32), } -impl fmt::Display for FwNodeError { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!( - f, - "FwNodeError::{}", - match *self { - Self::Disconnected => "Disconnected", - Self::Opened => "Opened", - Self::NotOpened => "NotOpened", - Self::Failed => "Failed", - _ => "Unknown", - } - ) - } -} - #[doc(hidden)] impl IntoGlib for FwNodeError { type GlibType = ffi::HinawaFwNodeError; @@ -309,7 +277,7 @@ pub enum FwRcode { /// For cancellation. #[doc(alias = "HINAWA_FW_RCODE_CANCELLED")] Cancelled, - // For busyness. + /// For busyness. #[doc(alias = "HINAWA_FW_RCODE_BUSY")] Busy, /// For generation. @@ -325,29 +293,6 @@ pub enum FwRcode { __Unknown(i32), } -impl fmt::Display for FwRcode { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!( - f, - "FwRcode::{}", - match *self { - Self::Complete => "Complete", - Self::ConflictError => "ConflictError", - Self::DataError => "DataError", - Self::TypeError => "TypeError", - Self::AddressError => "AddressError", - Self::SendError => "SendError", - Self::Cancelled => "Cancelled", - Self::Busy => "Busy", - Self::Generation => "Generation", - Self::NoAck => "NoAck", - Self::Invalid => "Invalid", - _ => "Unknown", - } - ) - } -} - #[doc(hidden)] impl IntoGlib for FwRcode { type GlibType = ffi::HinawaFwRcode; @@ -487,28 +432,6 @@ pub enum FwReqError { __Unknown(i32), } -impl fmt::Display for FwReqError { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!( - f, - "FwReqError::{}", - match *self { - Self::ConflictError => "ConflictError", - Self::DataError => "DataError", - Self::TypeError => "TypeError", - Self::AddressError => "AddressError", - Self::SendError => "SendError", - Self::Cancelled => "Cancelled", - Self::Busy => "Busy", - Self::Generation => "Generation", - Self::NoAck => "NoAck", - Self::Invalid => "Invalid", - _ => "Unknown", - } - ) - } -} - #[doc(hidden)] impl IntoGlib for FwReqError { type GlibType = ffi::HinawaFwReqError; @@ -643,21 +566,6 @@ pub enum FwRespError { __Unknown(i32), } -impl fmt::Display for FwRespError { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!( - f, - "FwRespError::{}", - match *self { - Self::Failed => "Failed", - Self::Reserved => "Reserved", - Self::AddrSpaceUsed => "AddrSpaceUsed", - _ => "Unknown", - } - ) - } -} - #[doc(hidden)] impl IntoGlib for FwRespError { type GlibType = ffi::HinawaFwRespError; @@ -824,36 +732,6 @@ pub enum FwTcode { __Unknown(i32), } -impl fmt::Display for FwTcode { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!( - f, - "FwTcode::{}", - match *self { - Self::WriteQuadletRequest => "WriteQuadletRequest", - Self::WriteBlockRequest => "WriteBlockRequest", - Self::WriteResponse => "WriteResponse", - Self::ReadQuadletRequest => "ReadQuadletRequest", - Self::ReadBlockRequest => "ReadBlockRequest", - Self::ReadQuadletResponse => "ReadQuadletResponse", - Self::ReadBlockResponse => "ReadBlockResponse", - Self::CycleStart => "CycleStart", - Self::LockRequest => "LockRequest", - Self::StreamData => "StreamData", - Self::LockResponse => "LockResponse", - Self::LockMaskSwap => "LockMaskSwap", - Self::LockCompareSwap => "LockCompareSwap", - Self::LockFetchAdd => "LockFetchAdd", - Self::LockLittleAdd => "LockLittleAdd", - Self::LockBoundedAdd => "LockBoundedAdd", - Self::LockWrapAdd => "LockWrapAdd", - Self::LockVendorDependent => "LockVendorDependent", - _ => "Unknown", - } - ) - } -} - #[doc(hidden)] impl IntoGlib for FwTcode { type GlibType = ffi::HinawaFwTcode; diff --git a/hinawa/src/auto/fw_fcp.rs b/hinawa/src/auto/fw_fcp.rs index 861f2be..1170194 100644 --- a/hinawa/src/auto/fw_fcp.rs +++ b/hinawa/src/auto/fw_fcp.rs @@ -9,7 +9,7 @@ use glib::{ signal::{connect_raw, SignalHandlerId}, translate::*, }; -use std::{boxed::Box as Box_, fmt, mem::transmute, ptr}; +use std::boxed::Box as Box_; glib::wrapper! { /// A FCP transaction executor to node in IEEE 1394 bus. @@ -123,7 +123,7 @@ mod sealed { impl<T: super::IsA<super::FwFcp>> Sealed for T {} } -/// Trait containing all [`struct@FwFcp`] methods. +/// Trait containing the part of [`struct@FwFcp`] methods. /// /// # Implementors /// @@ -139,7 +139,7 @@ pub trait FwFcpExt: IsA<FwFcp> + sealed::Sealed + 'static { #[doc(alias = "hinawa_fw_fcp_bind")] fn bind(&self, node: &impl IsA<FwNode>) -> Result<(), glib::Error> { unsafe { - let mut error = ptr::null_mut(); + let mut error = std::ptr::null_mut(); let is_ok = ffi::hinawa_fw_fcp_bind( self.as_ref().to_glib_none().0, node.as_ref().to_glib_none().0, @@ -169,7 +169,7 @@ pub trait FwFcpExt: IsA<FwFcp> + sealed::Sealed + 'static { fn command(&self, cmd: &[u8], timeout_ms: u32) -> Result<(), glib::Error> { let cmd_size = cmd.len() as _; unsafe { - let mut error = ptr::null_mut(); + let mut error = std::ptr::null_mut(); let is_ok = ffi::hinawa_fw_fcp_command( self.as_ref().to_glib_none().0, cmd.to_glib_none().0, @@ -215,7 +215,7 @@ pub trait FwFcpExt: IsA<FwFcp> + sealed::Sealed + 'static { connect_raw( self.as_ptr() as *mut _, b"notify::is-bound\0".as_ptr() as *const _, - Some(transmute::<_, unsafe extern "C" fn()>( + Some(std::mem::transmute::<_, unsafe extern "C" fn()>( notify_is_bound_trampoline::<Self, F> as *const (), )), Box_::into_raw(f), @@ -225,9 +225,3 @@ pub trait FwFcpExt: IsA<FwFcp> + sealed::Sealed + 'static { } impl<O: IsA<FwFcp>> FwFcpExt for O {} - -impl fmt::Display for FwFcp { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - f.write_str("FwFcp") - } -} diff --git a/hinawa/src/auto/fw_node.rs b/hinawa/src/auto/fw_node.rs index 936f226..bece817 100644 --- a/hinawa/src/auto/fw_node.rs +++ b/hinawa/src/auto/fw_node.rs @@ -8,7 +8,7 @@ use glib::{ signal::{connect_raw, SignalHandlerId}, translate::*, }; -use std::{boxed::Box as Box_, fmt, mem::transmute, ptr}; +use std::boxed::Box as Box_; glib::wrapper! { /// An event listener for node in IEEE 1394 bus. @@ -116,7 +116,7 @@ mod sealed { impl<T: super::IsA<super::FwNode>> Sealed for T {} } -/// Trait containing all [`struct@FwNode`] methods. +/// Trait containing the part of [`struct@FwNode`] methods. /// /// # Implementors /// @@ -134,8 +134,8 @@ pub trait FwNodeExt: IsA<FwNode> + sealed::Sealed + 'static { #[doc(alias = "hinawa_fw_node_create_source")] fn create_source(&self) -> Result<glib::Source, glib::Error> { unsafe { - let mut gsrc = ptr::null_mut(); - let mut error = ptr::null_mut(); + let mut gsrc = std::ptr::null_mut(); + let mut error = std::ptr::null_mut(); let is_ok = ffi::hinawa_fw_node_create_source( self.as_ref().to_glib_none().0, &mut gsrc, @@ -162,7 +162,7 @@ pub trait FwNodeExt: IsA<FwNode> + sealed::Sealed + 'static { #[doc(alias = "hinawa_fw_node_open")] fn open(&self, path: &str, open_flag: i32) -> Result<(), glib::Error> { unsafe { - let mut error = ptr::null_mut(); + let mut error = std::ptr::null_mut(); let is_ok = ffi::hinawa_fw_node_open( self.as_ref().to_glib_none().0, path.to_glib_none().0, @@ -239,7 +239,7 @@ pub trait FwNodeExt: IsA<FwNode> + sealed::Sealed + 'static { connect_raw( self.as_ptr() as *mut _, b"bus-update\0".as_ptr() as *const _, - Some(transmute::<_, unsafe extern "C" fn()>( + Some(std::mem::transmute::<_, unsafe extern "C" fn()>( bus_update_trampoline::<Self, F> as *const (), )), Box_::into_raw(f), @@ -263,7 +263,7 @@ pub trait FwNodeExt: IsA<FwNode> + sealed::Sealed + 'static { connect_raw( self.as_ptr() as *mut _, b"disconnected\0".as_ptr() as *const _, - Some(transmute::<_, unsafe extern "C" fn()>( + Some(std::mem::transmute::<_, unsafe extern "C" fn()>( disconnected_trampoline::<Self, F> as *const (), )), Box_::into_raw(f), @@ -289,7 +289,7 @@ pub trait FwNodeExt: IsA<FwNode> + sealed::Sealed + 'static { connect_raw( self.as_ptr() as *mut _, b"notify::bus-manager-node-id\0".as_ptr() as *const _, - Some(transmute::<_, unsafe extern "C" fn()>( + Some(std::mem::transmute::<_, unsafe extern "C" fn()>( notify_bus_manager_node_id_trampoline::<Self, F> as *const (), )), Box_::into_raw(f), @@ -312,7 +312,7 @@ pub trait FwNodeExt: IsA<FwNode> + sealed::Sealed + 'static { connect_raw( self.as_ptr() as *mut _, b"notify::card-id\0".as_ptr() as *const _, - Some(transmute::<_, unsafe extern "C" fn()>( + Some(std::mem::transmute::<_, unsafe extern "C" fn()>( notify_card_id_trampoline::<Self, F> as *const (), )), Box_::into_raw(f), @@ -335,7 +335,7 @@ pub trait FwNodeExt: IsA<FwNode> + sealed::Sealed + 'static { connect_raw( self.as_ptr() as *mut _, b"notify::generation\0".as_ptr() as *const _, - Some(transmute::<_, unsafe extern "C" fn()>( + Some(std::mem::transmute::<_, unsafe extern "C" fn()>( notify_generation_trampoline::<Self, F> as *const (), )), Box_::into_raw(f), @@ -361,7 +361,7 @@ pub trait FwNodeExt: IsA<FwNode> + sealed::Sealed + 'static { connect_raw( self.as_ptr() as *mut _, b"notify::ir-manager-node-id\0".as_ptr() as *const _, - Some(transmute::<_, unsafe extern "C" fn()>( + Some(std::mem::transmute::<_, unsafe extern "C" fn()>( notify_ir_manager_node_id_trampoline::<Self, F> as *const (), )), Box_::into_raw(f), @@ -387,7 +387,7 @@ pub trait FwNodeExt: IsA<FwNode> + sealed::Sealed + 'static { connect_raw( self.as_ptr() as *mut _, b"notify::local-node-id\0".as_ptr() as *const _, - Some(transmute::<_, unsafe extern "C" fn()>( + Some(std::mem::transmute::<_, unsafe extern "C" fn()>( notify_local_node_id_trampoline::<Self, F> as *const (), )), Box_::into_raw(f), @@ -410,7 +410,7 @@ pub trait FwNodeExt: IsA<FwNode> + sealed::Sealed + 'static { connect_raw( self.as_ptr() as *mut _, b"notify::node-id\0".as_ptr() as *const _, - Some(transmute::<_, unsafe extern "C" fn()>( + Some(std::mem::transmute::<_, unsafe extern "C" fn()>( notify_node_id_trampoline::<Self, F> as *const (), )), Box_::into_raw(f), @@ -433,7 +433,7 @@ pub trait FwNodeExt: IsA<FwNode> + sealed::Sealed + 'static { connect_raw( self.as_ptr() as *mut _, b"notify::root-node-id\0".as_ptr() as *const _, - Some(transmute::<_, unsafe extern "C" fn()>( + Some(std::mem::transmute::<_, unsafe extern "C" fn()>( notify_root_node_id_trampoline::<Self, F> as *const (), )), Box_::into_raw(f), @@ -443,9 +443,3 @@ pub trait FwNodeExt: IsA<FwNode> + sealed::Sealed + 'static { } impl<O: IsA<FwNode>> FwNodeExt for O {} - -impl fmt::Display for FwNode { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - f.write_str("FwNode") - } -} diff --git a/hinawa/src/auto/fw_req.rs b/hinawa/src/auto/fw_req.rs index cc3745c..3197a2e 100644 --- a/hinawa/src/auto/fw_req.rs +++ b/hinawa/src/auto/fw_req.rs @@ -4,7 +4,6 @@ // DO NOT EDIT use glib::translate::*; -use std::fmt; glib::wrapper! { /// A transaction executor to a node in IEEE 1394 bus. @@ -58,9 +57,3 @@ impl Default for FwReq { Self::new() } } - -impl fmt::Display for FwReq { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - f.write_str("FwReq") - } -} diff --git a/hinawa/src/auto/fw_resp.rs b/hinawa/src/auto/fw_resp.rs index 633adb8..2e789f0 100644 --- a/hinawa/src/auto/fw_resp.rs +++ b/hinawa/src/auto/fw_resp.rs @@ -9,7 +9,7 @@ use glib::{ signal::{connect_raw, SignalHandlerId}, translate::*, }; -use std::{boxed::Box as Box_, fmt, mem::transmute, ptr}; +use std::boxed::Box as Box_; glib::wrapper! { /// A transaction responder for request subaction initiated by node in IEEE 1394 bus. @@ -92,7 +92,7 @@ mod sealed { impl<T: super::IsA<super::FwResp>> Sealed for T {} } -/// Trait containing all [`struct@FwResp`] methods. +/// Trait containing the part of [`struct@FwResp`] methods. /// /// # Implementors /// @@ -126,7 +126,7 @@ pub trait FwRespExt: IsA<FwResp> + sealed::Sealed + 'static { #[doc(alias = "hinawa_fw_resp_reserve")] fn reserve(&self, node: &impl IsA<FwNode>, addr: u64, width: u32) -> Result<(), glib::Error> { unsafe { - let mut error = ptr::null_mut(); + let mut error = std::ptr::null_mut(); let is_ok = ffi::hinawa_fw_resp_reserve( self.as_ref().to_glib_none().0, node.as_ref().to_glib_none().0, @@ -170,7 +170,7 @@ pub trait FwRespExt: IsA<FwResp> + sealed::Sealed + 'static { width: u32, ) -> Result<(), glib::Error> { unsafe { - let mut error = ptr::null_mut(); + let mut error = std::ptr::null_mut(); let is_ok = ffi::hinawa_fw_resp_reserve_within_region( self.as_ref().to_glib_none().0, node.as_ref().to_glib_none().0, @@ -234,7 +234,7 @@ pub trait FwRespExt: IsA<FwResp> + sealed::Sealed + 'static { connect_raw( self.as_ptr() as *mut _, b"notify::is-reserved\0".as_ptr() as *const _, - Some(transmute::<_, unsafe extern "C" fn()>( + Some(std::mem::transmute::<_, unsafe extern "C" fn()>( notify_is_reserved_trampoline::<Self, F> as *const (), )), Box_::into_raw(f), @@ -257,7 +257,7 @@ pub trait FwRespExt: IsA<FwResp> + sealed::Sealed + 'static { connect_raw( self.as_ptr() as *mut _, b"notify::offset\0".as_ptr() as *const _, - Some(transmute::<_, unsafe extern "C" fn()>( + Some(std::mem::transmute::<_, unsafe extern "C" fn()>( notify_offset_trampoline::<Self, F> as *const (), )), Box_::into_raw(f), @@ -280,7 +280,7 @@ pub trait FwRespExt: IsA<FwResp> + sealed::Sealed + 'static { connect_raw( self.as_ptr() as *mut _, b"notify::width\0".as_ptr() as *const _, - Some(transmute::<_, unsafe extern "C" fn()>( + Some(std::mem::transmute::<_, unsafe extern "C" fn()>( notify_width_trampoline::<Self, F> as *const (), )), Box_::into_raw(f), @@ -290,9 +290,3 @@ pub trait FwRespExt: IsA<FwResp> + sealed::Sealed + 'static { } impl<O: IsA<FwResp>> FwRespExt for O {} - -impl fmt::Display for FwResp { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - f.write_str("FwResp") - } -} diff --git a/hinawa/src/auto/mod.rs b/hinawa/src/auto/mod.rs index d67f108..f1ed9e7 100644 --- a/hinawa/src/auto/mod.rs +++ b/hinawa/src/auto/mod.rs @@ -26,8 +26,7 @@ pub use self::enums::FwReqError; pub use self::enums::FwRespError; pub use self::enums::FwTcode; -#[doc(hidden)] -pub mod traits { +pub(crate) mod traits { pub use super::fw_fcp::FwFcpExt; pub use super::fw_node::FwNodeExt; pub use super::fw_resp::FwRespExt; diff --git a/hinawa/src/auto/versions.txt b/hinawa/src/auto/versions.txt index 369e893..bec788b 100644 --- a/hinawa/src/auto/versions.txt +++ b/hinawa/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 23d7c100187c) +Generated by gir (https://github.com/gtk-rs/gir @ 0e476ab5c1de) from -from gir-files (https://github.com/gtk-rs/gir-files @ 6415239ef435) +from gir-files (https://github.com/gtk-rs/gir-files @ cfc0305f903b) diff --git a/hinawa/src/fw_req.rs b/hinawa/src/fw_req.rs index fe611c5..1e8e2db 100644 --- a/hinawa/src/fw_req.rs +++ b/hinawa/src/fw_req.rs @@ -1,7 +1,7 @@ // SPDX-License-Identifier: MIT use crate::*; -/// Trait containing all [`struct@FwReq`] methods. +/// Trait containing the rest of [`struct@FwReq`] methods. /// /// # Implementors /// diff --git a/hinawa/src/lib.rs b/hinawa/src/lib.rs index 90d6e59..846ba57 100644 --- a/hinawa/src/lib.rs +++ b/hinawa/src/lib.rs @@ -9,7 +9,6 @@ mod fw_node; mod fw_req; mod fw_resp; -// For convenience to provide structures and functions. pub use crate::auto::*; /// For convenience to provide auto-generated/manual traits, and their blanket implementations. @@ -20,10 +19,8 @@ pub mod prelude { /// For subclass implementations derived from provided class. pub mod subclass; -// To access to hinawa-sys crate for FFI. pub use ffi; -// For links in documentation. pub(crate) use glib; -use glib::{signal::*, translate::*, Cast, IsA, SignalHandlerId}; +use glib::{object::*, signal::*, translate::*}; diff --git a/hinawa/src/subclass.rs b/hinawa/src/subclass.rs index acb74c0..48ae656 100644 --- a/hinawa/src/subclass.rs +++ b/hinawa/src/subclass.rs @@ -1,15 +1,11 @@ // SPDX-License-Identifier: MIT -// For subclass of [`FwFcp`][crate::FwFcp]. mod fw_fcp; -// For subclass of [`FwNode`][crate::FwNode]. mod fw_node; -// For subclass of [`FwReq`][crate::FwReq]. mod fw_req; -// For subclass of [`FwResp`][crate::FwResp]. mod fw_resp; /// For convenience to provide traits and their blanket implementations to write subclass. |