main-func: Reduce transitive includes

Let's move some logic from _DEFINE_MAIN_FUNCTION() and other places
in main-func.h into functions that we implement in main-func.c to
allow moving some included headers from the header to the .c file.
This commit is contained in:
Daan De Meyer
2025-05-06 10:07:27 +02:00
parent b75c6c3c3f
commit 76d62b63ef
48 changed files with 114 additions and 41 deletions
+2
View File
@@ -7,10 +7,12 @@
#include <sys/types.h>
#include "sd-bus.h"
#include "sd-daemon.h"
#include "sd-event.h"
#include "sd-json.h"
#include "alloc-util.h"
#include "argv-util.h"
#include "ask-password-agent.h"
#include "build.h"
#include "bus-error.h"