various: set info on varlink server object

The values that were previously hardcoded in sd-varlink.c are now defined
in new varlink_set_info_systemd() and that function is called everywhere
where we create a server.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2024-12-10 10:51:56 +01:00
parent 29f63c67b0
commit fd409ff0e0
21 changed files with 107 additions and 48 deletions
+2 -1
View File
@@ -27,6 +27,7 @@
#include "pretty-print.h"
#include "utf8.h"
#include "varlink-io.systemd.BootControl.h"
#include "varlink-util.h"
#include "verbs.h"
#include "virt.h"
@@ -656,7 +657,7 @@ static int run(int argc, char *argv[]) {
/* Invocation as Varlink service */
r = sd_varlink_server_new(&varlink_server, SD_VARLINK_SERVER_ROOT_ONLY);
r = varlink_server_new(&varlink_server, SD_VARLINK_SERVER_ROOT_ONLY, NULL);
if (r < 0)
return log_error_errno(r, "Failed to allocate Varlink server: %m");