函数
Giobus_own_name_on_connection_with_closures
since: 2.26
声明 [src]
guint
g_bus_own_name_on_connection_with_closures (
GDBusConnection* connection,
const gchar* name,
GBusNameOwnerFlags flags,
GClosure* name_acquired_closure,
GClosure* name_lost_closure
)
描述 [src]
g_bus_own_name_on_connection() 的版本,使用闭包而不是回调以使在其他语言中绑定更容易。
自以下版本可用:2.26
在语言绑定中,此函数被重新命名为 g_bus_own_name_on_connection()。
参数
连接-
类型:
GDBusConnection一个
GDBusConnection。数据由函数的调用者所有。 名称-
类型:
const gchar*要拥有的众所周知 名称。
数据由函数的调用者所有。 该值是 NUL 终止的 UTF-8 字符串。 标志-
来自
GBusNameOwnerFlags枚举的一组 flags。 已获取 name 闭包-
类型:
GClosure在获取
name或NULL时调用的GClosure。参数可以为 NULL。数据由函数的调用者所有。 已丢失 name 闭包-
类型:
GClosure在丢失
name或NULL时调用的GClosure。参数可以为 NULL。数据由函数的调用者所有。