Skip to content

Commit 889cc7e

Browse files
authored
Merge pull request #1764 from gtk-rs/auto-pr-branch
Automated PR: Changes from updating gir/gir-files
2 parents 0b67019 + 54287df commit 889cc7e

File tree

18 files changed

+74
-14
lines changed

18 files changed

+74
-14
lines changed

gdk-pixbuf/src/auto/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Generated by gir (https://github.com/gtk-rs/gir @ b3d444a058cf)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 4453f2993956)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 5c1e490fe50a)

gdk-pixbuf/sys/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Generated by gir (https://github.com/gtk-rs/gir @ b3d444a058cf)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 4453f2993956)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 5c1e490fe50a)

gio/Gir.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -950,6 +950,10 @@ concurrency = "send+sync"
950950
name = "new_from_bytes"
951951
# broken and needs some closer integration with the corresponding std types
952952
manual = true
953+
[[object.function]]
954+
name = "new_from_bytes_with_ipv6_info"
955+
# broken and needs some closer integration with the corresponding std types
956+
manual = true
953957

954958
[[object.function]]
955959
name = "to_bytes"

gio/src/auto/inet_address.rs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@ pub trait InetAddressExt: IsA<InetAddress> + 'static {
7070
}
7171
}
7272

73+
#[cfg(feature = "v2_86")]
74+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_86")))]
75+
#[doc(alias = "g_inet_address_get_flowinfo")]
76+
#[doc(alias = "get_flowinfo")]
77+
fn flowinfo(&self) -> u32 {
78+
unsafe { ffi::g_inet_address_get_flowinfo(self.as_ref().to_glib_none().0) }
79+
}
80+
7381
#[doc(alias = "g_inet_address_get_is_any")]
7482
#[doc(alias = "get_is_any")]
7583
#[doc(alias = "is-any")]
@@ -186,6 +194,15 @@ pub trait InetAddressExt: IsA<InetAddress> + 'static {
186194
unsafe { ffi::g_inet_address_get_native_size(self.as_ref().to_glib_none().0) }
187195
}
188196

197+
#[cfg(feature = "v2_86")]
198+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_86")))]
199+
#[doc(alias = "g_inet_address_get_scope_id")]
200+
#[doc(alias = "get_scope_id")]
201+
#[doc(alias = "scope-id")]
202+
fn scope_id(&self) -> u32 {
203+
unsafe { ffi::g_inet_address_get_scope_id(self.as_ref().to_glib_none().0) }
204+
}
205+
189206
#[doc(alias = "g_inet_address_to_string")]
190207
#[doc(alias = "to_string")]
191208
fn to_str(&self) -> glib::GString {

gio/src/auto/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Generated by gir (https://github.com/gtk-rs/gir @ b3d444a058cf)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 4453f2993956)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 5c1e490fe50a)

gio/src/inet_address.rs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,31 @@ impl InetAddress {
4040
))
4141
}
4242
}
43+
44+
#[cfg(feature = "v2_86")]
45+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_86")))]
46+
#[doc(alias = "g_inet_address_new_from_bytes_with_ipv6_info")]
47+
#[doc(alias = "new_from_bytes_with_ipv6_info")]
48+
pub fn from_bytes_with_ipv6_info(
49+
inet_address_bytes: InetAddressBytes,
50+
flowinfo: u32,
51+
scope_id: u32,
52+
) -> InetAddress {
53+
let bytes = inet_address_bytes.deref();
54+
55+
let family = match inet_address_bytes {
56+
InetAddressBytes::V4(_) => SocketFamily::Ipv4,
57+
InetAddressBytes::V6(_) => SocketFamily::Ipv6,
58+
};
59+
unsafe {
60+
from_glib_full(ffi::g_inet_address_new_from_bytes_with_ipv6_info(
61+
bytes.to_glib_none().0,
62+
family.into_glib(),
63+
flowinfo,
64+
scope_id,
65+
))
66+
}
67+
}
4368
}
4469

4570
pub trait InetAddressExtManual: IsA<InetAddress> + 'static {

gio/sys/src/lib.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12236,13 +12236,24 @@ extern "C" {
1223612236
bytes: *const u8,
1223712237
family: GSocketFamily,
1223812238
) -> *mut GInetAddress;
12239+
#[cfg(feature = "v2_86")]
12240+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_86")))]
12241+
pub fn g_inet_address_new_from_bytes_with_ipv6_info(
12242+
bytes: *const u8,
12243+
family: GSocketFamily,
12244+
flowinfo: u32,
12245+
scope_id: u32,
12246+
) -> *mut GInetAddress;
1223912247
pub fn g_inet_address_new_from_string(string: *const c_char) -> *mut GInetAddress;
1224012248
pub fn g_inet_address_new_loopback(family: GSocketFamily) -> *mut GInetAddress;
1224112249
pub fn g_inet_address_equal(
1224212250
address: *mut GInetAddress,
1224312251
other_address: *mut GInetAddress,
1224412252
) -> gboolean;
1224512253
pub fn g_inet_address_get_family(address: *mut GInetAddress) -> GSocketFamily;
12254+
#[cfg(feature = "v2_86")]
12255+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_86")))]
12256+
pub fn g_inet_address_get_flowinfo(address: *mut GInetAddress) -> u32;
1224612257
pub fn g_inet_address_get_is_any(address: *mut GInetAddress) -> gboolean;
1224712258
pub fn g_inet_address_get_is_link_local(address: *mut GInetAddress) -> gboolean;
1224812259
pub fn g_inet_address_get_is_loopback(address: *mut GInetAddress) -> gboolean;
@@ -12254,6 +12265,9 @@ extern "C" {
1225412265
pub fn g_inet_address_get_is_multicast(address: *mut GInetAddress) -> gboolean;
1225512266
pub fn g_inet_address_get_is_site_local(address: *mut GInetAddress) -> gboolean;
1225612267
pub fn g_inet_address_get_native_size(address: *mut GInetAddress) -> size_t;
12268+
#[cfg(feature = "v2_86")]
12269+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_86")))]
12270+
pub fn g_inet_address_get_scope_id(address: *mut GInetAddress) -> u32;
1225712271
pub fn g_inet_address_to_bytes(address: *mut GInetAddress) -> *const u8;
1225812272
pub fn g_inet_address_to_string(address: *mut GInetAddress) -> *mut c_char;
1225912273

gio/sys/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Generated by gir (https://github.com/gtk-rs/gir @ b3d444a058cf)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 4453f2993956)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 5c1e490fe50a)

glib/gobject-sys/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Generated by gir (https://github.com/gtk-rs/gir @ b3d444a058cf)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 4453f2993956)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 5c1e490fe50a)

0 commit comments

Comments
 (0)