xref: /openbmc/sdbusplus/test/vtable/vtable_c.c (revision 75a2e253)
1 #include <systemd/sd-bus.h>
2 
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 };
16 
17 const size_t example2_size = sizeof(example2);
18