gdbus-monitor-接口`< none>` [英] gdbus-monitor - interface `<none>`
问题描述
gdbus-monitor
中的接口<none>
是否输出特殊含义?
使用GDbus
创建这样的消息需要什么API调用(g_dbus_connection_register_object
不允许将NULL
传递为GDBusInterfaceInfo *
,并且这似乎是将对象注册到路径的唯一方法)>
与
查看dbus-monitor
的 DBUS_EXPORT const char * dbus_message_get_interface ( DBusMessage * message )
返回NULL
(有效!, http://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-types ).
g_dbus_message_new_method_call (...)
允许interface_
为空.但这仍然只能解决一半的问题(发送方).对于interface_
是NULL
,似乎不存在接收方方法.
原来是一个错误,我进行了源代码调查并提交了一个错误(包括修复程序)dbus - register object to remote on interface NULL
Looking into dbus-monitor
's source code shows that it occures as soon as DBUS_EXPORT const char * dbus_message_get_interface ( DBusMessage * message )
returns NULL
(which is valid!, but not according to the spec which requires minimum one .
and two name chunks!! EDIT: A noteable exception are method calls which do not require the interface field of a message to be set http://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-types).
g_dbus_message_new_method_call (...)
allows interface_
to be null. But that still only solves half the problems (sender). The receiver method seems to not exist for interface_
s being NULL
.
Turns out it is a bug, I did a source code investigation and filed a bug (including fix) https://bugzilla.gnome.org/show_bug.cgi?id=706675
这篇关于gdbus-monitor-接口`< none>`的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!