]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
manager: rename dbus method
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 14 Oct 2022 16:29:14 +0000 (18:29 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 14 Oct 2022 16:31:33 +0000 (18:31 +0200)
Fixes #24989.

man/org.freedesktop.systemd1.xml
src/analyze/analyze-dump.c
src/core/dbus-manager.c
src/core/org.freedesktop.systemd1.conf

index 9fb215a136e1b777da8405ee2f859f29ada6833f..6986ee8b037615fcaaa3af88159b117f04afb22d 100644 (file)
@@ -162,8 +162,8 @@ node /org/freedesktop/systemd1 {
       Subscribe();
       Unsubscribe();
       Dump(out s output);
-      DumpPatterns(in  as patterns,
-                   out s output);
+      DumpUnitsMatchingPatterns(in  as patterns,
+                                out s output);
       DumpByFileDescriptor(out h fd);
       Reload();
       @org.freedesktop.DBus.Method.NoReply("true")
@@ -870,7 +870,7 @@ node /org/freedesktop/systemd1 {
 
     <variablelist class="dbus-method" generated="True" extra-ref="Dump()"/>
 
-    <variablelist class="dbus-method" generated="True" extra-ref="DumpPatterns()"/>
+    <variablelist class="dbus-method" generated="True" extra-ref="DumpUnitsMatchingPatterns()"/>
 
     <variablelist class="dbus-method" generated="True" extra-ref="DumpByFileDescriptor()"/>
 
@@ -1342,7 +1342,7 @@ node /org/freedesktop/systemd1 {
       string guaranteed, and new fields may be added any time, and old fields removed. The general structure
       may be rearranged drastically between releases. This is exposed by
       <citerefentry><refentrytitle>systemd-analyze</refentrytitle><manvolnum>1</manvolnum></citerefentry>'s
-      <command>dump</command> command. Similarly, <function>DumpPatterns()</function> returns the internal
+      <command>dump</command> command. Similarly, <function>DumpUnitsMatchingPatterns()</function> returns the internal
       state of units whose names match the glob expressions specified in the <varname>patterns</varname>
       argument. The <function>DumpByFileDescriptor()</function> method is identical to
       <function>Dump()</function> but returns the data serialized into a file descriptor (the client should
index 220218e2feaba457c62e906baa1a4fb6b9f4fa73..ac2b31ae2627708ec94031ea875bd9bddbf05e65 100644 (file)
@@ -36,7 +36,7 @@ static int dump_patterns(sd_bus *bus, char **patterns) {
         const char *text;
         int r;
 
-        r = bus_message_new_method_call(bus, &m, bus_systemd_mgr, "DumpPatterns");
+        r = bus_message_new_method_call(bus, &m, bus_systemd_mgr, "DumpUnitsMatchingPatterns");
         if (r < 0)
                 return bus_log_create_error(r);
 
@@ -58,7 +58,7 @@ static int dump_patterns(sd_bus *bus, char **patterns) {
 
         r = sd_bus_call(bus, m, 0, &error, &reply);
         if (r < 0)
-                return log_error_errno(r, "Failed to issue method call DumpPatterns: %s",
+                return log_error_errno(r, "Failed to issue method call DumpUnitsMatchingPatterns: %s",
                                        bus_error_message(&error, r));
 
         r = sd_bus_message_read(reply, "s", &text);
index 240408f342e20ce14935185fbe36e8742ead2b79..26d19e8ba00ed4c5105d09abc18eb96bb2345587 100644 (file)
@@ -1392,7 +1392,7 @@ static int method_dump_by_fd(sd_bus_message *message, void *userdata, sd_bus_err
         return dump_impl(message, userdata, error, NULL, reply_dump_by_fd);
 }
 
-static int method_dump_patterns(sd_bus_message *message, void *userdata, sd_bus_error *error) {
+static int method_dump_units_matching_patterns(sd_bus_message *message, void *userdata, sd_bus_error *error) {
         _cleanup_strv_free_ char **patterns = NULL;
         int r;
 
@@ -3027,10 +3027,10 @@ const sd_bus_vtable bus_manager_vtable[] = {
                                 SD_BUS_RESULT("s", output),
                                 method_dump,
                                 SD_BUS_VTABLE_UNPRIVILEGED),
-        SD_BUS_METHOD_WITH_ARGS("DumpPatterns",
+        SD_BUS_METHOD_WITH_ARGS("DumpUnitsMatchingPatterns",
                                 SD_BUS_ARGS("as", patterns),
                                 SD_BUS_RESULT("s", output),
-                                method_dump_patterns,
+                                method_dump_units_matching_patterns,
                                 SD_BUS_VTABLE_UNPRIVILEGED),
         SD_BUS_METHOD_WITH_ARGS("DumpByFileDescriptor",
                                 SD_BUS_NO_ARGS,
index 8aa1b03a33402669fe1ffdadaf60e3e998f3d163..66dd961c4473ac54854ebf36b9b69ac657460db7 100644 (file)
 
                 <allow send_destination="org.freedesktop.systemd1"
                        send_interface="org.freedesktop.systemd1.Manager"
-                       send_member="DumpPatterns"/>
+                       send_member="DumpUnitsMatchingPatterns"/>
 
                 <allow send_destination="org.freedesktop.systemd1"
                        send_interface="org.freedesktop.systemd1.Manager"