@@ -22,6 +22,76 @@ type DBusProxyTypeFn = Box<
2222> ;
2323
2424impl DBusObjectManagerClient {
25+ #[ doc( alias = "g_dbus_object_manager_client_new_sync" ) ]
26+ pub fn new_sync (
27+ connection : & DBusConnection ,
28+ flags : DBusObjectManagerClientFlags ,
29+ name : Option < & str > ,
30+ object_path : & str ,
31+ cancellable : Option < & impl IsA < Cancellable > > ,
32+ ) -> Result < DBusObjectManagerClient , glib:: Error > {
33+ Self :: new_sync_impl ( connection, flags, name, object_path, None , cancellable)
34+ }
35+
36+ #[ doc( alias = "g_dbus_object_manager_client_new_sync" ) ]
37+ pub fn new_sync_with_fn <
38+ F : Fn ( & DBusObjectManagerClient , & str , Option < & str > ) -> glib:: types:: Type
39+ + Send
40+ + Sync
41+ + ' static ,
42+ > (
43+ connection : & DBusConnection ,
44+ flags : DBusObjectManagerClientFlags ,
45+ name : Option < & str > ,
46+ object_path : & str ,
47+ get_proxy_type_func : F ,
48+ cancellable : Option < & impl IsA < Cancellable > > ,
49+ ) -> Result < DBusObjectManagerClient , glib:: Error > {
50+ Self :: new_sync_impl (
51+ connection,
52+ flags,
53+ name,
54+ object_path,
55+ Some ( Box :: new ( get_proxy_type_func) ) ,
56+ cancellable,
57+ )
58+ }
59+
60+ #[ doc( alias = "g_dbus_object_manager_client_new_for_bus_sync" ) ]
61+ pub fn for_bus_sync (
62+ bus_type : BusType ,
63+ flags : DBusObjectManagerClientFlags ,
64+ name : & str ,
65+ object_path : & str ,
66+ cancellable : Option < & impl IsA < Cancellable > > ,
67+ ) -> Result < DBusObjectManagerClient , glib:: Error > {
68+ Self :: for_bus_sync_impl ( bus_type, flags, name, object_path, None , cancellable)
69+ }
70+
71+ #[ doc( alias = "g_dbus_object_manager_client_new_for_bus_sync" ) ]
72+ pub fn for_bus_sync_with_fn <
73+ F : Fn ( & DBusObjectManagerClient , & str , Option < & str > ) -> glib:: types:: Type
74+ + Send
75+ + Sync
76+ + ' static ,
77+ > (
78+ bus_type : BusType ,
79+ flags : DBusObjectManagerClientFlags ,
80+ name : & str ,
81+ object_path : & str ,
82+ get_proxy_type_func : F ,
83+ cancellable : Option < & impl IsA < Cancellable > > ,
84+ ) -> Result < DBusObjectManagerClient , glib:: Error > {
85+ Self :: for_bus_sync_impl (
86+ bus_type,
87+ flags,
88+ name,
89+ object_path,
90+ Some ( Box :: new ( get_proxy_type_func) ) ,
91+ cancellable,
92+ )
93+ }
94+
2595 // The checker tries to add a doc alias for `g_dbus_object_manager_client_new_finish`.
2696 // checker-ignore-item
2797 #[ doc( alias = "g_dbus_object_manager_client_new" ) ]
0 commit comments