tree-wide: sort includes in *.h
This is a continuation of the previous include sort patch, which only sorted for .c files.
This commit is contained in:
parent
81ec9ce4a7
commit
71d35b6b55
|
@ -21,8 +21,8 @@
|
||||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <stdint.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#define AUDIT_SESSION_INVALID ((uint32_t) -1)
|
#define AUDIT_SESSION_INVALID ((uint32_t) -1)
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include "macro.h"
|
|
||||||
#include "hashmap.h"
|
#include "hashmap.h"
|
||||||
|
#include "macro.h"
|
||||||
|
|
||||||
typedef struct Bitmap Bitmap;
|
typedef struct Bitmap Bitmap;
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
* time, a la cron */
|
* time, a la cron */
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
typedef struct CalendarComponent {
|
typedef struct CalendarComponent {
|
||||||
|
|
|
@ -21,12 +21,12 @@
|
||||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include "set.h"
|
|
||||||
#include "def.h"
|
#include "def.h"
|
||||||
|
#include "set.h"
|
||||||
|
|
||||||
/* An enum of well known cgroup controllers */
|
/* An enum of well known cgroup controllers */
|
||||||
typedef enum CGroupController {
|
typedef enum CGroupController {
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
/* What characters are special in the shell? */
|
/* What characters are special in the shell? */
|
||||||
/* must be escaped outside and inside double-quotes */
|
/* must be escaped outside and inside double-quotes */
|
||||||
|
|
|
@ -21,9 +21,9 @@
|
||||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <stdio.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
|
||||||
#include "macro.h"
|
#include "macro.h"
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "fileio.h"
|
#include "fileio.h"
|
||||||
|
|
||||||
int write_string_file_atomic_label(const char *fn, const char *line);
|
int write_string_file_atomic_label(const char *fn, const char *line);
|
||||||
|
|
|
@ -22,10 +22,10 @@
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#include <limits.h>
|
||||||
#include <sys/inotify.h>
|
#include <sys/inotify.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <limits.h>
|
|
||||||
|
|
||||||
#include "time-util.h"
|
#include "time-util.h"
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <stdint.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
char *utf8_prev_char (const char *p);
|
char *utf8_prev_char (const char *p);
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
/* This is minimal version of Linux' linux/ioprio.h header file, which
|
/* This is minimal version of Linux' linux/ioprio.h header file, which
|
||||||
* is licensed GPL2 */
|
* is licensed GPL2 */
|
||||||
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <sys/syscall.h>
|
#include <sys/syscall.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Gives us 8 prio classes with 13-bits of data for each class
|
* Gives us 8 prio classes with 13-bits of data for each class
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
int memfd_new(const char *name);
|
int memfd_new(const char *name);
|
||||||
int memfd_new_and_map(const char *name, size_t sz, void **p);
|
int memfd_new_and_map(const char *name, size_t sz, void **p);
|
||||||
|
|
|
@ -19,12 +19,12 @@
|
||||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include <stdbool.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <alloca.h>
|
#include <alloca.h>
|
||||||
|
#include <signal.h>
|
||||||
|
#include <stdbool.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <signal.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include "formats-util.h"
|
#include "formats-util.h"
|
||||||
#include "macro.h"
|
#include "macro.h"
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include <sys/socket.h>
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
|
||||||
#include "macro.h"
|
#include "macro.h"
|
||||||
|
|
||||||
|
|
|
@ -21,9 +21,9 @@
|
||||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include <sys/socket.h>
|
|
||||||
#include <netinet/in.h>
|
|
||||||
#include <netinet/ether.h>
|
#include <netinet/ether.h>
|
||||||
|
#include <netinet/in.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
#include <sys/un.h>
|
#include <sys/un.h>
|
||||||
#include <linux/netlink.h>
|
#include <linux/netlink.h>
|
||||||
#include <linux/if_packet.h>
|
#include <linux/if_packet.h>
|
||||||
|
|
|
@ -19,8 +19,8 @@
|
||||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include <stdbool.h>
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
#include <stdbool.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "macro.h"
|
#include "macro.h"
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
bool uid_is_valid(uid_t uid);
|
bool uid_is_valid(uid_t uid);
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
#include "list.h"
|
#include "list.h"
|
||||||
|
|
||||||
#define MAXCPUS 16
|
#define MAXCPUS 16
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
|
|
||||||
#include "bootchart.h"
|
#include "bootchart.h"
|
||||||
|
|
||||||
double gettime_ns(void);
|
double gettime_ns(void);
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
#include "list.h"
|
|
||||||
#include "hashmap.h"
|
#include "hashmap.h"
|
||||||
|
#include "list.h"
|
||||||
|
|
||||||
typedef enum PolicyItemType {
|
typedef enum PolicyItemType {
|
||||||
_POLICY_ITEM_TYPE_UNSET = 0,
|
_POLICY_ITEM_TYPE_UNSET = 0,
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include "sd-bus.h"
|
#include "sd-bus.h"
|
||||||
|
|
||||||
#include "bus-xml-policy.h"
|
#include "bus-xml-policy.h"
|
||||||
#include "proxy.h"
|
#include "proxy.h"
|
||||||
|
|
||||||
|
|
|
@ -24,8 +24,8 @@
|
||||||
typedef struct BusEndpoint BusEndpoint;
|
typedef struct BusEndpoint BusEndpoint;
|
||||||
typedef struct BusEndpointPolicy BusEndpointPolicy;
|
typedef struct BusEndpointPolicy BusEndpointPolicy;
|
||||||
|
|
||||||
#include "hashmap.h"
|
|
||||||
#include "bus-policy.h"
|
#include "bus-policy.h"
|
||||||
|
#include "hashmap.h"
|
||||||
|
|
||||||
struct BusEndpointPolicy {
|
struct BusEndpointPolicy {
|
||||||
char *name;
|
char *name;
|
||||||
|
|
|
@ -21,9 +21,9 @@
|
||||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||||
***/
|
***/
|
||||||
|
|
||||||
|
#include "kdbus.h"
|
||||||
#include "list.h"
|
#include "list.h"
|
||||||
#include "macro.h"
|
#include "macro.h"
|
||||||
#include "kdbus.h"
|
|
||||||
|
|
||||||
typedef struct BusNamePolicy BusNamePolicy;
|
typedef struct BusNamePolicy BusNamePolicy;
|
||||||
|
|
||||||
|
|
|
@ -112,8 +112,8 @@ struct CGroupContext {
|
||||||
bool delegate;
|
bool delegate;
|
||||||
};
|
};
|
||||||
|
|
||||||
#include "unit.h"
|
|
||||||
#include "cgroup-util.h"
|
#include "cgroup-util.h"
|
||||||
|
#include "unit.h"
|
||||||
|
|
||||||
void cgroup_context_init(CGroupContext *c);
|
void cgroup_context_init(CGroupContext *c);
|
||||||
void cgroup_context_done(CGroupContext *c);
|
void cgroup_context_done(CGroupContext *c);
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
|
|
||||||
#include "sd-bus.h"
|
#include "sd-bus.h"
|
||||||
|
|
||||||
#include "unit.h"
|
|
||||||
#include "kill.h"
|
#include "kill.h"
|
||||||
|
#include "unit.h"
|
||||||
|
|
||||||
extern const sd_bus_vtable bus_kill_vtable[];
|
extern const sd_bus_vtable bus_kill_vtable[];
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include "sd-bus.h"
|
#include "sd-bus.h"
|
||||||
|
|
||||||
#include "unit.h"
|
#include "unit.h"
|
||||||
|
|
||||||
extern const sd_bus_vtable bus_scope_vtable[];
|
extern const sd_bus_vtable bus_scope_vtable[];
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include "sd-bus.h"
|
#include "sd-bus.h"
|
||||||
|
|
||||||
#include "unit.h"
|
#include "unit.h"
|
||||||
|
|
||||||
extern const sd_bus_vtable bus_service_vtable[];
|
extern const sd_bus_vtable bus_service_vtable[];
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include "sd-bus.h"
|
#include "sd-bus.h"
|
||||||
|
|
||||||
#include "unit.h"
|
#include "unit.h"
|
||||||
|
|
||||||
extern const sd_bus_vtable bus_slice_vtable[];
|
extern const sd_bus_vtable bus_slice_vtable[];
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include "sd-bus.h"
|
#include "sd-bus.h"
|
||||||
|
|
||||||
#include "unit.h"
|
#include "unit.h"
|
||||||
|
|
||||||
extern const sd_bus_vtable bus_socket_vtable[];
|
extern const sd_bus_vtable bus_socket_vtable[];
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include "sd-bus.h"
|
#include "sd-bus.h"
|
||||||
|
|
||||||
#include "unit.h"
|
#include "unit.h"
|
||||||
|
|
||||||
extern const sd_bus_vtable bus_swap_vtable[];
|
extern const sd_bus_vtable bus_swap_vtable[];
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include "sd-bus.h"
|
#include "sd-bus.h"
|
||||||
|
|
||||||
#include "unit.h"
|
#include "unit.h"
|
||||||
|
|
||||||
extern const sd_bus_vtable bus_timer_vtable[];
|
extern const sd_bus_vtable bus_timer_vtable[];
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include "sd-bus.h"
|
#include "sd-bus.h"
|
||||||
|
|
||||||
#include "unit.h"
|
#include "unit.h"
|
||||||
|
|
||||||
extern const sd_bus_vtable bus_unit_vtable[];
|
extern const sd_bus_vtable bus_unit_vtable[];
|
||||||
|
|
|
@ -27,16 +27,16 @@ typedef struct ExecContext ExecContext;
|
||||||
typedef struct ExecRuntime ExecRuntime;
|
typedef struct ExecRuntime ExecRuntime;
|
||||||
typedef struct ExecParameters ExecParameters;
|
typedef struct ExecParameters ExecParameters;
|
||||||
|
|
||||||
#include <sys/capability.h>
|
#include <sched.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sched.h>
|
#include <sys/capability.h>
|
||||||
|
|
||||||
#include "list.h"
|
#include "bus-endpoint.h"
|
||||||
#include "fdset.h"
|
#include "fdset.h"
|
||||||
|
#include "list.h"
|
||||||
#include "missing.h"
|
#include "missing.h"
|
||||||
#include "namespace.h"
|
#include "namespace.h"
|
||||||
#include "bus-endpoint.h"
|
|
||||||
|
|
||||||
typedef enum ExecUtmpMode {
|
typedef enum ExecUtmpMode {
|
||||||
EXEC_UTMP_INIT,
|
EXEC_UTMP_INIT,
|
||||||
|
@ -204,8 +204,8 @@ struct ExecContext {
|
||||||
BusEndpoint *bus_endpoint;
|
BusEndpoint *bus_endpoint;
|
||||||
};
|
};
|
||||||
|
|
||||||
#include "cgroup.h"
|
|
||||||
#include "cgroup-util.h"
|
#include "cgroup-util.h"
|
||||||
|
#include "cgroup.h"
|
||||||
|
|
||||||
struct ExecParameters {
|
struct ExecParameters {
|
||||||
char **argv;
|
char **argv;
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
#include "sd-event.h"
|
#include "sd-event.h"
|
||||||
|
|
||||||
#include "list.h"
|
#include "list.h"
|
||||||
|
#include "unit-name.h"
|
||||||
|
|
||||||
typedef struct Job Job;
|
typedef struct Job Job;
|
||||||
typedef struct JobDependency JobDependency;
|
typedef struct JobDependency JobDependency;
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include "unit.h"
|
|
||||||
#include "dropin.h"
|
#include "dropin.h"
|
||||||
|
#include "unit.h"
|
||||||
|
|
||||||
/* Read service data supplementary drop-in directories */
|
/* Read service data supplementary drop-in directories */
|
||||||
|
|
||||||
|
|
|
@ -21,12 +21,13 @@
|
||||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||||
***/
|
***/
|
||||||
|
|
||||||
|
#include <libmount.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <libmount.h>
|
|
||||||
|
|
||||||
#include "sd-bus.h"
|
#include "sd-bus.h"
|
||||||
#include "sd-event.h"
|
#include "sd-event.h"
|
||||||
|
|
||||||
#include "cgroup-util.h"
|
#include "cgroup-util.h"
|
||||||
#include "fdset.h"
|
#include "fdset.h"
|
||||||
#include "hashmap.h"
|
#include "hashmap.h"
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
|
|
||||||
typedef struct Mount Mount;
|
typedef struct Mount Mount;
|
||||||
|
|
||||||
#include "kill.h"
|
|
||||||
#include "execute.h"
|
#include "execute.h"
|
||||||
|
#include "kill.h"
|
||||||
|
|
||||||
typedef enum MountExecCommand {
|
typedef enum MountExecCommand {
|
||||||
MOUNT_EXEC_MOUNT,
|
MOUNT_EXEC_MOUNT,
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include "sd-bus.h"
|
#include "sd-bus.h"
|
||||||
|
|
||||||
#include "bus-util.h"
|
#include "bus-util.h"
|
||||||
#include "manager.h"
|
#include "manager.h"
|
||||||
|
|
||||||
|
|
|
@ -24,10 +24,10 @@
|
||||||
typedef struct Service Service;
|
typedef struct Service Service;
|
||||||
typedef struct ServiceFDStore ServiceFDStore;
|
typedef struct ServiceFDStore ServiceFDStore;
|
||||||
|
|
||||||
|
#include "exit-status.h"
|
||||||
|
#include "kill.h"
|
||||||
#include "path.h"
|
#include "path.h"
|
||||||
#include "ratelimit.h"
|
#include "ratelimit.h"
|
||||||
#include "kill.h"
|
|
||||||
#include "exit-status.h"
|
|
||||||
|
|
||||||
typedef enum ServiceRestart {
|
typedef enum ServiceRestart {
|
||||||
SERVICE_RESTART_NO,
|
SERVICE_RESTART_NO,
|
||||||
|
|
|
@ -23,9 +23,9 @@
|
||||||
|
|
||||||
typedef struct Socket Socket;
|
typedef struct Socket Socket;
|
||||||
|
|
||||||
#include "socket-util.h"
|
|
||||||
#include "mount.h"
|
#include "mount.h"
|
||||||
#include "service.h"
|
#include "service.h"
|
||||||
|
#include "socket-util.h"
|
||||||
|
|
||||||
typedef enum SocketExecCommand {
|
typedef enum SocketExecCommand {
|
||||||
SOCKET_EXEC_START_PRE,
|
SOCKET_EXEC_START_PRE,
|
||||||
|
|
|
@ -23,10 +23,10 @@
|
||||||
|
|
||||||
typedef struct Transaction Transaction;
|
typedef struct Transaction Transaction;
|
||||||
|
|
||||||
#include "unit.h"
|
|
||||||
#include "manager.h"
|
|
||||||
#include "job.h"
|
|
||||||
#include "hashmap.h"
|
#include "hashmap.h"
|
||||||
|
#include "job.h"
|
||||||
|
#include "manager.h"
|
||||||
|
#include "unit.h"
|
||||||
|
|
||||||
struct Transaction {
|
struct Transaction {
|
||||||
/* Jobs to be added */
|
/* Jobs to be added */
|
||||||
|
|
|
@ -30,11 +30,11 @@ typedef struct UnitVTable UnitVTable;
|
||||||
typedef struct UnitRef UnitRef;
|
typedef struct UnitRef UnitRef;
|
||||||
typedef struct UnitStatusMessageFormats UnitStatusMessageFormats;
|
typedef struct UnitStatusMessageFormats UnitStatusMessageFormats;
|
||||||
|
|
||||||
#include "list.h"
|
|
||||||
#include "condition.h"
|
#include "condition.h"
|
||||||
#include "install.h"
|
|
||||||
#include "unit-name.h"
|
|
||||||
#include "failure-action.h"
|
#include "failure-action.h"
|
||||||
|
#include "install.h"
|
||||||
|
#include "list.h"
|
||||||
|
#include "unit-name.h"
|
||||||
|
|
||||||
typedef enum KillOperation {
|
typedef enum KillOperation {
|
||||||
KILL_TERMINATE,
|
KILL_TERMINATE,
|
||||||
|
@ -242,16 +242,16 @@ typedef enum UnitSetPropertiesMode {
|
||||||
UNIT_PERSISTENT = 2,
|
UNIT_PERSISTENT = 2,
|
||||||
} UnitSetPropertiesMode;
|
} UnitSetPropertiesMode;
|
||||||
|
|
||||||
#include "socket.h"
|
|
||||||
#include "busname.h"
|
|
||||||
#include "target.h"
|
|
||||||
#include "device.h"
|
|
||||||
#include "automount.h"
|
#include "automount.h"
|
||||||
#include "swap.h"
|
#include "busname.h"
|
||||||
#include "timer.h"
|
#include "device.h"
|
||||||
#include "slice.h"
|
|
||||||
#include "path.h"
|
#include "path.h"
|
||||||
#include "scope.h"
|
#include "scope.h"
|
||||||
|
#include "slice.h"
|
||||||
|
#include "socket.h"
|
||||||
|
#include "swap.h"
|
||||||
|
#include "target.h"
|
||||||
|
#include "timer.h"
|
||||||
|
|
||||||
struct UnitVTable {
|
struct UnitVTable {
|
||||||
/* How much memory does an object of this unit type need */
|
/* How much memory does an object of this unit type need */
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include "sd-event.h"
|
#include "sd-event.h"
|
||||||
|
|
||||||
|
|
|
@ -22,8 +22,9 @@
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include "sd-event.h"
|
#include "sd-event.h"
|
||||||
#include "macro.h"
|
|
||||||
#include "import-compress.h"
|
#include "import-compress.h"
|
||||||
|
#include "macro.h"
|
||||||
|
|
||||||
typedef struct RawExport RawExport;
|
typedef struct RawExport RawExport;
|
||||||
|
|
||||||
|
|
|
@ -22,8 +22,9 @@
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include "sd-event.h"
|
#include "sd-event.h"
|
||||||
#include "macro.h"
|
|
||||||
#include "import-compress.h"
|
#include "import-compress.h"
|
||||||
|
#include "macro.h"
|
||||||
|
|
||||||
typedef struct TarExport TarExport;
|
typedef struct TarExport TarExport;
|
||||||
|
|
||||||
|
|
|
@ -21,11 +21,10 @@
|
||||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include <sys/types.h>
|
|
||||||
|
|
||||||
#include <lzma.h>
|
|
||||||
#include <zlib.h>
|
|
||||||
#include <bzlib.h>
|
#include <bzlib.h>
|
||||||
|
#include <lzma.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <zlib.h>
|
||||||
|
|
||||||
#include "macro.h"
|
#include "macro.h"
|
||||||
|
|
||||||
|
|
|
@ -22,8 +22,9 @@
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include "sd-event.h"
|
#include "sd-event.h"
|
||||||
#include "macro.h"
|
|
||||||
#include "import-util.h"
|
#include "import-util.h"
|
||||||
|
#include "macro.h"
|
||||||
|
|
||||||
typedef struct RawImport RawImport;
|
typedef struct RawImport RawImport;
|
||||||
|
|
||||||
|
|
|
@ -22,8 +22,9 @@
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include "sd-event.h"
|
#include "sd-event.h"
|
||||||
#include "macro.h"
|
|
||||||
#include "import-util.h"
|
#include "import-util.h"
|
||||||
|
#include "macro.h"
|
||||||
|
|
||||||
typedef struct TarImport TarImport;
|
typedef struct TarImport TarImport;
|
||||||
|
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
#include "pull-job.h"
|
|
||||||
#include "import-util.h"
|
#include "import-util.h"
|
||||||
|
#include "pull-job.h"
|
||||||
|
|
||||||
int pull_make_local_copy(const char *final, const char *root, const char *local, bool force_local);
|
int pull_make_local_copy(const char *final, const char *root, const char *local, bool force_local);
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "sd-event.h"
|
#include "sd-event.h"
|
||||||
|
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
typedef enum { DKR_PULL_V1, DKR_PULL_V2 } DkrPullVersion;
|
typedef enum { DKR_PULL_V1, DKR_PULL_V2 } DkrPullVersion;
|
||||||
|
|
|
@ -23,9 +23,9 @@
|
||||||
|
|
||||||
#include <gcrypt.h>
|
#include <gcrypt.h>
|
||||||
|
|
||||||
#include "macro.h"
|
|
||||||
#include "curl-util.h"
|
#include "curl-util.h"
|
||||||
#include "import-compress.h"
|
#include "import-compress.h"
|
||||||
|
#include "macro.h"
|
||||||
|
|
||||||
typedef struct PullJob PullJob;
|
typedef struct PullJob PullJob;
|
||||||
|
|
||||||
|
|
|
@ -22,8 +22,9 @@
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include "sd-event.h"
|
#include "sd-event.h"
|
||||||
#include "macro.h"
|
|
||||||
#include "import-util.h"
|
#include "import-util.h"
|
||||||
|
#include "macro.h"
|
||||||
|
|
||||||
typedef struct RawPull RawPull;
|
typedef struct RawPull RawPull;
|
||||||
|
|
||||||
|
|
|
@ -22,8 +22,9 @@
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include "sd-event.h"
|
#include "sd-event.h"
|
||||||
#include "macro.h"
|
|
||||||
#include "import-util.h"
|
#include "import-util.h"
|
||||||
|
#include "macro.h"
|
||||||
|
|
||||||
typedef struct TarPull TarPull;
|
typedef struct TarPull TarPull;
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "sd-event.h"
|
#include "sd-event.h"
|
||||||
|
|
||||||
#include "journal-remote-write.h"
|
#include "journal-remote-write.h"
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
|
|
@ -23,11 +23,11 @@
|
||||||
|
|
||||||
|
|
||||||
#include "sd-event.h"
|
#include "sd-event.h"
|
||||||
#include "hashmap.h"
|
|
||||||
#include "microhttpd-util.h"
|
|
||||||
|
|
||||||
|
#include "hashmap.h"
|
||||||
#include "journal-remote-parse.h"
|
#include "journal-remote-parse.h"
|
||||||
#include "journal-remote-write.h"
|
#include "journal-remote-write.h"
|
||||||
|
#include "microhttpd-util.h"
|
||||||
|
|
||||||
typedef struct MHDDaemonWrapper MHDDaemonWrapper;
|
typedef struct MHDDaemonWrapper MHDDaemonWrapper;
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
|
||||||
#include "sd-journal.h"
|
|
||||||
#include "sd-event.h"
|
#include "sd-event.h"
|
||||||
|
#include "sd-journal.h"
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
ENTRY_CURSOR = 0, /* Nothing actually written yet. */
|
ENTRY_CURSOR = 0, /* Nothing actually written yet. */
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <stdarg.h>
|
|
||||||
#include <microhttpd.h>
|
#include <microhttpd.h>
|
||||||
|
#include <stdarg.h>
|
||||||
|
|
||||||
#include "macro.h"
|
#include "macro.h"
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
#include "sd-id128.h"
|
#include "sd-id128.h"
|
||||||
|
|
||||||
#include "hashmap.h"
|
#include "hashmap.h"
|
||||||
#include "strbuf.h"
|
#include "strbuf.h"
|
||||||
|
|
||||||
|
|
|
@ -25,8 +25,8 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include "macro.h"
|
#include "macro.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
|
@ -29,11 +29,11 @@
|
||||||
|
|
||||||
#include "sd-id128.h"
|
#include "sd-id128.h"
|
||||||
|
|
||||||
#include "sparse-endian.h"
|
#include "hashmap.h"
|
||||||
#include "journal-def.h"
|
#include "journal-def.h"
|
||||||
#include "macro.h"
|
#include "macro.h"
|
||||||
#include "mmap-cache.h"
|
#include "mmap-cache.h"
|
||||||
#include "hashmap.h"
|
#include "sparse-endian.h"
|
||||||
|
|
||||||
typedef struct JournalMetrics {
|
typedef struct JournalMetrics {
|
||||||
/* For all these: -1 means "pick automatically", and 0 means "no limit enforced" */
|
/* For all these: -1 means "pick automatically", and 0 means "no limit enforced" */
|
||||||
|
|
|
@ -21,9 +21,9 @@
|
||||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include "sd-id128.h"
|
#include "sd-id128.h"
|
||||||
#include "sd-journal.h"
|
#include "sd-journal.h"
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include "socket-util.h"
|
|
||||||
#include "journald-server.h"
|
#include "journald-server.h"
|
||||||
|
#include "socket-util.h"
|
||||||
|
|
||||||
void server_process_audit_message(Server *s, const void *buffer, size_t buffer_size, const struct ucred *ucred, const union sockaddr_union *sa, socklen_t salen);
|
void server_process_audit_message(Server *s, const void *buffer, size_t buffer_size, const struct ucred *ucred, const union sockaddr_union *sa, socklen_t salen);
|
||||||
|
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
|
|
||||||
#include <netinet/if_ether.h>
|
#include <netinet/if_ether.h>
|
||||||
|
|
||||||
#include "sparse-endian.h"
|
|
||||||
#include "socket-util.h"
|
#include "socket-util.h"
|
||||||
|
#include "sparse-endian.h"
|
||||||
|
|
||||||
int arp_network_bind_raw_socket(int index, be32_t address, const struct ether_addr *eth_mac);
|
int arp_network_bind_raw_socket(int index, be32_t address, const struct ether_addr *eth_mac);
|
||||||
|
|
||||||
|
|
|
@ -25,12 +25,11 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <linux/if_packet.h>
|
#include <linux/if_packet.h>
|
||||||
|
|
||||||
#include "util.h"
|
#include "sd-dhcp-client.h"
|
||||||
#include "list.h"
|
|
||||||
|
|
||||||
#include "dhcp-protocol.h"
|
#include "dhcp-protocol.h"
|
||||||
|
#include "list.h"
|
||||||
#include "sd-dhcp-client.h"
|
#include "util.h"
|
||||||
|
|
||||||
struct sd_dhcp_route {
|
struct sd_dhcp_route {
|
||||||
struct in_addr dst_addr;
|
struct in_addr dst_addr;
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include <netinet/udp.h>
|
|
||||||
#include <netinet/ip.h>
|
#include <netinet/ip.h>
|
||||||
|
#include <netinet/udp.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#include "macro.h"
|
#include "macro.h"
|
||||||
|
|
|
@ -22,14 +22,13 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "sd-event.h"
|
|
||||||
#include "sd-dhcp-server.h"
|
#include "sd-dhcp-server.h"
|
||||||
|
#include "sd-event.h"
|
||||||
#include "hashmap.h"
|
|
||||||
#include "util.h"
|
|
||||||
#include "log.h"
|
|
||||||
|
|
||||||
#include "dhcp-internal.h"
|
#include "dhcp-internal.h"
|
||||||
|
#include "hashmap.h"
|
||||||
|
#include "log.h"
|
||||||
|
#include "util.h"
|
||||||
|
|
||||||
typedef struct DHCPClientId {
|
typedef struct DHCPClientId {
|
||||||
size_t length;
|
size_t length;
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#include "sd-dhcp6-lease.h"
|
#include "sd-dhcp6-lease.h"
|
||||||
|
|
||||||
#include "dhcp6-internal.h"
|
#include "dhcp6-internal.h"
|
||||||
|
|
||||||
struct sd_dhcp6_lease {
|
struct sd_dhcp6_lease {
|
||||||
|
|
|
@ -24,12 +24,12 @@
|
||||||
|
|
||||||
#include <net/ethernet.h>
|
#include <net/ethernet.h>
|
||||||
|
|
||||||
#include "util.h"
|
|
||||||
#include "lldp.h"
|
|
||||||
#include "list.h"
|
|
||||||
|
|
||||||
#include "sd-lldp.h"
|
#include "sd-lldp.h"
|
||||||
|
|
||||||
|
#include "list.h"
|
||||||
|
#include "lldp.h"
|
||||||
|
#include "util.h"
|
||||||
|
|
||||||
typedef struct sd_lldp_packet tlv_packet;
|
typedef struct sd_lldp_packet tlv_packet;
|
||||||
typedef struct sd_lldp_section tlv_section;
|
typedef struct sd_lldp_section tlv_section;
|
||||||
|
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
#include "udev.h"
|
|
||||||
#include "condition.h"
|
#include "condition.h"
|
||||||
|
#include "udev.h"
|
||||||
|
|
||||||
bool net_match_config(const struct ether_addr *match_mac,
|
bool net_match_config(const struct ether_addr *match_mac,
|
||||||
char * const *match_path,
|
char * const *match_path,
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include "sd-bus.h"
|
#include "sd-bus.h"
|
||||||
|
|
||||||
#include "bus-match.h"
|
#include "bus-match.h"
|
||||||
|
|
||||||
int bus_add_match_internal(sd_bus *bus, const char *match, struct bus_match_component *components, unsigned n_components, uint64_t cookie);
|
int bus_add_match_internal(sd_bus *bus, const char *match, struct bus_match_component *components, unsigned n_components, uint64_t cookie);
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "sd-bus.h"
|
#include "sd-bus.h"
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
#include "sd-bus.h"
|
#include "sd-bus.h"
|
||||||
|
|
||||||
#include "macro.h"
|
#include "macro.h"
|
||||||
|
|
||||||
bool bus_error_is_dirty(sd_bus_error *e);
|
bool bus_error_is_dirty(sd_bus_error *e);
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "sd-bus.h"
|
#include "sd-bus.h"
|
||||||
|
|
||||||
#include "set.h"
|
#include "set.h"
|
||||||
|
|
||||||
struct introspect {
|
struct introspect {
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include "sd-bus.h"
|
#include "sd-bus.h"
|
||||||
|
|
||||||
#include "bus-internal.h"
|
#include "bus-internal.h"
|
||||||
|
|
||||||
sd_bus_slot *bus_slot_allocate(sd_bus *bus, bool floating, BusSlotType type, size_t extra, void *userdata);
|
sd_bus_slot *bus_slot_allocate(sd_bus *bus, bool floating, BusSlotType type, size_t extra, void *userdata);
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
|
|
||||||
|
|
||||||
#include "sd-netlink.h"
|
#include "sd-netlink.h"
|
||||||
|
|
||||||
#include "in-addr-util.h"
|
#include "in-addr-util.h"
|
||||||
|
|
||||||
struct local_address {
|
struct local_address {
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
#define _LIBUDEV_PRIVATE_H_
|
#define _LIBUDEV_PRIVATE_H_
|
||||||
|
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <stdint.h>
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
#include "libudev.h"
|
#include "libudev.h"
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include "libudev.h"
|
#include "libudev.h"
|
||||||
|
|
||||||
|
|
|
@ -35,8 +35,8 @@ typedef enum HandleAction {
|
||||||
_HANDLE_ACTION_INVALID = -1
|
_HANDLE_ACTION_INVALID = -1
|
||||||
} HandleAction;
|
} HandleAction;
|
||||||
|
|
||||||
#include "logind.h"
|
|
||||||
#include "logind-inhibit.h"
|
#include "logind-inhibit.h"
|
||||||
|
#include "logind.h"
|
||||||
|
|
||||||
int manager_handle_action(
|
int manager_handle_action(
|
||||||
Manager *m,
|
Manager *m,
|
||||||
|
|
|
@ -25,8 +25,8 @@ typedef struct Session Session;
|
||||||
typedef enum KillWho KillWho;
|
typedef enum KillWho KillWho;
|
||||||
|
|
||||||
#include "list.h"
|
#include "list.h"
|
||||||
#include "logind-user.h"
|
|
||||||
#include "login-util.h"
|
#include "login-util.h"
|
||||||
|
#include "logind-user.h"
|
||||||
|
|
||||||
typedef enum SessionState {
|
typedef enum SessionState {
|
||||||
SESSION_OPENING, /* Session scope is being created */
|
SESSION_OPENING, /* Session scope is being created */
|
||||||
|
|
|
@ -31,9 +31,9 @@
|
||||||
|
|
||||||
typedef struct Manager Manager;
|
typedef struct Manager Manager;
|
||||||
|
|
||||||
#include "machine.h"
|
|
||||||
#include "machine-dbus.h"
|
|
||||||
#include "image-dbus.h"
|
#include "image-dbus.h"
|
||||||
|
#include "machine-dbus.h"
|
||||||
|
#include "machine.h"
|
||||||
|
|
||||||
struct Manager {
|
struct Manager {
|
||||||
sd_event *event;
|
sd_event *event;
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
|
|
||||||
typedef struct AddressPool AddressPool;
|
typedef struct AddressPool AddressPool;
|
||||||
|
|
||||||
|
#include "in-addr-util.h"
|
||||||
#include "networkd.h"
|
#include "networkd.h"
|
||||||
|
|
||||||
struct AddressPool {
|
struct AddressPool {
|
||||||
|
|
|
@ -28,9 +28,9 @@
|
||||||
|
|
||||||
typedef struct Address Address;
|
typedef struct Address Address;
|
||||||
|
|
||||||
#include "networkd.h"
|
|
||||||
#include "networkd-network.h"
|
|
||||||
#include "networkd-link.h"
|
#include "networkd-link.h"
|
||||||
|
#include "networkd-network.h"
|
||||||
|
#include "networkd.h"
|
||||||
|
|
||||||
#define CACHE_INFO_INFINITY_LIFE_TIME 0xFFFFFFFFU
|
#define CACHE_INFO_INFINITY_LIFE_TIME 0xFFFFFFFFU
|
||||||
|
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
|
|
||||||
typedef struct FdbEntry FdbEntry;
|
typedef struct FdbEntry FdbEntry;
|
||||||
|
|
||||||
#include "networkd.h"
|
|
||||||
#include "networkd-network.h"
|
#include "networkd-network.h"
|
||||||
|
#include "networkd.h"
|
||||||
|
|
||||||
struct FdbEntry {
|
struct FdbEntry {
|
||||||
Network *network;
|
Network *network;
|
||||||
|
|
|
@ -56,9 +56,9 @@ typedef enum LinkOperationalState {
|
||||||
_LINK_OPERSTATE_INVALID = -1
|
_LINK_OPERSTATE_INVALID = -1
|
||||||
} LinkOperationalState;
|
} LinkOperationalState;
|
||||||
|
|
||||||
#include "networkd.h"
|
|
||||||
#include "networkd-network.h"
|
|
||||||
#include "networkd-address.h"
|
#include "networkd-address.h"
|
||||||
|
#include "networkd-network.h"
|
||||||
|
#include "networkd.h"
|
||||||
|
|
||||||
struct Link {
|
struct Link {
|
||||||
Manager *manager;
|
Manager *manager;
|
||||||
|
|
|
@ -23,9 +23,8 @@
|
||||||
|
|
||||||
typedef struct VxLan VxLan;
|
typedef struct VxLan VxLan;
|
||||||
|
|
||||||
#include "networkd-netdev.h"
|
|
||||||
|
|
||||||
#include "in-addr-util.h"
|
#include "in-addr-util.h"
|
||||||
|
#include "networkd-netdev.h"
|
||||||
|
|
||||||
#define VXLAN_VID_MAX (1u << 24) - 1
|
#define VXLAN_VID_MAX (1u << 24) - 1
|
||||||
|
|
||||||
|
|
|
@ -26,8 +26,8 @@
|
||||||
typedef struct NetDev NetDev;
|
typedef struct NetDev NetDev;
|
||||||
typedef struct NetDevVTable NetDevVTable;
|
typedef struct NetDevVTable NetDevVTable;
|
||||||
|
|
||||||
#include "networkd.h"
|
|
||||||
#include "networkd-link.h"
|
#include "networkd-link.h"
|
||||||
|
#include "networkd.h"
|
||||||
|
|
||||||
typedef struct netdev_join_callback netdev_join_callback;
|
typedef struct netdev_join_callback netdev_join_callback;
|
||||||
|
|
||||||
|
@ -103,16 +103,16 @@ struct NetDev {
|
||||||
LIST_HEAD(netdev_join_callback, callbacks);
|
LIST_HEAD(netdev_join_callback, callbacks);
|
||||||
};
|
};
|
||||||
|
|
||||||
#include "networkd-netdev-bridge.h"
|
|
||||||
#include "networkd-netdev-bond.h"
|
#include "networkd-netdev-bond.h"
|
||||||
#include "networkd-netdev-vlan.h"
|
#include "networkd-netdev-bridge.h"
|
||||||
#include "networkd-netdev-macvlan.h"
|
|
||||||
#include "networkd-netdev-ipvlan.h"
|
|
||||||
#include "networkd-netdev-vxlan.h"
|
|
||||||
#include "networkd-netdev-veth.h"
|
|
||||||
#include "networkd-netdev-tunnel.h"
|
|
||||||
#include "networkd-netdev-dummy.h"
|
#include "networkd-netdev-dummy.h"
|
||||||
|
#include "networkd-netdev-ipvlan.h"
|
||||||
|
#include "networkd-netdev-macvlan.h"
|
||||||
|
#include "networkd-netdev-tunnel.h"
|
||||||
#include "networkd-netdev-tuntap.h"
|
#include "networkd-netdev-tuntap.h"
|
||||||
|
#include "networkd-netdev-veth.h"
|
||||||
|
#include "networkd-netdev-vlan.h"
|
||||||
|
#include "networkd-netdev-vxlan.h"
|
||||||
|
|
||||||
struct NetDevVTable {
|
struct NetDevVTable {
|
||||||
/* How much memory does an object of this unit type need */
|
/* How much memory does an object of this unit type need */
|
||||||
|
|
|
@ -25,12 +25,12 @@
|
||||||
|
|
||||||
typedef struct Network Network;
|
typedef struct Network Network;
|
||||||
|
|
||||||
#include "networkd.h"
|
|
||||||
#include "networkd-netdev.h"
|
|
||||||
#include "networkd-address.h"
|
#include "networkd-address.h"
|
||||||
#include "networkd-route.h"
|
|
||||||
#include "networkd-fdb.h"
|
#include "networkd-fdb.h"
|
||||||
|
#include "networkd-netdev.h"
|
||||||
|
#include "networkd-route.h"
|
||||||
#include "networkd-util.h"
|
#include "networkd-util.h"
|
||||||
|
#include "networkd.h"
|
||||||
|
|
||||||
#define DHCP_ROUTE_METRIC 1024
|
#define DHCP_ROUTE_METRIC 1024
|
||||||
#define IPV4LL_ROUTE_METRIC 2048
|
#define IPV4LL_ROUTE_METRIC 2048
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
|
|
||||||
typedef struct Route Route;
|
typedef struct Route Route;
|
||||||
|
|
||||||
#include "networkd.h"
|
|
||||||
#include "networkd-network.h"
|
#include "networkd-network.h"
|
||||||
|
#include "networkd.h"
|
||||||
|
|
||||||
struct Route {
|
struct Route {
|
||||||
Network *network;
|
Network *network;
|
||||||
|
|
|
@ -23,19 +23,19 @@
|
||||||
|
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
|
|
||||||
|
#include "sd-bus.h"
|
||||||
#include "sd-event.h"
|
#include "sd-event.h"
|
||||||
#include "sd-netlink.h"
|
#include "sd-netlink.h"
|
||||||
#include "sd-bus.h"
|
|
||||||
#include "udev.h"
|
|
||||||
|
|
||||||
#include "hashmap.h"
|
#include "hashmap.h"
|
||||||
#include "list.h"
|
#include "list.h"
|
||||||
|
#include "udev.h"
|
||||||
|
|
||||||
typedef struct Manager Manager;
|
typedef struct Manager Manager;
|
||||||
|
|
||||||
#include "networkd-network.h"
|
|
||||||
#include "networkd-address-pool.h"
|
#include "networkd-address-pool.h"
|
||||||
#include "networkd-link.h"
|
#include "networkd-link.h"
|
||||||
|
#include "networkd-network.h"
|
||||||
#include "networkd-util.h"
|
#include "networkd-util.h"
|
||||||
|
|
||||||
struct Manager {
|
struct Manager {
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
int chown_cgroup(pid_t pid, uid_t uid_shift);
|
int chown_cgroup(pid_t pid, uid_t uid_shift);
|
||||||
int sync_cgroup(pid_t pid, bool unified_requested);
|
int sync_cgroup(pid_t pid, bool unified_requested);
|
||||||
|
|
|
@ -25,8 +25,9 @@
|
||||||
|
|
||||||
#include "sd-event.h"
|
#include "sd-event.h"
|
||||||
#include "sd-netlink.h"
|
#include "sd-netlink.h"
|
||||||
#include "list.h"
|
|
||||||
#include "in-addr-util.h"
|
#include "in-addr-util.h"
|
||||||
|
#include "list.h"
|
||||||
|
|
||||||
typedef struct ExposePort {
|
typedef struct ExposePort {
|
||||||
int protocol;
|
int protocol;
|
||||||
|
|
|
@ -22,9 +22,8 @@
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include <net/if.h>
|
#include <net/if.h>
|
||||||
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
int setup_veth(const char *machine_name, pid_t pid, char iface_name[IFNAMSIZ], bool bridge);
|
int setup_veth(const char *machine_name, pid_t pid, char iface_name[IFNAMSIZ], bool bridge);
|
||||||
int setup_veth_extra(const char *machine_name, pid_t pid, char **pairs);
|
int setup_veth_extra(const char *machine_name, pid_t pid, char **pairs);
|
||||||
|
|
|
@ -24,9 +24,8 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "macro.h"
|
#include "macro.h"
|
||||||
|
|
||||||
#include "nspawn-mount.h"
|
|
||||||
#include "nspawn-expose-ports.h"
|
#include "nspawn-expose-ports.h"
|
||||||
|
#include "nspawn-mount.h"
|
||||||
|
|
||||||
typedef enum SettingsMask {
|
typedef enum SettingsMask {
|
||||||
SETTING_BOOT = 1 << 0,
|
SETTING_BOOT = 1 << 0,
|
||||||
|
|
|
@ -23,18 +23,18 @@
|
||||||
|
|
||||||
|
|
||||||
#include "hashmap.h"
|
#include "hashmap.h"
|
||||||
|
#include "list.h"
|
||||||
#include "prioq.h"
|
#include "prioq.h"
|
||||||
#include "time-util.h"
|
#include "time-util.h"
|
||||||
#include "list.h"
|
|
||||||
|
|
||||||
typedef struct DnsCache {
|
typedef struct DnsCache {
|
||||||
Hashmap *by_key;
|
Hashmap *by_key;
|
||||||
Prioq *by_expiry;
|
Prioq *by_expiry;
|
||||||
} DnsCache;
|
} DnsCache;
|
||||||
|
|
||||||
#include "resolved-dns-rr.h"
|
|
||||||
#include "resolved-dns-question.h"
|
|
||||||
#include "resolved-dns-answer.h"
|
#include "resolved-dns-answer.h"
|
||||||
|
#include "resolved-dns-question.h"
|
||||||
|
#include "resolved-dns-rr.h"
|
||||||
|
|
||||||
void dns_cache_flush(DnsCache *c);
|
void dns_cache_flush(DnsCache *c);
|
||||||
void dns_cache_prune(DnsCache *c);
|
void dns_cache_prune(DnsCache *c);
|
||||||
|
|
|
@ -21,21 +21,21 @@
|
||||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include <netinet/udp.h>
|
|
||||||
#include <netinet/ip.h>
|
#include <netinet/ip.h>
|
||||||
|
#include <netinet/udp.h>
|
||||||
|
|
||||||
#include "macro.h"
|
|
||||||
#include "sparse-endian.h"
|
|
||||||
#include "hashmap.h"
|
#include "hashmap.h"
|
||||||
#include "in-addr-util.h"
|
#include "in-addr-util.h"
|
||||||
|
#include "macro.h"
|
||||||
|
#include "sparse-endian.h"
|
||||||
|
|
||||||
typedef struct DnsPacketHeader DnsPacketHeader;
|
typedef struct DnsPacketHeader DnsPacketHeader;
|
||||||
typedef struct DnsPacket DnsPacket;
|
typedef struct DnsPacket DnsPacket;
|
||||||
|
|
||||||
#include "resolved-dns-rr.h"
|
|
||||||
#include "resolved-dns-question.h"
|
|
||||||
#include "resolved-dns-answer.h"
|
|
||||||
#include "resolved-def.h"
|
#include "resolved-def.h"
|
||||||
|
#include "resolved-dns-answer.h"
|
||||||
|
#include "resolved-dns-question.h"
|
||||||
|
#include "resolved-dns-rr.h"
|
||||||
|
|
||||||
typedef enum DnsProtocol {
|
typedef enum DnsProtocol {
|
||||||
DNS_PROTOCOL_DNS,
|
DNS_PROTOCOL_DNS,
|
||||||
|
|
|
@ -23,12 +23,13 @@
|
||||||
|
|
||||||
|
|
||||||
#include "sd-bus.h"
|
#include "sd-bus.h"
|
||||||
|
|
||||||
#include "set.h"
|
#include "set.h"
|
||||||
|
|
||||||
typedef struct DnsQuery DnsQuery;
|
typedef struct DnsQuery DnsQuery;
|
||||||
|
|
||||||
#include "resolved-dns-question.h"
|
|
||||||
#include "resolved-dns-answer.h"
|
#include "resolved-dns-answer.h"
|
||||||
|
#include "resolved-dns-question.h"
|
||||||
#include "resolved-dns-stream.h"
|
#include "resolved-dns-stream.h"
|
||||||
|
|
||||||
struct DnsQuery {
|
struct DnsQuery {
|
||||||
|
|
|
@ -24,9 +24,9 @@
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
|
|
||||||
#include "bitmap.h"
|
#include "bitmap.h"
|
||||||
|
#include "dns-type.h"
|
||||||
#include "hashmap.h"
|
#include "hashmap.h"
|
||||||
#include "in-addr-util.h"
|
#include "in-addr-util.h"
|
||||||
#include "dns-type.h"
|
|
||||||
|
|
||||||
typedef struct DnsResourceKey DnsResourceKey;
|
typedef struct DnsResourceKey DnsResourceKey;
|
||||||
typedef struct DnsResourceRecord DnsResourceRecord;
|
typedef struct DnsResourceRecord DnsResourceRecord;
|
||||||
|
|
|
@ -25,9 +25,9 @@
|
||||||
|
|
||||||
typedef struct DnsScope DnsScope;
|
typedef struct DnsScope DnsScope;
|
||||||
|
|
||||||
#include "resolved-dns-server.h"
|
|
||||||
#include "resolved-dns-packet.h"
|
|
||||||
#include "resolved-dns-cache.h"
|
#include "resolved-dns-cache.h"
|
||||||
|
#include "resolved-dns-packet.h"
|
||||||
|
#include "resolved-dns-server.h"
|
||||||
#include "resolved-dns-zone.h"
|
#include "resolved-dns-zone.h"
|
||||||
#include "resolved-link.h"
|
#include "resolved-link.h"
|
||||||
|
|
||||||
|
|
|
@ -39,10 +39,10 @@ enum DnsTransactionState {
|
||||||
_DNS_TRANSACTION_STATE_INVALID = -1
|
_DNS_TRANSACTION_STATE_INVALID = -1
|
||||||
};
|
};
|
||||||
|
|
||||||
#include "resolved-dns-scope.h"
|
#include "resolved-dns-answer.h"
|
||||||
#include "resolved-dns-packet.h"
|
#include "resolved-dns-packet.h"
|
||||||
#include "resolved-dns-question.h"
|
#include "resolved-dns-question.h"
|
||||||
#include "resolved-dns-answer.h"
|
#include "resolved-dns-scope.h"
|
||||||
|
|
||||||
struct DnsTransaction {
|
struct DnsTransaction {
|
||||||
DnsScope *scope;
|
DnsScope *scope;
|
||||||
|
|
|
@ -31,9 +31,9 @@ typedef struct DnsZone {
|
||||||
typedef struct DnsZoneItem DnsZoneItem;
|
typedef struct DnsZoneItem DnsZoneItem;
|
||||||
typedef enum DnsZoneItemState DnsZoneItemState;
|
typedef enum DnsZoneItemState DnsZoneItemState;
|
||||||
|
|
||||||
#include "resolved-dns-rr.h"
|
|
||||||
#include "resolved-dns-question.h"
|
|
||||||
#include "resolved-dns-answer.h"
|
#include "resolved-dns-answer.h"
|
||||||
|
#include "resolved-dns-question.h"
|
||||||
|
#include "resolved-dns-rr.h"
|
||||||
#include "resolved-dns-transaction.h"
|
#include "resolved-dns-transaction.h"
|
||||||
|
|
||||||
/* RFC 4795 Section 2.8. suggests a TTL of 30s by default */
|
/* RFC 4795 Section 2.8. suggests a TTL of 30s by default */
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue