tree-wide: Make sure all headers are standalone

Let's make sure all of our headers include everything they require.
This commit is contained in:
Daan De Meyer
2025-04-23 10:33:38 +02:00
parent 44de729cdc
commit 401a22bfc1
81 changed files with 128 additions and 27 deletions
+1
View File
@@ -2,6 +2,7 @@
#pragma once
#include <inttypes.h>
#include <net/ethernet.h>
#include "conf-parser.h"
#include "in-addr-util.h"
+2
View File
@@ -1,6 +1,8 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
#include <stdbool.h>
typedef struct Address Address;
typedef struct Link Link;
+2
View File
@@ -1,5 +1,7 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
typedef struct Address Address;
void address_add_netlabel(const Address *address);
void address_del_netlabel(const Address *address);
+1
View File
@@ -17,6 +17,7 @@ typedef struct Link Link;
typedef struct Manager Manager;
typedef struct Network Network;
typedef struct NextHop NextHop;
typedef struct Request Request;
typedef int (*nexthop_netlink_handler_t)(
sd_netlink *rtnl,
sd_netlink_message *m,
+1
View File
@@ -15,6 +15,7 @@
#include "ndisc-option.h"
#include "networkd-util.h"
typedef struct Address Address;
typedef struct Link Link;
typedef struct Network Network;
+1
View File
@@ -5,6 +5,7 @@
#include <stdbool.h>
#include "conf-parser.h"
#include "in-addr-util.h"
typedef struct Link Link;
typedef struct Manager Manager;
+2
View File
@@ -1,6 +1,8 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
#include <stdbool.h>
typedef struct Link Link;
typedef struct Manager Manager;
+1
View File
@@ -4,6 +4,7 @@
#include <inttypes.h>
#include "sd-device.h"
#include "sd-netlink.h"
#include "macro.h"