summaryrefslogtreecommitdiffstats
path: root/src/boot/bootctl.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-05-02 14:26:21 +0200
committerLennart Poettering <lennart@poettering.net>2024-06-12 18:42:22 +0200
commit309a747fa6cfeac0a0165543f23a924866727c9b (patch)
treea51242aa3ac87243c0614bf93d27e9083182e485 /src/boot/bootctl.h
parentjson: merge json_dispatch_path() + json_dispatch_absolute_path() (diff)
downloadsystemd-309a747fa6cfeac0a0165543f23a924866727c9b.tar.xz
systemd-309a747fa6cfeac0a0165543f23a924866727c9b.zip
libsystemd: turn json.[ch] into a public API
This is preparation for making our Varlink API a public API. Since our Varlink API is built on top of our JSON API we need to make that public first (it's a nice API, but JSON APIs there are already enough, this is purely about the Varlink angle). I made most of the json.h APIs public, and just placed them in sd-json.h. Sometimes I wasn't so sure however, since the underlying data structures would have to be made public too. If in doubt I didn#t risk it, and moved the relevant API to src/libsystemd/sd-json/json-util.h instead (without any sd_* symbol prefixes). This is mostly a giant search/replace patch.
Diffstat (limited to 'src/boot/bootctl.h')
-rw-r--r--src/boot/bootctl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/boot/bootctl.h b/src/boot/bootctl.h
index 25cb5166ce..d488eac4e1 100644
--- a/src/boot/bootctl.h
+++ b/src/boot/bootctl.h
@@ -2,10 +2,10 @@
#pragma once
#include "sd-id128.h"
+#include "sd-json.h"
#include "boot-entry.h"
#include "image-policy.h"
-#include "json.h"
#include "pager.h"
typedef enum InstallSource {
@@ -28,7 +28,7 @@ extern sd_id128_t arg_machine_id;
extern char *arg_install_layout;
extern BootEntryTokenType arg_entry_token_type;
extern char *arg_entry_token;
-extern JsonFormatFlags arg_json_format_flags;
+extern sd_json_format_flags_t arg_json_format_flags;
extern bool arg_arch_all;
extern char *arg_root;
extern char *arg_image;