Patrick Williams | 9d3ec7f | 2016-09-27 20:30:58 -0500 | [diff] [blame] | 1 | #include <systemd/sd-bus.h> |
| 2 | |
Andrew Geissler | 072da3e | 2018-01-18 07:21:42 -0800 | [diff] [blame] | 3 | const 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 Williams | 9d3ec7f | 2016-09-27 20:30:58 -0500 | [diff] [blame] | 16 | |
| 17 | const size_t example2_size = sizeof(example2); |