Add missing includes in header files
This fixes various issues found by globally reordering the include sections of all .c files.
This commit is contained in:
parent
76f282c636
commit
c1ff5570f4
|
@ -21,5 +21,7 @@
|
|||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include "boot.h"
|
||||
|
||||
int boot_loader_read_entries(struct boot_info *info);
|
||||
int boot_loader_find_active_entry(struct boot_info *info, const char *loader_active);
|
||||
|
|
|
@ -21,7 +21,10 @@
|
|||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "list.h"
|
||||
#include "time-util.h"
|
||||
|
||||
typedef struct CGroupContext CGroupContext;
|
||||
typedef struct CGroupDeviceAllow CGroupDeviceAllow;
|
||||
|
|
|
@ -199,6 +199,7 @@ struct ExecContext {
|
|||
};
|
||||
|
||||
#include "cgroup.h"
|
||||
#include "cgroup-util.h"
|
||||
|
||||
struct ExecParameters {
|
||||
char **argv;
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
***/
|
||||
|
||||
typedef struct Path Path;
|
||||
typedef struct PathSpec PathSpec;
|
||||
|
||||
#include "unit.h"
|
||||
#include "mount.h"
|
||||
|
|
|
@ -259,8 +259,8 @@ typedef enum UnitSetPropertiesMode {
|
|||
#include "automount.h"
|
||||
#include "swap.h"
|
||||
#include "timer.h"
|
||||
#include "path.h"
|
||||
#include "slice.h"
|
||||
#include "path.h"
|
||||
#include "scope.h"
|
||||
|
||||
struct UnitVTable {
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
#include "hashmap.h"
|
||||
#include "set.h"
|
||||
#include "journal-file.h"
|
||||
#include "sd-journal.h"
|
||||
|
||||
typedef struct Match Match;
|
||||
typedef struct Location Location;
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
#include <net/ethernet.h>
|
||||
|
||||
#include "macro.h"
|
||||
#include "sparse-endian.h"
|
||||
#include "sd-id128.h"
|
||||
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
/*
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include "macro.h"
|
||||
|
||||
int bus_gvariant_get_size(const char *signature) _pure_;
|
||||
int bus_gvariant_get_alignment(const char *signature) _pure_;
|
||||
int bus_gvariant_is_fixed_size(const char *signature) _pure_;
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "macro.h"
|
||||
#include "sd-bus.h"
|
||||
#include "sd-bus-protocol.h"
|
||||
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
***/
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
typedef struct XMLIntrospectOps {
|
||||
int (*on_path)(const char *path, void *userdata);
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "macro.h"
|
||||
#include "sparse-endian.h"
|
||||
|
||||
/* Stolen from btrfs' ctree.h */
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include "util.h"
|
||||
|
||||
int clock_is_localtime(void);
|
||||
int clock_set_timezone(int *min);
|
||||
int clock_reset_timewarp(void);
|
||||
|
|
|
@ -24,6 +24,8 @@
|
|||
#include <stdbool.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include "macro.h"
|
||||
|
||||
bool env_name_is_valid(const char *e);
|
||||
bool env_value_is_valid(const char *e);
|
||||
bool env_assignment_is_valid(const char *e);
|
||||
|
|
|
@ -23,7 +23,9 @@
|
|||
|
||||
#include <sys/types.h>
|
||||
#include <signal.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "util.h"
|
||||
#include "sd-event.h"
|
||||
|
||||
typedef struct PTYForward PTYForward;
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
typedef struct UidRange {
|
||||
|
|
Loading…
Reference in a new issue