diff options
| author | Lennart Poettering <lennart@poettering.net> | 2016-12-01 23:24:20 +0100 |
|---|---|---|
| committer | Lennart Poettering <lennart@poettering.net> | 2016-12-07 18:38:41 +0100 |
| commit | 9153b02bb5030e29d6008992fb74b9028d7c392c (patch) | |
| tree | 23746568f265466f93388d66df417f56ceda50a0 /src/machine/machine-dbus.h | |
| parent | 676bcb0fc042c24e4335832622ea4104a1295b48 (diff) | |
machined: add API for querying the OS release of a machine image
This adds a bus call GetImageOSRelease() to the Manager interface that
retrieves the /etc/os-release file of a machine image. It matches the existing
GetMachineOSRelease() call, however operates on a disk image rather than a
running container.
The backend for this call on .raw images is implemented via the generalized
image dissector, which makes this scheme relatively easy to implement.
Diffstat (limited to 'src/machine/machine-dbus.h')
| -rw-r--r-- | src/machine/machine-dbus.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/machine/machine-dbus.h b/src/machine/machine-dbus.h index 241b23c7ec..c513783480 100644 --- a/src/machine/machine-dbus.h +++ b/src/machine/machine-dbus.h @@ -42,3 +42,5 @@ int bus_machine_method_open_root_directory(sd_bus_message *message, void *userda int machine_send_signal(Machine *m, bool new_machine); int machine_send_create_reply(Machine *m, sd_bus_error *error); + +int bus_reply_pair_array(sd_bus_message *m, char **l); |
