功能
GioDBusErrorset_dbus_error
自2.26以来
声明 [src]
void
g_dbus_error_set_dbus_error (
GError** error,
const gchar* dbus_error_name,
const gchar* dbus_error_message,
const gchar* format,
...
)
描述 [src]
如果 error 是 NULL,则不执行任何操作。否则,使用带有 dbus_error_message 的 format(除非为 NULL)作为前缀,将 *error 设置为新创建的 GError(使用 g_dbus_error_new_for_dbus_error())。
自2.26以来可用
此函数不可直接提供给语言绑定。
参数
error-
类型:
GError指向一个
GError或NULL的指针。数据由函数的调用者拥有。 dbus_error_name-
类型:
const gchar*D-Bus 错误名。
数据由函数的调用者拥有。 值是一个空终止的UTF-8字符串。 dbus_error_message-
类型:
const gchar*D-Bus 错误信息。
数据由函数的调用者拥有。 值是一个空终止的UTF-8字符串。 format-
类型:
const gchar*Printf() 风格格式,用于
dbus_error_message的前缀或NULL。参数可以 NULL。数据由函数的调用者拥有。 值是一个空终止的UTF-8字符串。 ...-
类型:
format的参数。