]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
portable: fix silly typo in D-Bus interface name
authorLuca Boccassi <bluca@debian.org>
Thu, 15 Jun 2023 17:54:56 +0000 (18:54 +0100)
committerLuca Boccassi <bluca@debian.org>
Fri, 16 Jun 2023 11:31:56 +0000 (12:31 +0100)
D'oh. Nobody noticed in 3 years, I guess nobody calls these directly
and instead the manager's methods are used. Still we'll have to keep
this around, so just hide it.

man/org.freedesktop.portable1.xml
src/portable/portabled-image-bus.c

index 00db6f8f7abd22a012bf2ce6d66458c0576e1839..3b28f1dbfa007717b024b47b0cd0dcddc581a308 100644 (file)
@@ -380,13 +380,13 @@ node /org/freedesktop/portable1 {
                in  s copy_mode,
                out a(sss) changes_removed,
                out a(sss) changes_updated);
-      ReattacheWithExtensions(in  as extensions,
-                              in  as matches,
-                              in  s profile,
-                              in  s copy_mode,
-                              in  t flags,
-                              out a(sss) changes_removed,
-                              out a(sss) changes_updated);
+      ReattachWithExtensions(in  as extensions,
+                             in  as matches,
+                             in  s profile,
+                             in  s copy_mode,
+                             in  t flags,
+                             out a(sss) changes_removed,
+                             out a(sss) changes_updated);
       Remove();
       MarkReadOnly(in  b read_only);
       SetLimit(in  t limit);
@@ -438,7 +438,7 @@ node /org/freedesktop/portable1 {
 
     <!--method Reattach is not documented!-->
 
-    <!--method ReattacheWithExtensions is not documented!-->
+    <!--method ReattachWithExtensions is not documented!-->
 
     <!--method Remove is not documented!-->
 
@@ -472,7 +472,7 @@ node /org/freedesktop/portable1 {
 
     <variablelist class="dbus-method" generated="True" extra-ref="Reattach()"/>
 
-    <variablelist class="dbus-method" generated="True" extra-ref="ReattacheWithExtensions()"/>
+    <variablelist class="dbus-method" generated="True" extra-ref="ReattachWithExtensions()"/>
 
     <variablelist class="dbus-method" generated="True" extra-ref="Remove()"/>
 
@@ -530,7 +530,7 @@ node /org/freedesktop/portable1 {
 
         <listitem><para>Reattach()</para></listitem>
 
-        <listitem><para>ReattacheWithExtensions()</para></listitem>
+        <listitem><para>ReattachWithExtensions()</para></listitem>
 
         <listitem><para>Remove()</para></listitem>
 
index 5e46d86b08c902a45c8ee1877e42d7fea2042122..f271d36db547e748a63409f1ed81a410034a0176 100644 (file)
@@ -934,7 +934,7 @@ const sd_bus_vtable image_vtable[] = {
                                               "a(sss)", changes_updated),
                                 bus_image_method_reattach,
                                 SD_BUS_VTABLE_UNPRIVILEGED),
-        SD_BUS_METHOD_WITH_ARGS("ReattacheWithExtensions",
+        SD_BUS_METHOD_WITH_ARGS("ReattachWithExtensions",
                                 SD_BUS_ARGS("as", extensions,
                                             "as", matches,
                                             "s", profile,
@@ -959,6 +959,17 @@ const sd_bus_vtable image_vtable[] = {
                                 SD_BUS_NO_RESULT,
                                 bus_image_method_set_limit,
                                 SD_BUS_VTABLE_UNPRIVILEGED),
+        /* Deprecated silly typo */
+        SD_BUS_METHOD_WITH_ARGS("ReattacheWithExtensions",
+                                SD_BUS_ARGS("as", extensions,
+                                            "as", matches,
+                                            "s", profile,
+                                            "s", copy_mode,
+                                            "t", flags),
+                                SD_BUS_RESULT("a(sss)", changes_removed,
+                                              "a(sss)", changes_updated),
+                                bus_image_method_reattach,
+                                SD_BUS_VTABLE_UNPRIVILEGED|SD_BUS_VTABLE_HIDDEN),
         SD_BUS_VTABLE_END
 };