mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-06-18 16:08:32 +02:00
dbus-monitor: Disable automatic message filtering
This commit is contained in:
parent
caf532c3d0
commit
c4573311dd
2 changed files with 5 additions and 2 deletions
|
|
@ -28,6 +28,8 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
#include "dbus/dbus-connection-internal.h"
|
||||
|
||||
#include "test-utils-glib.h"
|
||||
|
||||
typedef struct {
|
||||
|
|
@ -505,7 +507,7 @@ become_monitor (Fixture *f,
|
|||
int i;
|
||||
dbus_uint32_t zero = 0;
|
||||
|
||||
dbus_connection_set_route_peer_messages (f->monitor, TRUE);
|
||||
_dbus_connection_set_builtin_filters_enabled (f->monitor, FALSE);
|
||||
|
||||
if (config == NULL)
|
||||
config = f->config;
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
|
||||
#include <config.h>
|
||||
|
||||
#include "dbus/dbus-connection-internal.h"
|
||||
#include "dbus/dbus-internals.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
@ -494,7 +495,7 @@ main (int argc, char *argv[])
|
|||
/* Receive o.fd.Peer messages as normal messages, rather than having
|
||||
* libdbus handle them internally, which is the wrong thing for
|
||||
* a monitor */
|
||||
dbus_connection_set_route_peer_messages (connection, TRUE);
|
||||
_dbus_connection_set_builtin_filters_enabled (connection, FALSE);
|
||||
|
||||
if (!dbus_connection_add_filter (connection, filter_func,
|
||||
_DBUS_INT_TO_POINTER (binary_mode), NULL))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue