diff options
author | Ivan Kruglov <mail@ikruglov.com> | 2024-10-21 13:54:58 +0200 |
---|---|---|
committer | Ivan Kruglov <mail@ikruglov.com> | 2024-11-01 15:30:39 +0100 |
commit | cc060c29105047132e8ddd337bb892d09f523f1a (patch) | |
tree | f2bfd15602c404c6a14dd6864e944e7ad2506a04 /src/shared/varlink-io.systemd.MachineImage.c | |
parent | machine: introduce io.systemd.MachineImage.Remove method (diff) | |
download | systemd-cc060c29105047132e8ddd337bb892d09f523f1a.tar.xz systemd-cc060c29105047132e8ddd337bb892d09f523f1a.zip |
machine: reuse VARLINK_DEFINE_IMAGE_LOOKUP_AND_POLKIT_FIELDS in io.systemd.MachineImage.Update declaration
Diffstat (limited to 'src/shared/varlink-io.systemd.MachineImage.c')
-rw-r--r-- | src/shared/varlink-io.systemd.MachineImage.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/shared/varlink-io.systemd.MachineImage.c b/src/shared/varlink-io.systemd.MachineImage.c index caab5370dc..813b6c8e68 100644 --- a/src/shared/varlink-io.systemd.MachineImage.c +++ b/src/shared/varlink-io.systemd.MachineImage.c @@ -60,15 +60,13 @@ static SD_VARLINK_DEFINE_METHOD_FULL( static SD_VARLINK_DEFINE_METHOD( Update, - SD_VARLINK_FIELD_COMMENT("The name of a image to update."), - SD_VARLINK_DEFINE_INPUT(name, SD_VARLINK_STRING, 0), + VARLINK_DEFINE_IMAGE_LOOKUP_AND_POLKIT_FIELDS, SD_VARLINK_FIELD_COMMENT("If non-null the new name of the image"), SD_VARLINK_DEFINE_INPUT(newName, SD_VARLINK_STRING, SD_VARLINK_NULLABLE), SD_VARLINK_FIELD_COMMENT("If non-null value of the read-only flag of the image"), SD_VARLINK_DEFINE_INPUT(readOnly, SD_VARLINK_BOOL, SD_VARLINK_NULLABLE), SD_VARLINK_FIELD_COMMENT("If non-null value of image quota limit"), - SD_VARLINK_DEFINE_INPUT(limit, SD_VARLINK_INT, SD_VARLINK_NULLABLE), - VARLINK_DEFINE_POLKIT_INPUT); + SD_VARLINK_DEFINE_INPUT(limit, SD_VARLINK_INT, SD_VARLINK_NULLABLE)); static SD_VARLINK_DEFINE_METHOD( Clone, |