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
2 changes: 1 addition & 1 deletion gdk-pixbuf/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ b3d444a058cf)
from gir-files (https://github.com/gtk-rs/gir-files @ 4453f2993956)
from gir-files (https://github.com/gtk-rs/gir-files @ 5c1e490fe50a)
2 changes: 1 addition & 1 deletion gdk-pixbuf/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ b3d444a058cf)
from gir-files (https://github.com/gtk-rs/gir-files @ 4453f2993956)
from gir-files (https://github.com/gtk-rs/gir-files @ 5c1e490fe50a)
4 changes: 4 additions & 0 deletions gio/Gir.toml
Original file line number Diff line number Diff line change
Expand Up @@ -950,6 +950,10 @@ concurrency = "send+sync"
name = "new_from_bytes"
# broken and needs some closer integration with the corresponding std types
manual = true
[[object.function]]
name = "new_from_bytes_with_ipv6_info"
# broken and needs some closer integration with the corresponding std types
manual = true

[[object.function]]
name = "to_bytes"
Expand Down
17 changes: 17 additions & 0 deletions gio/src/auto/inet_address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ pub trait InetAddressExt: IsA<InetAddress> + 'static {
}
}

#[cfg(feature = "v2_86")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_86")))]
#[doc(alias = "g_inet_address_get_flowinfo")]
#[doc(alias = "get_flowinfo")]
fn flowinfo(&self) -> u32 {
unsafe { ffi::g_inet_address_get_flowinfo(self.as_ref().to_glib_none().0) }
}

#[doc(alias = "g_inet_address_get_is_any")]
#[doc(alias = "get_is_any")]
#[doc(alias = "is-any")]
Expand Down Expand Up @@ -186,6 +194,15 @@ pub trait InetAddressExt: IsA<InetAddress> + 'static {
unsafe { ffi::g_inet_address_get_native_size(self.as_ref().to_glib_none().0) }
}

#[cfg(feature = "v2_86")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_86")))]
#[doc(alias = "g_inet_address_get_scope_id")]
#[doc(alias = "get_scope_id")]
#[doc(alias = "scope-id")]
fn scope_id(&self) -> u32 {
unsafe { ffi::g_inet_address_get_scope_id(self.as_ref().to_glib_none().0) }
}

#[doc(alias = "g_inet_address_to_string")]
#[doc(alias = "to_string")]
fn to_str(&self) -> glib::GString {
Expand Down
2 changes: 1 addition & 1 deletion gio/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ b3d444a058cf)
from gir-files (https://github.com/gtk-rs/gir-files @ 4453f2993956)
from gir-files (https://github.com/gtk-rs/gir-files @ 5c1e490fe50a)
25 changes: 25 additions & 0 deletions gio/src/inet_address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,31 @@ impl InetAddress {
))
}
}

#[cfg(feature = "v2_86")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_86")))]
#[doc(alias = "g_inet_address_new_from_bytes_with_ipv6_info")]
#[doc(alias = "new_from_bytes_with_ipv6_info")]
pub fn from_bytes_with_ipv6_info(
inet_address_bytes: InetAddressBytes,
flowinfo: u32,
scope_id: u32,
) -> InetAddress {
let bytes = inet_address_bytes.deref();

let family = match inet_address_bytes {
InetAddressBytes::V4(_) => SocketFamily::Ipv4,
InetAddressBytes::V6(_) => SocketFamily::Ipv6,
};
unsafe {
from_glib_full(ffi::g_inet_address_new_from_bytes_with_ipv6_info(
bytes.to_glib_none().0,
family.into_glib(),
flowinfo,
scope_id,
))
}
}
}

pub trait InetAddressExtManual: IsA<InetAddress> + 'static {
Expand Down
14 changes: 14 additions & 0 deletions gio/sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12236,13 +12236,24 @@ extern "C" {
bytes: *const u8,
family: GSocketFamily,
) -> *mut GInetAddress;
#[cfg(feature = "v2_86")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_86")))]
pub fn g_inet_address_new_from_bytes_with_ipv6_info(
bytes: *const u8,
family: GSocketFamily,
flowinfo: u32,
scope_id: u32,
) -> *mut GInetAddress;
pub fn g_inet_address_new_from_string(string: *const c_char) -> *mut GInetAddress;
pub fn g_inet_address_new_loopback(family: GSocketFamily) -> *mut GInetAddress;
pub fn g_inet_address_equal(
address: *mut GInetAddress,
other_address: *mut GInetAddress,
) -> gboolean;
pub fn g_inet_address_get_family(address: *mut GInetAddress) -> GSocketFamily;
#[cfg(feature = "v2_86")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_86")))]
pub fn g_inet_address_get_flowinfo(address: *mut GInetAddress) -> u32;
pub fn g_inet_address_get_is_any(address: *mut GInetAddress) -> gboolean;
pub fn g_inet_address_get_is_link_local(address: *mut GInetAddress) -> gboolean;
pub fn g_inet_address_get_is_loopback(address: *mut GInetAddress) -> gboolean;
Expand All @@ -12254,6 +12265,9 @@ extern "C" {
pub fn g_inet_address_get_is_multicast(address: *mut GInetAddress) -> gboolean;
pub fn g_inet_address_get_is_site_local(address: *mut GInetAddress) -> gboolean;
pub fn g_inet_address_get_native_size(address: *mut GInetAddress) -> size_t;
#[cfg(feature = "v2_86")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_86")))]
pub fn g_inet_address_get_scope_id(address: *mut GInetAddress) -> u32;
pub fn g_inet_address_to_bytes(address: *mut GInetAddress) -> *const u8;
pub fn g_inet_address_to_string(address: *mut GInetAddress) -> *mut c_char;

Expand Down
2 changes: 1 addition & 1 deletion gio/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ b3d444a058cf)
from gir-files (https://github.com/gtk-rs/gir-files @ 4453f2993956)
from gir-files (https://github.com/gtk-rs/gir-files @ 5c1e490fe50a)
2 changes: 1 addition & 1 deletion gir-files
Submodule gir-files updated 3 files
+92 −12 Gio-2.0.gir
+91 −0 Gsk-4.0.gir
+1 −1 Gtk-4.0.gir
2 changes: 1 addition & 1 deletion glib/gobject-sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ b3d444a058cf)
from gir-files (https://github.com/gtk-rs/gir-files @ 4453f2993956)
from gir-files (https://github.com/gtk-rs/gir-files @ 5c1e490fe50a)
2 changes: 1 addition & 1 deletion glib/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ b3d444a058cf)
from gir-files (https://github.com/gtk-rs/gir-files @ 4453f2993956)
from gir-files (https://github.com/gtk-rs/gir-files @ 5c1e490fe50a)
2 changes: 1 addition & 1 deletion glib/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ b3d444a058cf)
from gir-files (https://github.com/gtk-rs/gir-files @ 4453f2993956)
from gir-files (https://github.com/gtk-rs/gir-files @ 5c1e490fe50a)
2 changes: 1 addition & 1 deletion graphene/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ b3d444a058cf)
from gir-files (https://github.com/gtk-rs/gir-files @ 4453f2993956)
from gir-files (https://github.com/gtk-rs/gir-files @ 5c1e490fe50a)
2 changes: 1 addition & 1 deletion graphene/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ b3d444a058cf)
from gir-files (https://github.com/gtk-rs/gir-files @ 4453f2993956)
from gir-files (https://github.com/gtk-rs/gir-files @ 5c1e490fe50a)
2 changes: 1 addition & 1 deletion pango/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ b3d444a058cf)
from gir-files (https://github.com/gtk-rs/gir-files @ 4453f2993956)
from gir-files (https://github.com/gtk-rs/gir-files @ 5c1e490fe50a)
2 changes: 1 addition & 1 deletion pango/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ b3d444a058cf)
from gir-files (https://github.com/gtk-rs/gir-files @ 4453f2993956)
from gir-files (https://github.com/gtk-rs/gir-files @ 5c1e490fe50a)
2 changes: 1 addition & 1 deletion pangocairo/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ b3d444a058cf)
from gir-files (https://github.com/gtk-rs/gir-files @ 4453f2993956)
from gir-files (https://github.com/gtk-rs/gir-files @ 5c1e490fe50a)
2 changes: 1 addition & 1 deletion pangocairo/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ b3d444a058cf)
from gir-files (https://github.com/gtk-rs/gir-files @ 4453f2993956)
from gir-files (https://github.com/gtk-rs/gir-files @ 5c1e490fe50a)
Loading