2 * Copyright (C) 2019 Martin Unzner <martin.u@posteo.de>
4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License version 3, as published
6 * by the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranties of
10 * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
11 * PURPOSE. See the GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License along
14 * with this program. If not, see <http://www.gnu.org/licenses/>.
18 #ifndef ANBOX_DBUS_SD_BUS_HELPERS_H_
19 #define ANBOX_DBUS_SD_BUS_HELPERS_H_
21 #include <systemd/sd-bus-vtable.h>
23 sd_bus_vtable sdbus_vtable_create_start(uint64_t flags);
25 sd_bus_vtable sdbus_vtable_create_end();
27 sd_bus_vtable sdbus_vtable_create_method_o(const char* member, const char* signature,
29 sd_bus_message_handler_t handler, size_t offset,
32 sd_bus_vtable sdbus_vtable_create_method(const char* member, const char* signature,
33 const char* result, sd_bus_message_handler_t handler,
36 sd_bus_vtable sdbus_vtable_create_signal(const char* member, const char* signature, uint64_t flags);
38 sd_bus_vtable sdbus_vtable_create_property(const char* member, const char* signature,
39 sd_bus_property_get_t get,
42 sd_bus_vtable sdbus_vtable_create_property_set(const char* member, const char* signature,
43 sd_bus_property_get_t get,
44 sd_bus_property_set_t set,
47 sd_bus_vtable sdbus_vtable_create_property_o(const char* member, const char* signature,
48 size_t offset, uint64_t flags);
50 sd_bus_vtable sdbus_vtable_create_property_o_set(const char* member, const char* signature,
51 sd_bus_property_set_t set, size_t offset,