diff options
author | Luca Boccassi <luca.boccassi@microsoft.com> | 2021-02-12 17:35:20 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@microsoft.com> | 2021-02-15 22:20:14 +0100 |
commit | 3b91bae3ced1109d91ea60f9b141a217809cb1ef (patch) | |
tree | 22098af2885150541523626723e7ab0f2d004488 /src/portable/portabled-image-bus.c | |
parent | resolved: don't redundantly switch DNS servers because of transaction failures (diff) | |
download | systemd-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-image-bus.c')
-rw-r--r-- | src/portable/portabled-image-bus.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/portable/portabled-image-bus.c b/src/portable/portabled-image-bus.c index 630648ba3c..d7a44110c9 100644 --- a/src/portable/portabled-image-bus.c +++ b/src/portable/portabled-image-bus.c @@ -9,6 +9,7 @@ #include "bus-common-errors.h" #include "bus-get-properties.h" #include "bus-label.h" +#include "bus-object.h" #include "bus-polkit.h" #include "bus-util.h" #include "discover-image.h" @@ -919,3 +920,10 @@ int bus_image_node_enumerator(sd_bus *bus, const char *path, void *userdata, cha return 1; } + +const BusObjectImplementation image_object = { + "/org/freedesktop/portable1/image", + "org.freedesktop.portable1.Image", + .fallback_vtables = BUS_FALLBACK_VTABLES({image_vtable, bus_image_object_find}), + .node_enumerator = bus_image_node_enumerator, +}; |