diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-10-11 06:10:15 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-10-11 06:10:15 +0200 |
commit | adcdb3747609962881301ed19636002dd34c05a0 (patch) | |
tree | c3e3e5f80205bef89931e49f03ac2e0f55300098 /src/libsystemd-bus/test-bus-introspect.c | |
parent | 62b5c2aec12e6a3d305445ee1a88bc18ca0a1548 (diff) |
bus: when NULL is specified as property callback, automatically handle serialization on Get()
Diffstat (limited to 'src/libsystemd-bus/test-bus-introspect.c')
-rw-r--r-- | src/libsystemd-bus/test-bus-introspect.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsystemd-bus/test-bus-introspect.c b/src/libsystemd-bus/test-bus-introspect.c index ea26cdd101..ae41618647 100644 --- a/src/libsystemd-bus/test-bus-introspect.c +++ b/src/libsystemd-bus/test-bus-introspect.c @@ -33,9 +33,9 @@ static int prop_set(sd_bus *bus, const char *path, const char *interface, const static const sd_bus_vtable vtable[] = { SD_BUS_VTABLE_START(0), - SD_BUS_METHOD("Hello", "ssas", "a(uu)", 0, NULL), - SD_BUS_METHOD("DeprecatedHello", "", "", SD_BUS_VTABLE_DEPRECATED, NULL), - SD_BUS_METHOD("DeprecatedHelloNoReply", "", "", SD_BUS_VTABLE_DEPRECATED|SD_BUS_VTABLE_METHOD_NO_REPLY, NULL), + SD_BUS_METHOD("Hello", "ssas", "a(uu)", NULL, 0), + SD_BUS_METHOD("DeprecatedHello", "", "", NULL, SD_BUS_VTABLE_DEPRECATED), + SD_BUS_METHOD("DeprecatedHelloNoReply", "", "", NULL, SD_BUS_VTABLE_DEPRECATED|SD_BUS_VTABLE_METHOD_NO_REPLY), SD_BUS_SIGNAL("Wowza", "sss", 0), SD_BUS_SIGNAL("DeprecatedWowza", "ut", SD_BUS_VTABLE_DEPRECATED), SD_BUS_WRITABLE_PROPERTY("AProperty", "s", prop_get, prop_set, 0, 0), |