]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
analyze: Clean up includes
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 21 May 2025 15:06:27 +0000 (17:06 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 21 May 2025 18:06:46 +0000 (03:06 +0900)
Split out of #37344.

39 files changed:
src/analyze/analyze-architectures.c
src/analyze/analyze-blame.c
src/analyze/analyze-calendar.c
src/analyze/analyze-capability.c
src/analyze/analyze-cat-config.c
src/analyze/analyze-chid.c
src/analyze/analyze-compare-versions.c
src/analyze/analyze-condition.c
src/analyze/analyze-critical-chain.c
src/analyze/analyze-dot.c
src/analyze/analyze-dump.c
src/analyze/analyze-exit-status.c
src/analyze/analyze-fdstore.c
src/analyze/analyze-fdstore.h
src/analyze/analyze-filesystems.c
src/analyze/analyze-image-policy.c
src/analyze/analyze-inspect-elf.c
src/analyze/analyze-log-control.c
src/analyze/analyze-malloc.c
src/analyze/analyze-pcrs.c
src/analyze/analyze-plot.c
src/analyze/analyze-security.c
src/analyze/analyze-service-watchdogs.c
src/analyze/analyze-smbios11.c
src/analyze/analyze-srk.c
src/analyze/analyze-syscall-filter.c
src/analyze/analyze-time-data.c
src/analyze/analyze-time-data.h
src/analyze/analyze-time.c
src/analyze/analyze-timespan.c
src/analyze/analyze-timestamp.c
src/analyze/analyze-unit-files.c
src/analyze/analyze-unit-paths.c
src/analyze/analyze-verify-util.c
src/analyze/analyze-verify-util.h
src/analyze/analyze-verify.c
src/analyze/analyze.c
src/analyze/analyze.h
src/analyze/test-verify.c

index 832d50c5b7163cfb81936d9e902e5cbc2103d979..a884060938b2797c2b9284d3fa9659797cde7714 100644 (file)
@@ -2,7 +2,12 @@
 
 #include "analyze.h"
 #include "analyze-architectures.h"
+#include "ansi-color.h"
+#include "architecture.h"
 #include "format-table.h"
+#include "log.h"
+#include "string-util.h"
+#include "strv.h"
 
 static int add_arch(Table *t, Architecture a) {
         const char *c, *color;
index 4d78ed405d7d4033950be6214277ae5175ae83ac..b2350b144675ddfc32cef845bcb01f2e0af506c8 100644 (file)
@@ -1,9 +1,13 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
+#include "sd-bus.h"
+
 #include "analyze.h"
 #include "analyze-blame.h"
 #include "analyze-time-data.h"
+#include "bus-util.h"
 #include "format-table.h"
+#include "runtime-scope.h"
 
 int verb_blame(int argc, char *argv[], void *userdata) {
         _cleanup_(sd_bus_flush_close_unrefp) sd_bus *bus = NULL;
@@ -65,5 +69,5 @@ int verb_blame(int argc, char *argv[], void *userdata) {
         if (r < 0)
                 return r;
 
-        return EXIT_SUCCESS;
+        return 0;
 }
index 21e7c79c8092d17c03e8b59d0ba7b9d9ee62d4c6..b6e23e0a4449c59c062d1173098107264304ff29 100644 (file)
@@ -3,9 +3,14 @@
 #include "alloc-util.h"
 #include "analyze.h"
 #include "analyze-calendar.h"
+#include "ansi-color.h"
 #include "calendarspec.h"
+#include "errno-util.h"
 #include "format-table.h"
-#include "terminal-util.h"
+#include "log.h"
+#include "string-util.h"
+#include "strv.h"
+#include "time-util.h"
 
 static int test_calendar_one(usec_t n, const char *p) {
         _cleanup_(calendar_spec_freep) CalendarSpec *spec = NULL;
index 3e9b918ed4fdeae7b4ff4a63e31783987f7d2fcb..4709cb15ae69c6613746a9b915cdc322f3ede6b7 100644 (file)
@@ -5,6 +5,7 @@
 #include "cap-list.h"
 #include "capability-util.h"
 #include "format-table.h"
+#include "log.h"
 #include "parse-util.h"
 
 static int table_add_capability(Table *table, int c) {
@@ -83,5 +84,5 @@ int verb_capabilities(int argc, char *argv[], void *userdata) {
         if (r < 0)
                 return log_error_errno(r, "Failed to output table: %m");
 
-        return EXIT_SUCCESS;
+        return 0;
 }
index 8b86ef9328e1498a4283f01c327ec0568339d5a1..e8c118a4b2e630fbff5e8ae2061637a2ab85a897 100644 (file)
@@ -2,8 +2,9 @@
 
 #include "analyze.h"
 #include "analyze-cat-config.h"
-#include "conf-files.h"
 #include "constants.h"
+#include "log.h"
+#include "pager.h"
 #include "path-util.h"
 #include "pretty-print.h"
 #include "strv.h"
@@ -38,5 +39,5 @@ int verb_cat_config(int argc, char *argv[], void *userdata) {
                         return r;
         }
 
-        return EXIT_SUCCESS;
+        return 0;
 }
index e691a7d9a5aee764d976a4629cb5741fb3c1b25a..ac3c4d9cb6da2e220666e1294dc54bf42d86aced 100644 (file)
@@ -5,16 +5,19 @@
 #include "alloc-util.h"
 #include "analyze.h"
 #include "analyze-chid.h"
+#include "ansi-color.h"
 #include "chid-fundamental.h"
 #include "device-util.h"
-#include "dirent-util.h"
 #include "edid-fundamental.h"
 #include "efi-api.h"
+#include "errno-util.h"
 #include "escape.h"
 #include "fd-util.h"
 #include "fileio.h"
 #include "format-table.h"
+#include "glyph-util.h"
 #include "parse-util.h"
+#include "string-util.h"
 #include "strv.h"
 #include "utf8.h"
 #include "virt.h"
index b5f5cea6d7f98113e70785bbfbff05f98f31f3a8..2cf9b4a47ce72e53fe9862e6eb1eaeaede2f6cf1 100644 (file)
@@ -5,9 +5,7 @@
 #include "analyze-compare-versions.h"
 #include "compare-operator.h"
 #include "log.h"
-#include "macro.h"
 #include "string-util.h"
-#include "strv.h"
 
 int verb_compare_versions(int argc, char *argv[], void *userdata) {
         const char *v1 = ASSERT_PTR(argv[1]), *v2 = ASSERT_PTR(argv[argc-1]);
index f96a8c2b40f74eeffa7a01a6b0c2dc85bee9d690..a0330a6109dfc82b064b88a3b2bc007b086418a0 100644 (file)
@@ -6,9 +6,11 @@
 #include "analyze-condition.h"
 #include "analyze-verify-util.h"
 #include "condition.h"
-#include "conf-parser.h"
 #include "load-fragment.h"
+#include "manager.h"
 #include "service.h"
+#include "string-util.h"
+#include "strv.h"
 
 static int parse_condition(Unit *u, const char *line) {
         assert(u);
index e86aac243635b523592bc40651711bfcde81cc23..0d5cb0030705e4c9762904e149e76306aead05ed 100644 (file)
@@ -1,17 +1,24 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
+#include "sd-bus.h"
+
 #include "alloc-util.h"
 #include "analyze.h"
 #include "analyze-critical-chain.h"
 #include "analyze-time-data.h"
+#include "ansi-color.h"
 #include "bus-error.h"
-#include "copy.h"
-#include "path-util.h"
+#include "bus-util.h"
+#include "glyph-util.h"
+#include "hashmap.h"
+#include "log.h"
+#include "pager.h"
+#include "runtime-scope.h"
 #include "sort-util.h"
 #include "special.h"
 #include "static-destruct.h"
 #include "strv.h"
-#include "terminal-util.h"
+#include "time-util.h"
 
 static Hashmap *unit_times_hashmap = NULL;
 STATIC_DESTRUCTOR_REGISTER(unit_times_hashmap, hashmap_freep);
index 4a87c0c1f1b372e1c741e759d4d4d6b2e86e515d..8d1bee39e97bf18bd5db87b05929a39406ec572b 100644 (file)
@@ -1,12 +1,19 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
+#include "sd-bus.h"
+
 #include "alloc-util.h"
 #include "analyze.h"
 #include "analyze-dot.h"
 #include "bus-error.h"
 #include "bus-locator.h"
 #include "bus-unit-util.h"
+#include "bus-util.h"
 #include "glob-util.h"
+#include "log.h"
+#include "runtime-scope.h"
+#include "string-util.h"
+#include "strv.h"
 #include "terminal-util.h"
 
 static int graph_one_property(
index 5bb2ff2da660a88924f90184eee83231b141065e..624403f2a9cc089e7e7688c40b40780b73662168 100644 (file)
@@ -8,6 +8,10 @@
 #include "bus-locator.h"
 #include "bus-message-util.h"
 #include "bus-util.h"
+#include "pager.h"
+#include "runtime-scope.h"
+#include "strv.h"
+#include "unit-name.h"
 
 static int dump_string(sd_bus *bus) {
         _cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;
index eb60aa0051de6c19ad03d5d168219d97442940b3..4876189be9f55070f493ffc8bb3b09860daeea13 100644 (file)
@@ -4,6 +4,8 @@
 #include "analyze-exit-status.h"
 #include "exit-status.h"
 #include "format-table.h"
+#include "log.h"
+#include "strv.h"
 
 int verb_exit_status(int argc, char *argv[], void *userdata) {
         _cleanup_(table_unrefp) Table *table = NULL;
@@ -51,5 +53,5 @@ int verb_exit_status(int argc, char *argv[], void *userdata) {
         if (r < 0)
                 return log_error_errno(r, "Failed to output table: %m");
 
-        return EXIT_SUCCESS;
+        return 0;
 }
index 8eb09dbd15b074406040f01e2250acfe664febab..1f121515d9d424ef754f1ce3a63f27cae90b0ff2 100644 (file)
@@ -1,12 +1,20 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
+#include <sys/sysmacros.h>
+
+#include "sd-bus.h"
+
 #include "alloc-util.h"
 #include "analyze.h"
 #include "analyze-fdstore.h"
 #include "bus-error.h"
 #include "bus-locator.h"
+#include "bus-util.h"
 #include "fd-util.h"
 #include "format-table.h"
+#include "runtime-scope.h"
+#include "strv.h"
+#include "unit-name.h"
 
 static int dump_fdstore(sd_bus *bus, const char *arg) {
         _cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;
index 0b990db39551f34059c0ed06a07ce9f0a123331b..e82d0342455682464aece27618ddd435a0d4366c 100644 (file)
@@ -1,5 +1,3 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
-#include "sd-bus.h"
-
 int verb_fdstore(int argc, char *argv[], void *userdata);
index 4ba12ad3e388bc5128cadf233b2bc36ec6dd170a..a0a2b5afed4663118d8db0f9ac2fe9d68a142974 100644 (file)
@@ -1,13 +1,19 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
+#include <stdio.h>
+
 #include "alloc-util.h"
 #include "analyze.h"
 #include "analyze-filesystems.h"
+#include "ansi-color.h"
 #include "fileio.h"
 #include "filesystems.h"
+#include "log.h"
+#include "nulstr-util.h"
+#include "pager.h"
 #include "set.h"
+#include "string-util.h"
 #include "strv.h"
-#include "terminal-util.h"
 
 static int load_available_kernel_filesystems(Set **ret) {
         _cleanup_set_free_ Set *filesystems = NULL;
index 71ccbbc992f017b18b3ee06093bf07f6af8ec129..9b95f35438fb26aa5c192ce9106b0e05e45a90c5 100644 (file)
@@ -3,9 +3,10 @@
 #include "alloc-util.h"
 #include "analyze.h"
 #include "analyze-image-policy.h"
+#include "ansi-color.h"
 #include "format-table.h"
 #include "image-policy.h"
-#include "terminal-util.h"
+#include "string-util.h"
 
 static int table_add_designator_line(Table *table, PartitionDesignator d, PartitionPolicyFlags f) {
         _cleanup_free_ char *q = NULL;
index df12f3b36fcfceb262e084c5ce5f8c9dc81310b5..ccb5a987200459d548ae30cf17242c81c7e41765 100644 (file)
@@ -7,12 +7,10 @@
 #include "analyze-inspect-elf.h"
 #include "chase.h"
 #include "elf-util.h"
-#include "errno-util.h"
 #include "fd-util.h"
 #include "format-table.h"
-#include "format-util.h"
 #include "json-util.h"
-#include "path-util.h"
+#include "string-util.h"
 #include "strv.h"
 
 static int analyze_elf(char **filenames, sd_json_format_flags_t json_flags) {
index 854cf6cb806c2826027e7cb4729c71866671b303..f105d7d0326ab7bfb4051eeb52bfdc8c43945666 100644 (file)
@@ -1,7 +1,11 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
+#include "sd-bus.h"
+
 #include "analyze.h"
 #include "analyze-log-control.h"
+#include "bus-util.h"
+#include "runtime-scope.h"
 #include "verb-log-control.h"
 
 int verb_log_control(int argc, char *argv[], void *userdata) {
@@ -18,5 +22,5 @@ int verb_log_control(int argc, char *argv[], void *userdata) {
         if (r < 0)
                 return r;
 
-        return EXIT_SUCCESS;
+        return 0;
 }
index a95b5d9139459a44ba3b8df417b5d6d4acbb2f49..35f533e790ae62c463074fc2f43ea4ba22a71bda 100644 (file)
@@ -7,6 +7,10 @@
 #include "bus-error.h"
 #include "bus-internal.h"
 #include "bus-message-util.h"
+#include "bus-util.h"
+#include "log.h"
+#include "pager.h"
+#include "strv.h"
 
 static int dump_malloc_info(sd_bus *bus, char *service) {
         _cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;
@@ -61,5 +65,5 @@ int verb_malloc(int argc, char *argv[], void *userdata) {
                         return r;
         }
 
-        return EXIT_SUCCESS;
+        return 0;
 }
index f00f4c95a128a42fff6e6eac7489971425d69239..680f67540a71d0ed475ea98233f13d809f697291 100644 (file)
@@ -1,12 +1,16 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
+#include <unistd.h>
+
 #include "alloc-util.h"
 #include "analyze.h"
 #include "analyze-pcrs.h"
+#include "ansi-color.h"
 #include "fileio.h"
 #include "format-table.h"
 #include "hexdecoct.h"
-#include "terminal-util.h"
+#include "log.h"
+#include "strv.h"
 #include "tpm2-util.h"
 
 static int get_pcr_alg(const char **ret) {
index 5e0df52aafa5f790c7ab67c36aee1fc15bc9f964..060d1078f2470d182fefc5eed50b929f1778b8b5 100644 (file)
@@ -1,15 +1,21 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
+#include "sd-bus.h"
+
 #include "alloc-util.h"
 #include "analyze.h"
 #include "analyze-plot.h"
 #include "analyze-time-data.h"
 #include "bus-error.h"
 #include "bus-map-properties.h"
+#include "bus-util.h"
 #include "format-table.h"
 #include "os-util.h"
+#include "runtime-scope.h"
 #include "sort-util.h"
+#include "string-util.h"
 #include "strv.h"
+#include "time-util.h"
 #include "unit-def.h"
 #include "version.h"
 
index 450124693abdef9dc7d70ec93b13e00489b30737..544a7ee1274a12d6b034775e84526b032fcad66a 100644 (file)
@@ -1,11 +1,12 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
-#include <sys/utsname.h>
+#include <linux/capability.h>
 
-#include "af-list.h"
+#include "sd-bus.h"
+
+#include "analyze-verify-util.h"
 #include "analyze.h"
 #include "analyze-security.h"
-#include "analyze-verify.h"
 #include "bus-error.h"
 #include "bus-locator.h"
 #include "bus-map-properties.h"
@@ -17,8 +18,6 @@
 #include "fileio.h"
 #include "format-table.h"
 #include "in-addr-prefix-util.h"
-#include "locale-util.h"
-#include "macro.h"
 #include "manager.h"
 #include "missing_sched.h"
 #include "mkdir.h"
@@ -32,7 +31,6 @@
 #include "set.h"
 #include "stdio-util.h"
 #include "strv.h"
-#include "terminal-util.h"
 #include "unit-def.h"
 #include "unit-name.h"
 #include "unit-serialize.h"
index b1fad4328caa518b4aa6add38c52960ff19d6401..4a2892273c96896baa32d2f43aa0c117f0f26c7c 100644 (file)
@@ -1,10 +1,15 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
+#include "sd-bus.h"
+
 #include "analyze.h"
 #include "analyze-service-watchdogs.h"
 #include "bus-error.h"
 #include "bus-locator.h"
+#include "bus-util.h"
 #include "parse-util.h"
+#include "runtime-scope.h"
+#include "string-util.h"
 
 int verb_service_watchdogs(int argc, char *argv[], void *userdata) {
         _cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;
index 8deffe90f189e348116939993e7874810965cc73..30c18fef273b78997b47616ae163309543b8dcf9 100644 (file)
@@ -1,11 +1,14 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
+#include <stdio.h>
+
 #include "alloc-util.h"
 #include "analyze.h"
 #include "analyze-smbios11.h"
 #include "escape.h"
+#include "glyph-util.h"
+#include "log.h"
 #include "smbios11.h"
-#include "virt.h"
 
 int verb_smbios11(int argc, char *argv[], void *userdata) {
         unsigned n = 0;
index 973f92e64cf029b7513571f826db62ad3474029f..2b81c864a0dacea596a656b5f11bc973db505b1a 100644 (file)
@@ -1,9 +1,13 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
+#include <stdio.h>
+#include <unistd.h>
+
 #include "alloc-util.h"
-#include "analyze.h"
 #include "analyze-srk.h"
 #include "fileio.h"
+#include "log.h"
+#include "terminal-util.h"
 #include "tpm2-util.h"
 
 int verb_srk(int argc, char *argv[], void *userdata) {
index 593d6afb200da59abd4eab6b78cffaaa3ab81b75..41ff86e8dd537b0d91032bb5ee1ea6598873e3d1 100644 (file)
@@ -3,13 +3,15 @@
 #include "alloc-util.h"
 #include "analyze.h"
 #include "analyze-syscall-filter.h"
+#include "ansi-color.h"
 #include "fd-util.h"
 #include "fileio.h"
+#include "log.h"
 #include "nulstr-util.h"
+#include "pager.h"
 #include "seccomp-util.h"
 #include "set.h"
 #include "strv.h"
-#include "terminal-util.h"
 
 #if HAVE_SECCOMP
 
index ccc7dadbc1b197b4c349f7785bd1407cb77eb9d3..93f1bd399e74baa74276d141004a956e7fb63bb0 100644 (file)
@@ -1,5 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
+#include "sd-bus.h"
+
 #include "alloc-util.h"
 #include "analyze.h"
 #include "analyze-time-data.h"
@@ -7,9 +9,13 @@
 #include "bus-locator.h"
 #include "bus-map-properties.h"
 #include "bus-unit-util.h"
-#include "memory-util.h"
+#include "bus-util.h"
+#include "log.h"
+#include "runtime-scope.h"
 #include "special.h"
+#include "string-util.h"
 #include "strv.h"
+#include "time-util.h"
 
 static void subtract_timestamp(usec_t *a, usec_t b) {
         assert(a);
index e8b924447648704d99dfa976bba721a46de8aaa3..8fa8e2e4755f56079d0d6958e518e671674ab861 100644 (file)
@@ -1,10 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "sd-bus.h"
-
-#include "memory-util.h"
-#include "time-util.h"
+#include "forward.h"
 #include "unit-def.h"
 
 typedef struct BootTimes {
index 390b1d8e7ee26bc6eeade5d72278815d14a87cc8..da69eebeb4e9d8f961156020913471a5fb8cf5b1 100644 (file)
@@ -1,9 +1,13 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
+#include "sd-bus.h"
+
 #include "alloc-util.h"
 #include "analyze.h"
 #include "analyze-time.h"
 #include "analyze-time-data.h"
+#include "bus-util.h"
+#include "runtime-scope.h"
 
 int verb_time(int argc, char *argv[], void *userdata) {
         _cleanup_(sd_bus_flush_close_unrefp) sd_bus *bus = NULL;
index 5b29eedb09eca507c9ec9499ec6eb111f4a29ecc..cb6e4f00fe1214703fa067fcf14e386e101365e8 100644 (file)
@@ -2,11 +2,12 @@
 
 #include "analyze.h"
 #include "analyze-timespan.h"
-#include "calendarspec.h"
+#include "ansi-color.h"
 #include "format-table.h"
 #include "glyph-util.h"
+#include "log.h"
 #include "strv.h"
-#include "terminal-util.h"
+#include "time-util.h"
 
 int verb_timespan(int argc, char *argv[], void *userdata) {
         STRV_FOREACH(input_timespan, strv_skip(argv, 1)) {
index 791fa28b1fff55a85a0e3e9c1d777ab90a50b3b9..227113326834529a400de2b7f7512d563824d6d6 100644 (file)
@@ -2,8 +2,12 @@
 
 #include "analyze.h"
 #include "analyze-timestamp.h"
+#include "ansi-color.h"
+#include "errno-util.h"
 #include "format-table.h"
-#include "terminal-util.h"
+#include "log.h"
+#include "strv.h"
+#include "time-util.h"
 
 static int test_timestamp_one(const char *p) {
         _cleanup_(table_unrefp) Table *table = NULL;
index e00c157abca31f75e8746272d864ef805553fa26..2d59d1808fdcbd3502b0c00af7202a7004a01546 100644 (file)
@@ -1,12 +1,17 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
+#include <stdio.h>
+
 #include <fnmatch.h>
 
 #include "alloc-util.h"
 #include "analyze.h"
 #include "analyze-unit-files.h"
+#include "hashmap.h"
+#include "log.h"
 #include "path-lookup.h"
 #include "strv.h"
+#include "unit-file.h"
 
 static bool strv_fnmatch_strv_or_empty(char* const* patterns, char **strv, int flags) {
         STRV_FOREACH(s, strv)
index 17f18e0ab6f6ecb80c8ebcdf7d556468a3a237bf..500b768299080bb4d62e9e4f001935c3d7be2432 100644 (file)
@@ -1,5 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
+#include <stdio.h>
+
 #include "analyze.h"
 #include "analyze-unit-paths.h"
 #include "path-lookup.h"
@@ -16,5 +18,5 @@ int verb_unit_paths(int argc, char *argv[], void *userdata) {
         STRV_FOREACH(p, paths.search_path)
                 puts(*p);
 
-        return EXIT_SUCCESS;
+        return 0;
 }
index 4e034ae7adfb365ae682383072aacba8b670a111..781b941d11043b86253168a822b4f92f5e10b612 100644 (file)
@@ -2,17 +2,21 @@
 
 #include <stdlib.h>
 
+#include "sd-bus.h"
+
 #include "all-units.h"
 #include "alloc-util.h"
 #include "analyze.h"
 #include "analyze-verify-util.h"
 #include "bus-error.h"
-#include "bus-util.h"
+#include "errno-util.h"
 #include "log.h"
 #include "manager.h"
 #include "pager.h"
 #include "path-util.h"
+#include "set.h"
 #include "string-table.h"
+#include "string-util.h"
 #include "strv.h"
 #include "unit-name.h"
 #include "unit-serialize.h"
index 0834c59c576cff87cd312871182ee051dbfe785d..ac54aa7a84270731630f60c74a739eeeea7d61e1 100644 (file)
@@ -1,10 +1,10 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include <stdbool.h>
+#include "forward.h"
 
-#include "execute.h"
-#include "path-lookup.h"
+typedef struct ExecCommand ExecCommand;
+typedef struct Unit Unit;
 
 typedef enum RecursiveErrors {
         RECURSIVE_ERRORS_YES,               /* Look for errors in all associated units */
index 02a9dbc646256dcc7151660de0048c417650aacd..b87fc45767d6d099058e1705251c60079437b612 100644 (file)
@@ -2,10 +2,15 @@
 
 #include "alloc-util.h"
 #include "analyze.h"
-#include "analyze-verify.h"
 #include "analyze-verify-util.h"
+#include "analyze-verify.h"
 #include "copy.h"
+#include "extract-word.h"
+#include "log.h"
+#include "path-util.h"
 #include "rm-rf.h"
+#include "runtime-scope.h"
+#include "strv.h"
 #include "tmpfile-util.h"
 
 static int process_aliases(char *argv[], char *tempdir, char ***ret) {
index f6a19f306fa2619f014cb7114404800536637e7d..5c547197c8d7c051f271677bbb834762674b4ffa 100644 (file)
@@ -4,14 +4,15 @@
 ***/
 
 #include <getopt.h>
-#include <inttypes.h>
+#include <locale.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <unistd.h>
 
 #include "sd-bus.h"
+#include "sd-json.h"
 
 #include "alloc-util.h"
+#include "analyze-verify-util.h"
 #include "analyze.h"
 #include "analyze-architectures.h"
 #include "analyze-blame.h"
@@ -40,7 +41,6 @@
 #include "analyze-srk.h"
 #include "analyze-syscall-filter.h"
 #include "analyze-time.h"
-#include "analyze-time-data.h"
 #include "analyze-timespan.h"
 #include "analyze-timestamp.h"
 #include "analyze-unit-files.h"
 #include "analyze-verify.h"
 #include "build.h"
 #include "bus-error.h"
-#include "bus-locator.h"
-#include "bus-map-properties.h"
-#include "bus-unit-util.h"
+#include "bus-util.h"
 #include "calendarspec.h"
-#include "cap-list.h"
-#include "capability-util.h"
-#include "conf-files.h"
-#include "constants.h"
-#include "copy.h"
-#include "exit-status.h"
-#include "extract-word.h"
-#include "fd-util.h"
-#include "fileio.h"
-#include "filesystems.h"
-#include "format-table.h"
-#include "glob-util.h"
-#include "hashmap.h"
+#include "dissect-image.h"
 #include "image-policy.h"
-#include "locale-util.h"
 #include "log.h"
+#include "loop-util.h"
 #include "main-func.h"
 #include "mount-util.h"
-#include "nulstr-util.h"
 #include "pager.h"
 #include "parse-argument.h"
 #include "parse-util.h"
 #include "path-util.h"
 #include "pretty-print.h"
-#include "rm-rf.h"
-#if HAVE_SECCOMP
-#  include "seccomp-util.h"
-#endif
-#include "sort-util.h"
-#include "special.h"
-#include "stat-util.h"
+#include "runtime-scope.h"
 #include "string-table.h"
+#include "string-util.h"
 #include "strv.h"
-#include "strxcpyx.h"
-#include "terminal-util.h"
 #include "time-util.h"
 #include "unit-name.h"
-#include "verb-log-control.h"
 #include "verbs.h"
 
 DotMode arg_dot = DEP_ALL;
index 1ab018e071167f926ff287a6cc75d5c61b4055ef..ac31dfce8320c049ad94ca16351c9cc70f22c3c8 100644 (file)
@@ -1,16 +1,9 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include <stdbool.h>
+#include "forward.h"
 
-#include "sd-json.h"
-
-#include "analyze-verify-util.h"
-#include "bus-util.h"
-#include "pager.h"
-#include "pretty-print.h"
-#include "time-util.h"
-#include "unit-file.h"
+typedef enum RecursiveErrors RecursiveErrors;
 
 typedef enum DotMode {
         DEP_ALL,
index e8ed7b54359e4bf851c32c3f2a9d31b08b18e8a2..8355ae6a807f5a78d16e7a3fd9ada128da4ebfbc 100644 (file)
@@ -1,6 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
 #include "analyze-verify-util.h"
+#include "execute.h"
 #include "tests.h"
 
 const char *arg_instance = "test_instance";