Lines Matching defs:reply

83 static int get_handler(sd_bus *bus, const char *path, const char *interface, const char *property, sd_bus_message *reply, void *userdata, sd_bus_error *error) {
89 r = sd_bus_message_append(reply, "s", c->something);
115 static int value_handler(sd_bus *bus, const char *path, const char *interface, const char *property, sd_bus_message *reply, void *userdata, sd_bus_error *error) {
121 r = sd_bus_message_append(reply, "s", s);
298 _cleanup_(sd_bus_message_unrefp) sd_bus_message *reply = NULL;
311 r = sd_bus_call_method(bus, "org.freedesktop.systemd.test", "/foo", "org.freedesktop.systemd.test", "AlterSomething", &error, &reply, "s", "hallo");
314 r = sd_bus_message_read(reply, "s", &s);
318 sd_bus_message_unref(reply);
319 reply = NULL;
321 r = sd_bus_call_method(bus, "org.freedesktop.systemd.test", "/foo", "org.freedesktop.systemd.test", "Doesntexist", &error, &reply, "");
327 r = sd_bus_call_method(bus, "org.freedesktop.systemd.test", "/foo", "org.freedesktop.systemd.test", "AlterSomething", &error, &reply, "as", 1, "hallo");
333 r = sd_bus_get_property(bus, "org.freedesktop.systemd.test", "/foo", "org.freedesktop.systemd.test", "Something", &error, &reply, "s");
336 r = sd_bus_message_read(reply, "s", &s);
340 sd_bus_message_unref(reply);
341 reply = NULL;
346 r = sd_bus_get_property(bus, "org.freedesktop.systemd.test", "/foo", "org.freedesktop.systemd.test", "Something", &error, &reply, "s");
349 r = sd_bus_message_read(reply, "s", &s);
353 sd_bus_message_unref(reply);
354 reply = NULL;
366 r = sd_bus_call_method(bus, "org.freedesktop.systemd.test", "/foo", "org.freedesktop.DBus.Introspectable", "Introspect", &error, &reply, "");
369 r = sd_bus_message_read(reply, "s", &s);
373 sd_bus_message_unref(reply);
374 reply = NULL;
376 r = sd_bus_get_property(bus, "org.freedesktop.systemd.test", "/value/xuzz", "org.freedesktop.systemd.ValueTest", "Value", &error, &reply, "s");
379 r = sd_bus_message_read(reply, "s", &s);
383 sd_bus_message_unref(reply);
384 reply = NULL;
386 r = sd_bus_call_method(bus, "org.freedesktop.systemd.test", "/", "org.freedesktop.DBus.Introspectable", "Introspect", &error, &reply, "");
389 r = sd_bus_message_read(reply, "s", &s);
393 sd_bus_message_unref(reply);
394 reply = NULL;
396 r = sd_bus_call_method(bus, "org.freedesktop.systemd.test", "/value", "org.freedesktop.DBus.Introspectable", "Introspect", &error, &reply, "");
399 r = sd_bus_message_read(reply, "s", &s);
403 sd_bus_message_unref(reply);
404 reply = NULL;
406 r = sd_bus_call_method(bus, "org.freedesktop.systemd.test", "/value/a", "org.freedesktop.DBus.Introspectable", "Introspect", &error, &reply, "");
409 r = sd_bus_message_read(reply, "s", &s);
413 sd_bus_message_unref(reply);
414 reply = NULL;
416 r = sd_bus_call_method(bus, "org.freedesktop.systemd.test", "/foo", "org.freedesktop.DBus.Properties", "GetAll", &error, &reply, "s", "");
419 bus_message_dump(reply, stdout, BUS_MESSAGE_DUMP_WITH_HEADER);
421 sd_bus_message_unref(reply);
422 reply = NULL;
424 r = sd_bus_call_method(bus, "org.freedesktop.systemd.test", "/value/a", "org.freedesktop.DBus.Properties", "GetAll", &error, &reply, "s", "org.freedesktop.systemd.ValueTest2");
429 r = sd_bus_call_method(bus, "org.freedesktop.systemd.test", "/foo", "org.freedesktop.DBus.ObjectManager", "GetManagedObjects", &error, &reply, "");
434 r = sd_bus_call_method(bus, "org.freedesktop.systemd.test", "/value", "org.freedesktop.DBus.ObjectManager", "GetManagedObjects", &error, &reply, "");
437 bus_message_dump(reply, stdout, BUS_MESSAGE_DUMP_WITH_HEADER);
439 sd_bus_message_unref(reply);
440 reply = NULL;
445 r = sd_bus_process(bus, &reply);
448 assert_se(sd_bus_message_is_signal(reply, "org.freedesktop.DBus.Properties", "PropertiesChanged"));
449 bus_message_dump(reply, stdout, BUS_MESSAGE_DUMP_WITH_HEADER);
451 sd_bus_message_unref(reply);
452 reply = NULL;
457 r = sd_bus_process(bus, &reply);
460 assert_se(sd_bus_message_is_signal(reply, "org.freedesktop.DBus.Properties", "PropertiesChanged"));
461 bus_message_dump(reply, stdout, BUS_MESSAGE_DUMP_WITH_HEADER);
463 sd_bus_message_unref(reply);
464 reply = NULL;
469 r = sd_bus_process(bus, &reply);
472 assert_se(sd_bus_message_is_signal(reply, "org.freedesktop.DBus.ObjectManager", "InterfacesAdded"));
473 bus_message_dump(reply, stdout, BUS_MESSAGE_DUMP_WITH_HEADER);
475 sd_bus_message_unref(reply);
476 reply = NULL;
481 r = sd_bus_process(bus, &reply);
484 assert_se(sd_bus_message_is_signal(reply, "org.freedesktop.DBus.ObjectManager", "InterfacesRemoved"));
485 bus_message_dump(reply, stdout, BUS_MESSAGE_DUMP_WITH_HEADER);
487 sd_bus_message_unref(reply);
488 reply = NULL;
493 r = sd_bus_process(bus, &reply);
496 assert_se(sd_bus_message_is_signal(reply, "org.freedesktop.DBus.ObjectManager", "InterfacesAdded"));
497 bus_message_dump(reply, stdout, BUS_MESSAGE_DUMP_WITH_HEADER);
499 sd_bus_message_unref(reply);
500 reply = NULL;
505 r = sd_bus_process(bus, &reply);
508 assert_se(sd_bus_message_is_signal(reply, "org.freedesktop.DBus.ObjectManager", "InterfacesRemoved"));
509 bus_message_dump(reply, stdout, BUS_MESSAGE_DUMP_WITH_HEADER);
511 sd_bus_message_unref(reply);
512 reply = NULL;