shared: Clean up includes

Split out of #37344.
This commit is contained in:
Daan De Meyer
2025-05-24 14:00:44 +02:00
parent 9d75fb9647
commit 69a283c5f2
394 changed files with 1181 additions and 1903 deletions
+3 -11
View File
@@ -1,16 +1,11 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
#include "sd-json.h"
#include "alloc-util.h"
#include "dlfcn-util.h"
#include "macro.h"
#include "string-util.h"
#include "strv.h"
#include "forward.h"
#if HAVE_LIBCRYPTSETUP
#include <libcryptsetup.h>
#include <libcryptsetup.h> /* IWYU pragma: export */
/* These next two are defined in libcryptsetup.h from cryptsetup version 2.3.4 forwards. */
#ifndef CRYPT_ACTIVATE_NO_READ_WORKQUEUE
@@ -116,7 +111,4 @@ int dlopen_cryptsetup(void);
int cryptsetup_get_keyslot_from_token(sd_json_variant *v);
static inline const char* mangle_none(const char *s) {
/* A helper that turns cryptsetup/integritysetup/veritysetup "options" strings into NULL if they are effectively empty */
return isempty(s) || STR_IN_SET(s, "-", "none") ? NULL : s;
}
const char* mangle_none(const char *s);