tree-wide: Various forward header cleanups
- Make sure forward headers have the iwyu pragma to always keep them - Make sure we always include the daemon specific forward header instead of shared-forward.h - Remove shared-forward.h include where the daemon specific forward header is already included
This commit is contained in:
committed by
Yu Watanabe
parent
cc814110af
commit
b8ee7c2206
+1
-1
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
#pragma once
|
||||
|
||||
#include "shared-forward.h"
|
||||
#include "core-forward.h"
|
||||
|
||||
int get_core_audit_fd(void);
|
||||
void close_core_audit_fd(void);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
#pragma once
|
||||
|
||||
#include "shared-forward.h"
|
||||
#include "core-forward.h"
|
||||
|
||||
int clock_reset_timewarp(void);
|
||||
void clock_apply_epoch(bool allow_backwards);
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
#pragma once
|
||||
|
||||
/* IWYU pragma: always_keep */
|
||||
|
||||
#include "conf-parser-forward.h" /* IWYU pragma: export */
|
||||
#include "shared-forward.h" /* IWYU pragma: export */
|
||||
#include "unit-def.h" /* IWYU pragma: export */
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
#pragma once
|
||||
|
||||
#include "shared-forward.h"
|
||||
#include "core-forward.h"
|
||||
|
||||
typedef enum CrashAction {
|
||||
CRASH_FREEZE,
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
#pragma once
|
||||
|
||||
#include "shared-forward.h"
|
||||
#include "core-forward.h"
|
||||
|
||||
typedef enum KillMode {
|
||||
/* The kill mode is a property of a unit. */
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
#pragma once
|
||||
|
||||
#include "shared-forward.h"
|
||||
#include "core-forward.h"
|
||||
#include "crash-handler.h"
|
||||
|
||||
extern bool arg_dump_core;
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
#include "cgroup.h"
|
||||
#include "common-signal.h"
|
||||
#include "execute.h"
|
||||
#include "shared-forward.h"
|
||||
#include "core-forward.h"
|
||||
#include "log.h"
|
||||
#include "path-lookup.h"
|
||||
#include "show-status.h"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
#pragma once
|
||||
|
||||
#include "shared-forward.h"
|
||||
#include "core-forward.h"
|
||||
|
||||
int mac_selinux_setup(bool *loaded_policy);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
#pragma once
|
||||
|
||||
#include "shared-forward.h"
|
||||
#include "core-forward.h"
|
||||
|
||||
/* Manager status */
|
||||
|
||||
|
||||
@@ -7,6 +7,6 @@
|
||||
Nathaniel Chen <nathaniel.chen@intel.com>
|
||||
***/
|
||||
|
||||
#include "shared-forward.h"
|
||||
#include "core-forward.h"
|
||||
|
||||
int mac_smack_setup(bool *loaded_policy);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
#pragma once
|
||||
|
||||
#include "shared-forward.h"
|
||||
#include "core-forward.h"
|
||||
|
||||
/* Flags that identify the various "atomic" behaviours a specific dependency type implies. Each dependency is
|
||||
* a combination of one or more of these flags that define what they actually entail. */
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
#pragma once
|
||||
|
||||
#include "shared-forward.h"
|
||||
#include "core-forward.h"
|
||||
|
||||
int unit_cgroup_context_build_json(sd_json_variant **ret, const char *name, void *userdata);
|
||||
int unit_cgroup_runtime_build_json(sd_json_variant **ret, const char *name, void *userdata);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
#pragma once
|
||||
|
||||
#include "shared-forward.h"
|
||||
#include "core-forward.h"
|
||||
|
||||
int rlimit_build_json(sd_json_variant **ret, const char *name, void *userdata);
|
||||
int rlimit_table_build_json(sd_json_variant **ret, const char *name, void *userdata);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
#pragma once
|
||||
|
||||
#include "shared-forward.h"
|
||||
#include "core-forward.h"
|
||||
|
||||
int vl_method_get_user_record(sd_varlink *link, sd_json_variant *parameters, sd_varlink_method_flags_t flags, void *userdata);
|
||||
int vl_method_get_group_record(sd_varlink *link, sd_json_variant *parameters, sd_varlink_method_flags_t flags, void *userdata);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
#pragma once
|
||||
|
||||
#include "shared-forward.h"
|
||||
#include "core-forward.h"
|
||||
|
||||
int vl_method_describe_manager(sd_varlink *link, sd_json_variant *parameters, sd_varlink_method_flags_t flags, void *userdata);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
#pragma once
|
||||
|
||||
#include "shared-forward.h"
|
||||
#include "core-forward.h"
|
||||
|
||||
#define VARLINK_ERROR_UNIT_NO_SUCH_UNIT "io.systemd.Unit.NoSuchUnit"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user