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:
Thomas Hindoe Paaboel Andersen
2015-02-12 20:44:32 +01:00
parent 76f282c636
commit c1ff5570f4
16 changed files with 24 additions and 1 deletions
+2
View File
@@ -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);
+3
View File
@@ -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;
+1
View File
@@ -199,6 +199,7 @@ struct ExecContext {
};
#include "cgroup.h"
#include "cgroup-util.h"
struct ExecParameters {
char **argv;
+1
View File
@@ -22,6 +22,7 @@
***/
typedef struct Path Path;
typedef struct PathSpec PathSpec;
#include "unit.h"
#include "mount.h"
+1 -1
View File
@@ -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 {
+1
View File
@@ -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;
+1
View File
@@ -23,6 +23,7 @@
#include <net/ethernet.h>
#include "macro.h"
#include "sparse-endian.h"
#include "sd-id128.h"
+2
View File
@@ -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>
/*
+2
View File
@@ -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_;
+1
View File
@@ -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);
+1
View File
@@ -2,6 +2,7 @@
#pragma once
#include "macro.h"
#include "sparse-endian.h"
/* Stolen from btrfs' ctree.h */
+2
View File
@@ -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);
+2
View File
@@ -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);
+2
View File
@@ -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;
+1
View File
@@ -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 {