TYPE3
[iec.git] / src / type3_AndroidCloud / anbox-master / src / anbox / dbus / sd_bus_helpers.h
diff --git a/src/type3_AndroidCloud/anbox-master/src/anbox/dbus/sd_bus_helpers.h b/src/type3_AndroidCloud/anbox-master/src/anbox/dbus/sd_bus_helpers.h
new file mode 100644 (file)
index 0000000..3db0e61
--- /dev/null
@@ -0,0 +1,54 @@
+/*
+ * Copyright (C) 2019 Martin Unzner <martin.u@posteo.de>
+ *
+ * This program is free software: you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 3, as published
+ * by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranties of
+ * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
+ * PURPOSE.  See the GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+#ifndef ANBOX_DBUS_SD_BUS_HELPERS_H_
+#define ANBOX_DBUS_SD_BUS_HELPERS_H_
+
+#include <systemd/sd-bus-vtable.h>
+
+sd_bus_vtable sdbus_vtable_create_start(uint64_t flags);
+
+sd_bus_vtable sdbus_vtable_create_end();
+
+sd_bus_vtable sdbus_vtable_create_method_o(const char* member, const char* signature,
+                                           const char* result,
+                                           sd_bus_message_handler_t handler, size_t offset,
+                                           uint64_t flags);
+
+sd_bus_vtable sdbus_vtable_create_method(const char* member, const char* signature,
+                                         const char* result, sd_bus_message_handler_t handler,
+                                         uint64_t flags);
+
+sd_bus_vtable sdbus_vtable_create_signal(const char* member, const char* signature, uint64_t flags);
+
+sd_bus_vtable sdbus_vtable_create_property(const char* member, const char* signature,
+                                           sd_bus_property_get_t get,
+                                           uint64_t flags);
+
+sd_bus_vtable sdbus_vtable_create_property_set(const char* member, const char* signature,
+                                               sd_bus_property_get_t get,
+                                               sd_bus_property_set_t set,
+                                               uint64_t flags);
+
+sd_bus_vtable sdbus_vtable_create_property_o(const char* member, const char* signature,
+                                             size_t offset, uint64_t flags);
+
+sd_bus_vtable sdbus_vtable_create_property_o_set(const char* member, const char* signature,
+                                                 sd_bus_property_set_t set, size_t offset,
+                                                 uint64_t flags);
+
+#endif