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-10 12:56:53 +01:00
parent 76f282c636
commit c1ff5570f4
16 changed files with 24 additions and 1 deletions

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);

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;

View file

@ -199,6 +199,7 @@ struct ExecContext {
};
#include "cgroup.h"
#include "cgroup-util.h"
struct ExecParameters {
char **argv;

View file

@ -22,6 +22,7 @@
***/
typedef struct Path Path;
typedef struct PathSpec PathSpec;
#include "unit.h"
#include "mount.h"

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 {

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;

View file

@ -23,6 +23,7 @@
#include <net/ethernet.h>
#include "macro.h"
#include "sparse-endian.h"
#include "sd-id128.h"

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>
/*

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_;

View file

@ -23,6 +23,7 @@
#include <stdbool.h>
#include "macro.h"
#include "sd-bus.h"
#include "sd-bus-protocol.h"

View file

@ -22,6 +22,7 @@
***/
#include <inttypes.h>
#include <stdbool.h>
typedef struct XMLIntrospectOps {
int (*on_path)(const char *path, void *userdata);

View file

@ -2,6 +2,7 @@
#pragma once
#include "macro.h"
#include "sparse-endian.h"
/* Stolen from btrfs' ctree.h */

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);

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);

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;

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 {