]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev-varlink: add io.systemd.service.GetEnvironment 36080/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 19 Jan 2025 15:08:07 +0000 (00:08 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 19 Jan 2025 15:21:45 +0000 (00:21 +0900)
There is no reason to not support the method in udevd.

Follow-up for c8127075ae22ad0f64d3072f400818f6e1a9ab48.

src/udev/udev-varlink.c

index d95bfcdd91f89f60d39a8875a3198639ee5b8a23..5d1a27219f57a4c3972c4d88669e2591cb7decbb 100644 (file)
@@ -156,14 +156,15 @@ int manager_start_varlink_server(Manager *manager) {
 
         r = sd_varlink_server_bind_method_many(
                         v,
-                        "io.systemd.service.Ping",          varlink_method_ping,
-                        "io.systemd.service.Reload",        vl_method_reload,
-                        "io.systemd.service.SetLogLevel",   vl_method_set_log_level,
-                        "io.systemd.Udev.SetChildrenMax",   vl_method_set_children_max,
-                        "io.systemd.Udev.SetEnvironment",   vl_method_set_environment,
-                        "io.systemd.Udev.StartExecQueue",   vl_method_start_stop_exec_queue,
-                        "io.systemd.Udev.StopExecQueue",    vl_method_start_stop_exec_queue,
-                        "io.systemd.Udev.Exit",             vl_method_exit);
+                        "io.systemd.service.Ping",           varlink_method_ping,
+                        "io.systemd.service.Reload",         vl_method_reload,
+                        "io.systemd.service.SetLogLevel",    vl_method_set_log_level,
+                        "io.systemd.service.GetEnvironment", varlink_method_get_environment,
+                        "io.systemd.Udev.SetChildrenMax",    vl_method_set_children_max,
+                        "io.systemd.Udev.SetEnvironment",    vl_method_set_environment,
+                        "io.systemd.Udev.StartExecQueue",    vl_method_start_stop_exec_queue,
+                        "io.systemd.Udev.StopExecQueue",     vl_method_start_stop_exec_queue,
+                        "io.systemd.Udev.Exit",              vl_method_exit);
         if (r < 0)
                 return log_error_errno(r, "Failed to bind Varlink methods: %m");