mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-03 17:08:12 +02:00
dbus-monitor: remove redundant match rules
Currently, DBus Specification only consists of four message types, so to monitor all the types of message, no need to match all of them but just left it empty is OK. Signed-off-by: Chengwei Yang <chengwei.yang@intel.com> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=66107 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
This commit is contained in:
parent
4b4d0f969b
commit
1451f946c1
1 changed files with 1 additions and 16 deletions
|
|
@ -383,22 +383,7 @@ main (int argc, char *argv[])
|
|||
else
|
||||
{
|
||||
dbus_bus_add_match (connection,
|
||||
EAVESDROPPING_RULE ",type='signal'",
|
||||
&error);
|
||||
if (dbus_error_is_set (&error))
|
||||
goto lose;
|
||||
dbus_bus_add_match (connection,
|
||||
EAVESDROPPING_RULE ",type='method_call'",
|
||||
&error);
|
||||
if (dbus_error_is_set (&error))
|
||||
goto lose;
|
||||
dbus_bus_add_match (connection,
|
||||
EAVESDROPPING_RULE ",type='method_return'",
|
||||
&error);
|
||||
if (dbus_error_is_set (&error))
|
||||
goto lose;
|
||||
dbus_bus_add_match (connection,
|
||||
EAVESDROPPING_RULE ",type='error'",
|
||||
EAVESDROPPING_RULE,
|
||||
&error);
|
||||
if (dbus_error_is_set (&error))
|
||||
goto lose;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue