函数
GioDBusInterfaceSetPropertyFunc
自 2.26 起
声明
gboolean
(* GDBusInterfaceSetPropertyFunc) (
GDBusConnection* connection,
const gchar* sender,
const gchar* object_path,
const gchar* interface_name,
const gchar* property_name,
GVariant* value,
GError** error,
gpointer user_data
)
参数
connection-
类型:
GDBusConnection一个
GDBusConnection。数据归函数调用者所有。 sender-
类型:
const gchar*远程调用者的唯一总线名称,如果调用者未指定(例如对等连接),则为
NULL。参数可以为 NULL。数据归函数调用者所有。 值为 NUL 终止的 UTF-8 字符串。 object_path-
类型:
const gchar*在其上调用该方法的对象路径。
数据归函数调用者所有。 值为 NUL 终止的 UTF-8 字符串。 interface_name-
类型:
const gchar*用于该属性的 D-Bus 接口名称。
数据归函数调用者所有。 值为 NUL 终止的 UTF-8 字符串。 property_name-
类型:
const gchar*获取值的属性的名称。
数据归函数调用者所有。 值为 NUL 终止的 UTF-8 字符串。 value-
类型:
GVariant将属性设置为该值的属性。
数据归函数调用者所有。 error-
类型:
GError错误的返回位置。
数据归函数调用者所有。 user_data-
类型:
gpointer传递给 g_dbus_connection_register_object() 的
user_data#gpointer。参数可以为 NULL。数据归函数调用者所有。