Skip to content

Commit 267e593

Browse files
glib/ffi: Ignore g_atomic_int_get
As it gets mis-generated and we don't really make use of that..
1 parent d6cb9cb commit 267e593

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

glib/sys/Gir.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ status = "generate"
7474
# see https://gitlab.gnome.org/GNOME/glib/-/issues/3231 + majority of those are available through std
7575
ignore = true
7676
[[object.function]]
77+
name = "atomic_int_get"
78+
# generates a type using *const volatile instead of *const gint or so.
79+
ignore = true
80+
[[object.function]]
7781
name = "unix_get_passwd_entry"
7882
cfg_condition = "unix"
7983
[[object.function]]

glib/sys/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6280,7 +6280,6 @@ extern "C" {
62806280
#[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
62816281
pub fn g_atomic_int_exchange(atomic: *mut gint, newval: c_int) -> c_int;
62826282
pub fn g_atomic_int_exchange_and_add(atomic: *mut gint, val: c_int) -> c_int;
6283-
pub fn g_atomic_int_get(atomic: *const volatile) -> c_int;
62846283
pub fn g_atomic_int_inc(atomic: *mut gint);
62856284
pub fn g_atomic_int_or(atomic: *mut guint, val: c_uint) -> c_uint;
62866285
pub fn g_atomic_int_set(atomic: *mut gint, newval: c_int);

0 commit comments

Comments
 (0)