summaryrefslogtreecommitdiffstats
path: root/src/portable/portabled-bus.c
diff options
context:
space:
mode:
authorLuca Boccassi <luca.boccassi@microsoft.com>2021-02-12 17:35:20 +0100
committerLuca Boccassi <luca.boccassi@microsoft.com>2021-02-15 22:20:14 +0100
commit3b91bae3ced1109d91ea60f9b141a217809cb1ef (patch)
tree22098af2885150541523626723e7ab0f2d004488 /src/portable/portabled-bus.c
parentresolved: don't redundantly switch DNS servers because of transaction failures (diff)
downloadsystemd-3b91bae3ced1109d91ea60f9b141a217809cb1ef.tar.xz
systemd-3b91bae3ced1109d91ea60f9b141a217809cb1ef.zip
portabled: use service_parse_argv/bus_add_implementation
Remove some boilerplate and allow introspection
Diffstat (limited to 'src/portable/portabled-bus.c')
-rw-r--r--src/portable/portabled-bus.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/portable/portabled-bus.c b/src/portable/portabled-bus.c
index c31ab092b4..e57e5e8d3e 100644
--- a/src/portable/portabled-bus.c
+++ b/src/portable/portabled-bus.c
@@ -3,6 +3,7 @@
#include "alloc-util.h"
#include "btrfs-util.h"
#include "bus-common-errors.h"
+#include "bus-object.h"
#include "bus-polkit.h"
#include "discover-image.h"
#include "fd-util.h"
@@ -374,6 +375,13 @@ const sd_bus_vtable manager_vtable[] = {
SD_BUS_VTABLE_END
};
+const BusObjectImplementation manager_object = {
+ "/org/freedesktop/portable1",
+ "org.freedesktop.portable1.Manager",
+ .vtables = BUS_VTABLES(manager_vtable),
+ .children = BUS_IMPLEMENTATIONS(&image_object),
+};
+
static int reply_portable_compose_message(sd_bus_message *reply, const PortableChange *changes, size_t n_changes) {
size_t i;
int r;