Skip to content

Commit

Permalink
gio: Ignore g_dbus_connection_register_object_with_closures2() for now
Browse files Browse the repository at this point in the history
The old version works equally well for us.
  • Loading branch information
sdroege committed Feb 25, 2025
1 parent b7b5412 commit 2beaa6e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 34 deletions.
5 changes: 5 additions & 0 deletions gio/Gir.toml
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,11 @@ status = "generate"
pattern = "signal_.*subscribe"
#wrapped with newtype manually
manual = true
[[object.function]]
name = "register_object_with_closures2"
#old version is wrapped correctly and we don't require
#the new version
ignore = true

[[object]]
name = "Gio.DBusConnectionFlags"
Expand Down
34 changes: 0 additions & 34 deletions gio/src/auto/dbus_connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
// DO NOT EDIT
#![allow(deprecated)]

#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
use crate::DBusInterfaceInfo;
#[cfg(unix)]
#[cfg_attr(docsrs, doc(cfg(unix)))]
use crate::UnixFDList;
Expand Down Expand Up @@ -652,37 +649,6 @@ impl DBusConnection {
unsafe { from_glib(ffi::g_dbus_connection_is_closed(self.to_glib_none().0)) }
}

#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
#[doc(alias = "g_dbus_connection_register_object_with_closures2")]
pub fn register_object_with_closures2(
&self,
object_path: &str,
interface_info: &DBusInterfaceInfo,
method_call_closure: Option<&glib::Closure>,
get_property_closure: Option<&glib::Closure>,
set_property_closure: Option<&glib::Closure>,
) -> Result<(), glib::Error> {
unsafe {
let mut error = std::ptr::null_mut();
let is_ok = ffi::g_dbus_connection_register_object_with_closures2(
self.to_glib_none().0,
object_path.to_glib_none().0,
interface_info.to_glib_none().0,
method_call_closure.to_glib_none().0,
get_property_closure.to_glib_none().0,
set_property_closure.to_glib_none().0,
&mut error,
);
debug_assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null());
if error.is_null() {
Ok(())
} else {
Err(from_glib_full(error))
}
}
}

#[doc(alias = "g_dbus_connection_send_message")]
pub fn send_message(
&self,
Expand Down

0 comments on commit 2beaa6e

Please sign in to comment.