summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-04-18 19:05:10 +0200
committerKay Sievers <kay@vrfy.org>2013-04-18 19:05:10 +0200
commitb030d1f86443ba535dd257cb30826b813f291138 (patch)
tree8d598cf15344d45c686c857fc459df05fca03564 /src
parenta2cef833cf46ee9ec35a4e4e4861944b25cd9a23 (diff)
bus: test - add hack to receive messages
Diffstat (limited to 'src')
-rw-r--r--src/libsystemd-bus/test-bus-kernel.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libsystemd-bus/test-bus-kernel.c b/src/libsystemd-bus/test-bus-kernel.c
index 5a5d9fc252..ffabdcbd14 100644
--- a/src/libsystemd-bus/test-bus-kernel.c
+++ b/src/libsystemd-bus/test-bus-kernel.c
@@ -71,6 +71,20 @@ int main(int argc, char *argv[]) {
printf("unique b: %s\n", ub);
+ {
+ //FIXME:
+ struct kdbus_cmd_match cmd_match;
+
+ cmd_match.size = sizeof(cmd_match);
+ cmd_match.src_id = KDBUS_MATCH_SRC_ID_ANY;
+
+ r = ioctl(sd_bus_get_fd(a), KDBUS_CMD_MATCH_ADD, &cmd_match);
+ assert_se(r >= 0);
+
+ r = ioctl(sd_bus_get_fd(b), KDBUS_CMD_MATCH_ADD, &cmd_match);
+ assert_se(r >= 0);
+ }
+
r = sd_bus_emit_signal(a, "/foo/bar/waldo", "waldo.com", "Piep", "sss", "I am a string", "/this/is/a/path", "and.this.a.domain.name");
assert_se(r >= 0);