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:
Thomas Hindoe Paaboel Andersen 2015-11-18 22:46:33 +01:00
parent 81ec9ce4a7
commit 71d35b6b55
128 changed files with 208 additions and 167 deletions

View File

@ -21,8 +21,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <stdint.h>
#include <stdbool.h>
#include <stdint.h>
#include <sys/types.h>
#define AUDIT_SESSION_INVALID ((uint32_t) -1)

View File

@ -21,8 +21,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include "macro.h"
#include "hashmap.h"
#include "macro.h"
typedef struct Bitmap Bitmap;

View File

@ -25,6 +25,7 @@
* time, a la cron */
#include <stdbool.h>
#include "util.h"
typedef struct CalendarComponent {

View File

@ -21,12 +21,12 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <sys/types.h>
#include <stdio.h>
#include <dirent.h>
#include <stdio.h>
#include <sys/types.h>
#include "set.h"
#include "def.h"
#include "set.h"
/* An enum of well known cgroup controllers */
typedef enum CGroupController {

View File

@ -21,8 +21,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <sys/types.h>
#include <inttypes.h>
#include <sys/types.h>
/* What characters are special in the shell? */
/* must be escaped outside and inside double-quotes */

View File

@ -21,9 +21,9 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <stdio.h>
#include <dirent.h>
#include <stdbool.h>
#include <stdio.h>
#include <sys/socket.h>
#include "macro.h"

View File

@ -23,6 +23,7 @@
***/
#include <stdio.h>
#include "fileio.h"
int write_string_file_atomic_label(const char *fn, const char *line);

View File

@ -22,10 +22,10 @@
***/
#include <fcntl.h>
#include <limits.h>
#include <sys/inotify.h>
#include <sys/types.h>
#include <unistd.h>
#include <limits.h>
#include "time-util.h"

View File

@ -6,8 +6,8 @@
#pragma once
#include <stdint.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
char *utf8_prev_char (const char *p);

View File

@ -4,8 +4,8 @@
/* This is minimal version of Linux' linux/ioprio.h header file, which
* is licensed GPL2 */
#include <unistd.h>
#include <sys/syscall.h>
#include <unistd.h>
/*
* Gives us 8 prio classes with 13-bits of data for each class

View File

@ -22,6 +22,7 @@
***/
#include <stdbool.h>
#include "util.h"
enum {

View File

@ -21,8 +21,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <sys/types.h>
#include <inttypes.h>
#include <sys/types.h>
int memfd_new(const char *name);
int memfd_new_and_map(const char *name, size_t sz, void **p);

View File

@ -19,12 +19,12 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <stdbool.h>
#include <sys/types.h>
#include <alloca.h>
#include <signal.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <signal.h>
#include <sys/types.h>
#include "formats-util.h"
#include "macro.h"

View File

@ -21,8 +21,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <sys/socket.h>
#include <stdbool.h>
#include <sys/socket.h>
#include "macro.h"

View File

@ -21,9 +21,9 @@
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/in.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <linux/netlink.h>
#include <linux/if_packet.h>

View File

@ -19,8 +19,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <stdbool.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdio.h>
#include "macro.h"

View File

@ -21,8 +21,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <sys/types.h>
#include <stdbool.h>
#include <sys/types.h>
bool uid_is_valid(uid_t uid);

View File

@ -25,6 +25,7 @@
***/
#include <stdbool.h>
#include "list.h"
#define MAXCPUS 16

View File

@ -25,6 +25,7 @@
***/
#include <dirent.h>
#include "bootchart.h"
double gettime_ns(void);

View File

@ -23,8 +23,8 @@
#include <pthread.h>
#include "list.h"
#include "hashmap.h"
#include "list.h"
typedef enum PolicyItemType {
_POLICY_ITEM_TYPE_UNSET = 0,

View File

@ -22,6 +22,7 @@
***/
#include "sd-bus.h"
#include "bus-xml-policy.h"
#include "proxy.h"

View File

@ -24,8 +24,8 @@
typedef struct BusEndpoint BusEndpoint;
typedef struct BusEndpointPolicy BusEndpointPolicy;
#include "hashmap.h"
#include "bus-policy.h"
#include "hashmap.h"
struct BusEndpointPolicy {
char *name;

View File

@ -21,9 +21,9 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include "kdbus.h"
#include "list.h"
#include "macro.h"
#include "kdbus.h"
typedef struct BusNamePolicy BusNamePolicy;

View File

@ -112,8 +112,8 @@ struct CGroupContext {
bool delegate;
};
#include "unit.h"
#include "cgroup-util.h"
#include "unit.h"
void cgroup_context_init(CGroupContext *c);
void cgroup_context_done(CGroupContext *c);

View File

@ -23,8 +23,8 @@
#include "sd-bus.h"
#include "unit.h"
#include "kill.h"
#include "unit.h"
extern const sd_bus_vtable bus_kill_vtable[];

View File

@ -22,6 +22,7 @@
***/
#include "sd-bus.h"
#include "unit.h"
extern const sd_bus_vtable bus_scope_vtable[];

View File

@ -22,6 +22,7 @@
***/
#include "sd-bus.h"
#include "unit.h"
extern const sd_bus_vtable bus_service_vtable[];

View File

@ -22,6 +22,7 @@
***/
#include "sd-bus.h"
#include "unit.h"
extern const sd_bus_vtable bus_slice_vtable[];

View File

@ -22,6 +22,7 @@
***/
#include "sd-bus.h"
#include "unit.h"
extern const sd_bus_vtable bus_socket_vtable[];

View File

@ -23,6 +23,7 @@
***/
#include "sd-bus.h"
#include "unit.h"
extern const sd_bus_vtable bus_swap_vtable[];

View File

@ -22,6 +22,7 @@
***/
#include "sd-bus.h"
#include "unit.h"
extern const sd_bus_vtable bus_timer_vtable[];

View File

@ -22,6 +22,7 @@
***/
#include "sd-bus.h"
#include "unit.h"
extern const sd_bus_vtable bus_unit_vtable[];

View File

@ -27,16 +27,16 @@ typedef struct ExecContext ExecContext;
typedef struct ExecRuntime ExecRuntime;
typedef struct ExecParameters ExecParameters;
#include <sys/capability.h>
#include <sched.h>
#include <stdbool.h>
#include <stdio.h>
#include <sched.h>
#include <sys/capability.h>
#include "list.h"
#include "bus-endpoint.h"
#include "fdset.h"
#include "list.h"
#include "missing.h"
#include "namespace.h"
#include "bus-endpoint.h"
typedef enum ExecUtmpMode {
EXEC_UTMP_INIT,
@ -204,8 +204,8 @@ struct ExecContext {
BusEndpoint *bus_endpoint;
};
#include "cgroup.h"
#include "cgroup-util.h"
#include "cgroup.h"
struct ExecParameters {
char **argv;

View File

@ -26,6 +26,7 @@
#include "sd-event.h"
#include "list.h"
#include "unit-name.h"
typedef struct Job Job;
typedef struct JobDependency JobDependency;

View File

@ -21,8 +21,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include "unit.h"
#include "dropin.h"
#include "unit.h"
/* Read service data supplementary drop-in directories */

View File

@ -21,12 +21,13 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <libmount.h>
#include <stdbool.h>
#include <stdio.h>
#include <libmount.h>
#include "sd-bus.h"
#include "sd-event.h"
#include "cgroup-util.h"
#include "fdset.h"
#include "hashmap.h"

View File

@ -23,8 +23,8 @@
typedef struct Mount Mount;
#include "kill.h"
#include "execute.h"
#include "kill.h"
typedef enum MountExecCommand {
MOUNT_EXEC_MOUNT,

View File

@ -22,6 +22,7 @@
***/
#include "sd-bus.h"
#include "bus-util.h"
#include "manager.h"

View File

@ -24,10 +24,10 @@
typedef struct Service Service;
typedef struct ServiceFDStore ServiceFDStore;
#include "exit-status.h"
#include "kill.h"
#include "path.h"
#include "ratelimit.h"
#include "kill.h"
#include "exit-status.h"
typedef enum ServiceRestart {
SERVICE_RESTART_NO,

View File

@ -23,9 +23,9 @@
typedef struct Socket Socket;
#include "socket-util.h"
#include "mount.h"
#include "service.h"
#include "socket-util.h"
typedef enum SocketExecCommand {
SOCKET_EXEC_START_PRE,

View File

@ -23,10 +23,10 @@
typedef struct Transaction Transaction;
#include "unit.h"
#include "manager.h"
#include "job.h"
#include "hashmap.h"
#include "job.h"
#include "manager.h"
#include "unit.h"
struct Transaction {
/* Jobs to be added */

View File

@ -30,11 +30,11 @@ typedef struct UnitVTable UnitVTable;
typedef struct UnitRef UnitRef;
typedef struct UnitStatusMessageFormats UnitStatusMessageFormats;
#include "list.h"
#include "condition.h"
#include "install.h"
#include "unit-name.h"
#include "failure-action.h"
#include "install.h"
#include "list.h"
#include "unit-name.h"
typedef enum KillOperation {
KILL_TERMINATE,
@ -242,16 +242,16 @@ typedef enum UnitSetPropertiesMode {
UNIT_PERSISTENT = 2,
} UnitSetPropertiesMode;
#include "socket.h"
#include "busname.h"
#include "target.h"
#include "device.h"
#include "automount.h"
#include "swap.h"
#include "timer.h"
#include "slice.h"
#include "busname.h"
#include "device.h"
#include "path.h"
#include "scope.h"
#include "slice.h"
#include "socket.h"
#include "swap.h"
#include "target.h"
#include "timer.h"
struct UnitVTable {
/* How much memory does an object of this unit type need */

View File

@ -21,8 +21,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <sys/types.h>
#include <curl/curl.h>
#include <sys/types.h>
#include "sd-event.h"

View File

@ -22,8 +22,9 @@
***/
#include "sd-event.h"
#include "macro.h"
#include "import-compress.h"
#include "macro.h"
typedef struct RawExport RawExport;

View File

@ -22,8 +22,9 @@
***/
#include "sd-event.h"
#include "macro.h"
#include "import-compress.h"
#include "macro.h"
typedef struct TarExport TarExport;

View File

@ -21,11 +21,10 @@
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 <lzma.h>
#include <sys/types.h>
#include <zlib.h>
#include "macro.h"

View File

@ -22,8 +22,9 @@
***/
#include "sd-event.h"
#include "macro.h"
#include "import-util.h"
#include "macro.h"
typedef struct RawImport RawImport;

View File

@ -22,8 +22,9 @@
***/
#include "sd-event.h"
#include "macro.h"
#include "import-util.h"
#include "macro.h"
typedef struct TarImport TarImport;

View File

@ -23,8 +23,8 @@
#include <stdbool.h>
#include "pull-job.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);

View File

@ -22,6 +22,7 @@
#pragma once
#include "sd-event.h"
#include "util.h"
typedef enum { DKR_PULL_V1, DKR_PULL_V2 } DkrPullVersion;

View File

@ -23,9 +23,9 @@
#include <gcrypt.h>
#include "macro.h"
#include "curl-util.h"
#include "import-compress.h"
#include "macro.h"
typedef struct PullJob PullJob;

View File

@ -22,8 +22,9 @@
***/
#include "sd-event.h"
#include "macro.h"
#include "import-util.h"
#include "macro.h"
typedef struct RawPull RawPull;

View File

@ -22,8 +22,9 @@
***/
#include "sd-event.h"
#include "macro.h"
#include "import-util.h"
#include "macro.h"
typedef struct TarPull TarPull;

View File

@ -22,6 +22,7 @@
#pragma once
#include "sd-event.h"
#include "journal-remote-write.h"
typedef enum {

View File

@ -23,11 +23,11 @@
#include "sd-event.h"
#include "hashmap.h"
#include "microhttpd-util.h"
#include "hashmap.h"
#include "journal-remote-parse.h"
#include "journal-remote-write.h"
#include "microhttpd-util.h"
typedef struct MHDDaemonWrapper MHDDaemonWrapper;

View File

@ -2,8 +2,8 @@
#include <inttypes.h>
#include "sd-journal.h"
#include "sd-event.h"
#include "sd-journal.h"
typedef enum {
ENTRY_CURSOR = 0, /* Nothing actually written yet. */

View File

@ -21,8 +21,8 @@
#pragma once
#include <stdarg.h>
#include <microhttpd.h>
#include <stdarg.h>
#include "macro.h"

View File

@ -24,6 +24,7 @@
#include <stdbool.h>
#include "sd-id128.h"
#include "hashmap.h"
#include "strbuf.h"

View File

@ -25,8 +25,8 @@
*
*/
#include <sys/types.h>
#include <inttypes.h>
#include <sys/types.h>
#include "macro.h"
#include "util.h"

View File

@ -29,11 +29,11 @@
#include "sd-id128.h"
#include "sparse-endian.h"
#include "hashmap.h"
#include "journal-def.h"
#include "macro.h"
#include "mmap-cache.h"
#include "hashmap.h"
#include "sparse-endian.h"
typedef struct JournalMetrics {
/* For all these: -1 means "pick automatically", and 0 means "no limit enforced" */

View File

@ -21,9 +21,9 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <sys/types.h>
#include <inttypes.h>
#include <stdbool.h>
#include <sys/types.h>
#include "sd-id128.h"
#include "sd-journal.h"

View File

@ -21,8 +21,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include "socket-util.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);

View File

@ -23,8 +23,8 @@
#include <netinet/if_ether.h>
#include "sparse-endian.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);

View File

@ -25,12 +25,11 @@
#include <stdint.h>
#include <linux/if_packet.h>
#include "util.h"
#include "list.h"
#include "sd-dhcp-client.h"
#include "dhcp-protocol.h"
#include "sd-dhcp-client.h"
#include "list.h"
#include "util.h"
struct sd_dhcp_route {
struct in_addr dst_addr;

View File

@ -21,8 +21,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <netinet/udp.h>
#include <netinet/ip.h>
#include <netinet/udp.h>
#include <stdint.h>
#include "macro.h"

View File

@ -22,14 +22,13 @@
#pragma once
#include "sd-event.h"
#include "sd-dhcp-server.h"
#include "hashmap.h"
#include "util.h"
#include "log.h"
#include "sd-event.h"
#include "dhcp-internal.h"
#include "hashmap.h"
#include "log.h"
#include "util.h"
typedef struct DHCPClientId {
size_t length;

View File

@ -25,6 +25,7 @@
#include <stdint.h>
#include "sd-dhcp6-lease.h"
#include "dhcp6-internal.h"
struct sd_dhcp6_lease {

View File

@ -24,12 +24,12 @@
#include <net/ethernet.h>
#include "util.h"
#include "lldp.h"
#include "list.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_section tlv_section;

View File

@ -23,8 +23,8 @@
#include <stdbool.h>
#include "udev.h"
#include "condition.h"
#include "udev.h"
bool net_match_config(const struct ether_addr *match_mac,
char * const *match_path,

View File

@ -22,6 +22,7 @@
***/
#include "sd-bus.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);

View File

@ -21,8 +21,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <stdio.h>
#include <stdbool.h>
#include <stdio.h>
#include "sd-bus.h"

View File

@ -24,6 +24,7 @@
#include <stdbool.h>
#include "sd-bus.h"
#include "macro.h"
bool bus_error_is_dirty(sd_bus_error *e);

View File

@ -24,6 +24,7 @@
#include <stdio.h>
#include "sd-bus.h"
#include "set.h"
struct introspect {

View File

@ -22,6 +22,7 @@
***/
#include "sd-bus.h"
#include "bus-internal.h"
sd_bus_slot *bus_slot_allocate(sd_bus *bus, bool floating, BusSlotType type, size_t extra, void *userdata);

View File

@ -23,6 +23,7 @@
#include "sd-netlink.h"
#include "in-addr-util.h"
struct local_address {

View File

@ -21,8 +21,8 @@
#define _LIBUDEV_PRIVATE_H_
#include <signal.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdint.h>
#include "libudev.h"

View File

@ -21,8 +21,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <sys/types.h>
#include <stdbool.h>
#include <sys/types.h>
#include "libudev.h"

View File

@ -35,8 +35,8 @@ typedef enum HandleAction {
_HANDLE_ACTION_INVALID = -1
} HandleAction;
#include "logind.h"
#include "logind-inhibit.h"
#include "logind.h"
int manager_handle_action(
Manager *m,

View File

@ -25,8 +25,8 @@ typedef struct Session Session;
typedef enum KillWho KillWho;
#include "list.h"
#include "logind-user.h"
#include "login-util.h"
#include "logind-user.h"
typedef enum SessionState {
SESSION_OPENING, /* Session scope is being created */

View File

@ -31,9 +31,9 @@
typedef struct Manager Manager;
#include "machine.h"
#include "machine-dbus.h"
#include "image-dbus.h"
#include "machine-dbus.h"
#include "machine.h"
struct Manager {
sd_event *event;

View File

@ -23,6 +23,7 @@
typedef struct AddressPool AddressPool;
#include "in-addr-util.h"
#include "networkd.h"
struct AddressPool {

View File

@ -28,9 +28,9 @@
typedef struct Address Address;
#include "networkd.h"
#include "networkd-network.h"
#include "networkd-link.h"
#include "networkd-network.h"
#include "networkd.h"
#define CACHE_INFO_INFINITY_LIFE_TIME 0xFFFFFFFFU

View File

@ -23,8 +23,8 @@
typedef struct FdbEntry FdbEntry;
#include "networkd.h"
#include "networkd-network.h"
#include "networkd.h"
struct FdbEntry {
Network *network;

View File

@ -56,9 +56,9 @@ typedef enum LinkOperationalState {
_LINK_OPERSTATE_INVALID = -1
} LinkOperationalState;
#include "networkd.h"
#include "networkd-network.h"
#include "networkd-address.h"
#include "networkd-network.h"
#include "networkd.h"
struct Link {
Manager *manager;

View File

@ -23,9 +23,8 @@
typedef struct VxLan VxLan;
#include "networkd-netdev.h"
#include "in-addr-util.h"
#include "networkd-netdev.h"
#define VXLAN_VID_MAX (1u << 24) - 1

View File

@ -26,8 +26,8 @@
typedef struct NetDev NetDev;
typedef struct NetDevVTable NetDevVTable;
#include "networkd.h"
#include "networkd-link.h"
#include "networkd.h"
typedef struct netdev_join_callback netdev_join_callback;
@ -103,16 +103,16 @@ struct NetDev {
LIST_HEAD(netdev_join_callback, callbacks);
};
#include "networkd-netdev-bridge.h"
#include "networkd-netdev-bond.h"
#include "networkd-netdev-vlan.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-bridge.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-veth.h"
#include "networkd-netdev-vlan.h"
#include "networkd-netdev-vxlan.h"
struct NetDevVTable {
/* How much memory does an object of this unit type need */

View File

@ -25,12 +25,12 @@
typedef struct Network Network;
#include "networkd.h"
#include "networkd-netdev.h"
#include "networkd-address.h"
#include "networkd-route.h"
#include "networkd-fdb.h"
#include "networkd-netdev.h"
#include "networkd-route.h"
#include "networkd-util.h"
#include "networkd.h"
#define DHCP_ROUTE_METRIC 1024
#define IPV4LL_ROUTE_METRIC 2048

View File

@ -23,8 +23,8 @@
typedef struct Route Route;
#include "networkd.h"
#include "networkd-network.h"
#include "networkd.h"
struct Route {
Network *network;

View File

@ -23,19 +23,19 @@
#include <arpa/inet.h>
#include "sd-bus.h"
#include "sd-event.h"
#include "sd-netlink.h"
#include "sd-bus.h"
#include "udev.h"
#include "hashmap.h"
#include "list.h"
#include "udev.h"
typedef struct Manager Manager;
#include "networkd-network.h"
#include "networkd-address-pool.h"
#include "networkd-link.h"
#include "networkd-network.h"
#include "networkd-util.h"
struct Manager {

View File

@ -21,8 +21,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <sys/types.h>
#include <stdbool.h>
#include <sys/types.h>
int chown_cgroup(pid_t pid, uid_t uid_shift);
int sync_cgroup(pid_t pid, bool unified_requested);

View File

@ -25,8 +25,9 @@
#include "sd-event.h"
#include "sd-netlink.h"
#include "list.h"
#include "in-addr-util.h"
#include "list.h"
typedef struct ExposePort {
int protocol;

View File

@ -22,9 +22,8 @@
***/
#include <net/if.h>
#include <sys/types.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_extra(const char *machine_name, pid_t pid, char **pairs);

View File

@ -24,9 +24,8 @@
#include <stdio.h>
#include "macro.h"
#include "nspawn-mount.h"
#include "nspawn-expose-ports.h"
#include "nspawn-mount.h"
typedef enum SettingsMask {
SETTING_BOOT = 1 << 0,

View File

@ -23,18 +23,18 @@
#include "hashmap.h"
#include "list.h"
#include "prioq.h"
#include "time-util.h"
#include "list.h"
typedef struct DnsCache {
Hashmap *by_key;
Prioq *by_expiry;
} DnsCache;
#include "resolved-dns-rr.h"
#include "resolved-dns-question.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_prune(DnsCache *c);

View File

@ -21,21 +21,21 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <netinet/udp.h>
#include <netinet/ip.h>
#include <netinet/udp.h>
#include "macro.h"
#include "sparse-endian.h"
#include "hashmap.h"
#include "in-addr-util.h"
#include "macro.h"
#include "sparse-endian.h"
typedef struct DnsPacketHeader DnsPacketHeader;
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-dns-answer.h"
#include "resolved-dns-question.h"
#include "resolved-dns-rr.h"
typedef enum DnsProtocol {
DNS_PROTOCOL_DNS,

View File

@ -23,12 +23,13 @@
#include "sd-bus.h"
#include "set.h"
typedef struct DnsQuery DnsQuery;
#include "resolved-dns-question.h"
#include "resolved-dns-answer.h"
#include "resolved-dns-question.h"
#include "resolved-dns-stream.h"
struct DnsQuery {

View File

@ -24,9 +24,9 @@
#include <netinet/in.h>
#include "bitmap.h"
#include "dns-type.h"
#include "hashmap.h"
#include "in-addr-util.h"
#include "dns-type.h"
typedef struct DnsResourceKey DnsResourceKey;
typedef struct DnsResourceRecord DnsResourceRecord;

View File

@ -25,9 +25,9 @@
typedef struct DnsScope DnsScope;
#include "resolved-dns-server.h"
#include "resolved-dns-packet.h"
#include "resolved-dns-cache.h"
#include "resolved-dns-packet.h"
#include "resolved-dns-server.h"
#include "resolved-dns-zone.h"
#include "resolved-link.h"

View File

@ -39,10 +39,10 @@ enum DnsTransactionState {
_DNS_TRANSACTION_STATE_INVALID = -1
};
#include "resolved-dns-scope.h"
#include "resolved-dns-answer.h"
#include "resolved-dns-packet.h"
#include "resolved-dns-question.h"
#include "resolved-dns-answer.h"
#include "resolved-dns-scope.h"
struct DnsTransaction {
DnsScope *scope;

View File

@ -31,9 +31,9 @@ typedef struct DnsZone {
typedef struct DnsZoneItem DnsZoneItem;
typedef enum DnsZoneItemState DnsZoneItemState;
#include "resolved-dns-rr.h"
#include "resolved-dns-question.h"
#include "resolved-dns-answer.h"
#include "resolved-dns-question.h"
#include "resolved-dns-rr.h"
#include "resolved-dns-transaction.h"
/* 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