Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 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
4 changes: 2 additions & 2 deletions 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 @ 3491754499c3)
from gir-files (https://github.com/gtk-rs/gir-files @ 168ef52b26a2)
Generated by gir (https://github.com/gtk-rs/gir @ 5ce24253f28c)
from gir-files (https://github.com/gtk-rs/gir-files @ 545a98946996)
4 changes: 2 additions & 2 deletions 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 @ 3491754499c3)
from gir-files (https://github.com/gtk-rs/gir-files @ 168ef52b26a2)
Generated by gir (https://github.com/gtk-rs/gir @ 5ce24253f28c)
from gir-files (https://github.com/gtk-rs/gir-files @ 545a98946996)
35 changes: 35 additions & 0 deletions gio/src/auto/dbus_connection.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// 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 @@ -648,6 +652,37 @@ 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
4 changes: 2 additions & 2 deletions 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 @ 3491754499c3)
from gir-files (https://github.com/gtk-rs/gir-files @ 168ef52b26a2)
Generated by gir (https://github.com/gtk-rs/gir @ 5ce24253f28c)
from gir-files (https://github.com/gtk-rs/gir-files @ 545a98946996)
11 changes: 11 additions & 0 deletions gio/sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10880,6 +10880,17 @@ extern "C" {
set_property_closure: *mut gobject::GClosure,
error: *mut *mut glib::GError,
) -> c_uint;
#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
pub fn g_dbus_connection_register_object_with_closures2(
connection: *mut GDBusConnection,
object_path: *const c_char,
interface_info: *mut GDBusInterfaceInfo,
method_call_closure: *mut gobject::GClosure,
get_property_closure: *mut gobject::GClosure,
set_property_closure: *mut gobject::GClosure,
error: *mut *mut glib::GError,
) -> c_uint;
pub fn g_dbus_connection_register_subtree(
connection: *mut GDBusConnection,
object_path: *const c_char,
Expand Down
4 changes: 2 additions & 2 deletions 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 @ 3491754499c3)
from gir-files (https://github.com/gtk-rs/gir-files @ 168ef52b26a2)
Generated by gir (https://github.com/gtk-rs/gir @ 5ce24253f28c)
from gir-files (https://github.com/gtk-rs/gir-files @ 545a98946996)
2 changes: 1 addition & 1 deletion gir-files
Submodule gir-files updated 5 files
+1 −1 GLib-2.0.gir
+553 −90 Gdk-4.0.gir
+78 −2 Gio-2.0.gir
+25 −29 Gsk-4.0.gir
+755 −535 Gtk-4.0.gir
4 changes: 2 additions & 2 deletions 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 @ 3491754499c3)
from gir-files (https://github.com/gtk-rs/gir-files @ 168ef52b26a2)
Generated by gir (https://github.com/gtk-rs/gir @ 5ce24253f28c)
from gir-files (https://github.com/gtk-rs/gir-files @ 545a98946996)
4 changes: 2 additions & 2 deletions 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 @ 3491754499c3)
from gir-files (https://github.com/gtk-rs/gir-files @ 168ef52b26a2)
Generated by gir (https://github.com/gtk-rs/gir @ 5ce24253f28c)
from gir-files (https://github.com/gtk-rs/gir-files @ 545a98946996)
4 changes: 2 additions & 2 deletions 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 @ 3491754499c3)
from gir-files (https://github.com/gtk-rs/gir-files @ 168ef52b26a2)
Generated by gir (https://github.com/gtk-rs/gir @ 5ce24253f28c)
from gir-files (https://github.com/gtk-rs/gir-files @ 545a98946996)
4 changes: 2 additions & 2 deletions 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 @ 3491754499c3)
from gir-files (https://github.com/gtk-rs/gir-files @ 168ef52b26a2)
Generated by gir (https://github.com/gtk-rs/gir @ 5ce24253f28c)
from gir-files (https://github.com/gtk-rs/gir-files @ 545a98946996)
4 changes: 2 additions & 2 deletions 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 @ 3491754499c3)
from gir-files (https://github.com/gtk-rs/gir-files @ 168ef52b26a2)
Generated by gir (https://github.com/gtk-rs/gir @ 5ce24253f28c)
from gir-files (https://github.com/gtk-rs/gir-files @ 545a98946996)
4 changes: 2 additions & 2 deletions 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 @ 3491754499c3)
from gir-files (https://github.com/gtk-rs/gir-files @ 168ef52b26a2)
Generated by gir (https://github.com/gtk-rs/gir @ 5ce24253f28c)
from gir-files (https://github.com/gtk-rs/gir-files @ 545a98946996)
4 changes: 2 additions & 2 deletions 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 @ 3491754499c3)
from gir-files (https://github.com/gtk-rs/gir-files @ 168ef52b26a2)
Generated by gir (https://github.com/gtk-rs/gir @ 5ce24253f28c)
from gir-files (https://github.com/gtk-rs/gir-files @ 545a98946996)
4 changes: 2 additions & 2 deletions 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 @ 3491754499c3)
from gir-files (https://github.com/gtk-rs/gir-files @ 168ef52b26a2)
Generated by gir (https://github.com/gtk-rs/gir @ 5ce24253f28c)
from gir-files (https://github.com/gtk-rs/gir-files @ 545a98946996)
4 changes: 2 additions & 2 deletions 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 @ 3491754499c3)
from gir-files (https://github.com/gtk-rs/gir-files @ 168ef52b26a2)
Generated by gir (https://github.com/gtk-rs/gir @ 5ce24253f28c)
from gir-files (https://github.com/gtk-rs/gir-files @ 545a98946996)