函数
Giobus_own_name_with_closures
since: 2.26
声明 [源码]
guint
g_bus_own_name_with_closures (
GBusType bus_type,
const gchar* name,
GBusNameOwnerFlags flags,
GClosure* bus_acquired_closure,
GClosure* name_acquired_closure,
GClosure* name_lost_closure
)
参数
bus_type-
类型:
GBusType拥有名称的bus类型。
name-
类型: `const gchar*`
要拥有的已知名称。
数据由函数的调用者拥有。 该值是一个以NUL结尾的UTF-8字符串。 flags-
来自`GBusNameOwnerFlags`枚举集的标志。
bus_acquired_closure-
类型:
GClosure当连接到类型为`bus_type`的bus时调用的
GClosure或`NULL`。参数可以是`NULL`。 数据由函数的调用者拥有。 name_acquired_closure-
类型:
GClosure在`name`被获取时调用的`GClosure`或`NULL`。
参数可以是`NULL`。 数据由函数的调用者拥有。 name_lost_closure-
类型:
GClosure在`name`丢失时调用的`GClosure`或`NULL`。
参数可以是`NULL`。 数据由函数的调用者拥有。