Skip to content

Commit

Permalink
gio/sys: Ignore ThreadResolver
Browse files Browse the repository at this point in the history
Fixes the ffi tests
  • Loading branch information
bilelmoussaoui committed Jan 25, 2024
1 parent 521bdf0 commit 17dcc90
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 22 deletions.
4 changes: 4 additions & 0 deletions gio/sys/Gir.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ external_libraries = [
"GObject",
]

ignore = [
"Gio.ThreadedResolverClass"
]

[[object]]
name = "Gio.SocketFamily"
status = "manual"
Expand Down
14 changes: 0 additions & 14 deletions gio/sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6168,20 +6168,6 @@ pub struct _GThemedIconClass {

pub type GThemedIconClass = _GThemedIconClass;

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GThreadedResolverClass {
pub parent_class: GResolverClass,
}

impl ::std::fmt::Debug for GThreadedResolverClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GThreadedResolverClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.finish()
}
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct GThreadedSocketServiceClass {
Expand Down
7 changes: 0 additions & 7 deletions gio/sys/tests/abi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1895,13 +1895,6 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GTestDBusFlags>(),
},
),
(
"GThreadedResolverClass",
Layout {
size: size_of::<GThreadedResolverClass>(),
alignment: align_of::<GThreadedResolverClass>(),
},
),
(
"GThreadedSocketService",
Layout {
Expand Down
1 change: 0 additions & 1 deletion gio/sys/tests/layout.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,6 @@ int main() {
printf("%s;%zu;%zu\n", "GTcpWrapperConnection", sizeof(GTcpWrapperConnection), alignof(GTcpWrapperConnection));
printf("%s;%zu;%zu\n", "GTcpWrapperConnectionClass", sizeof(GTcpWrapperConnectionClass), alignof(GTcpWrapperConnectionClass));
printf("%s;%zu;%zu\n", "GTestDBusFlags", sizeof(GTestDBusFlags), alignof(GTestDBusFlags));
printf("%s;%zu;%zu\n", "GThreadedResolverClass", sizeof(GThreadedResolverClass), alignof(GThreadedResolverClass));
printf("%s;%zu;%zu\n", "GThreadedSocketService", sizeof(GThreadedSocketService), alignof(GThreadedSocketService));
printf("%s;%zu;%zu\n", "GThreadedSocketServiceClass", sizeof(GThreadedSocketServiceClass), alignof(GThreadedSocketServiceClass));
printf("%s;%zu;%zu\n", "GTlsAuthenticationMode", sizeof(GTlsAuthenticationMode), alignof(GTlsAuthenticationMode));
Expand Down

0 comments on commit 17dcc90

Please sign in to comment.