blob: d01506b0dee1a6d356d615f3c00636c8589fc2a9 [file] [log] [blame]
Patrick Williams9d3ec7f2016-09-27 20:30:58 -05001#include <systemd/sd-bus.h>
2
Andrew Geissler072da3e2018-01-18 07:21:42 -08003const sd_bus_vtable example2[] = {
4 SD_BUS_VTABLE_START(0),
5 SD_BUS_METHOD((const char*)1, (const char*)2, (const char*)3,
6 (sd_bus_message_handler_t)4, 0),
7 SD_BUS_SIGNAL((const char*)5, (const char*)6, 0),
8 SD_BUS_PROPERTY((const char*)7, (const char*)8, (sd_bus_property_get_t)9, 0,
9 SD_BUS_VTABLE_PROPERTY_CONST),
10 SD_BUS_WRITABLE_PROPERTY((const char*)10, (const char*)11,
11 (sd_bus_property_get_t)12,
12 (sd_bus_property_set_t)13, 0, 0),
13 SD_BUS_PROPERTY((const char*)14, (const char*)15, NULL, 16, 0),
14 SD_BUS_VTABLE_END,
15};
Patrick Williams9d3ec7f2016-09-27 20:30:58 -050016
17const size_t example2_size = sizeof(example2);