xref: /openbmc/sdbusplus/test/vtable/vtable_c.c (revision 2b0bdd6e)
1 #include <systemd/sd-bus.h>
2 
3 
4 const sd_bus_vtable example2[] =
5     {
6         SD_BUS_VTABLE_START(0),
7         SD_BUS_METHOD((const char*)1, (const char*)2,
8                       (const char*)3, (sd_bus_message_handler_t)4, 0),
9         SD_BUS_SIGNAL((const char*)5, (const char*)6, 0),
10         SD_BUS_PROPERTY((const char*)7, (const char*)8,
11                         (sd_bus_property_get_t)9, 0,
12                         SD_BUS_VTABLE_PROPERTY_CONST),
13         SD_BUS_WRITABLE_PROPERTY((const char*)10, (const char*)11,
14                                  (sd_bus_property_get_t)12,
15                                  (sd_bus_property_set_t)13, 0, 0),
16         SD_BUS_PROPERTY((const char*)14, (const char*)15, NULL, 16, 0),
17         SD_BUS_VTABLE_END,
18     };
19 
20 const size_t example2_size = sizeof(example2);
21 
22