diff options
author | Tom Gundersen <teg@jklm.no> | 2016-11-13 01:29:28 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2016-11-13 01:29:30 +0100 |
commit | c5fcf6e47056a861fb53d4f3bedec68230f9a4e9 (patch) | |
tree | c6d16dfeb4eaea57bddd75ed3d06dfe8a3164937 /src | |
parent | 7d342c03322ee1ffb97fd608ce697ec911f7815a (diff) |
networkd-wait-online: move to separate subdirectory
Also clean up the header files a bit.
Diffstat (limited to 'src')
-rw-r--r-- | src/network/wait-online/link.c (renamed from src/network/networkd-wait-online-link.c) | 4 | ||||
-rw-r--r-- | src/network/wait-online/link.h (renamed from src/network/networkd-wait-online-link.h) | 5 | ||||
-rw-r--r-- | src/network/wait-online/manager.c (renamed from src/network/networkd-wait-online-manager.c) | 4 | ||||
-rw-r--r-- | src/network/wait-online/manager.h (renamed from src/network/networkd-wait-online.h) | 3 | ||||
-rw-r--r-- | src/network/wait-online/wait-online.c (renamed from src/network/networkd-wait-online.c) | 2 |
5 files changed, 10 insertions, 8 deletions
diff --git a/src/network/networkd-wait-online-link.c b/src/network/wait-online/link.c index e63ba07e90..bd8578cf93 100644 --- a/src/network/networkd-wait-online-link.c +++ b/src/network/wait-online/link.c @@ -21,7 +21,9 @@ #include "sd-network.h" #include "alloc-util.h" -#include "networkd-wait-online-link.h" +#include "hashmap.h" +#include "link.h" +#include "manager.h" #include "string-util.h" int link_new(Manager *m, Link **ret, int ifindex, const char *ifname) { diff --git a/src/network/networkd-wait-online-link.h b/src/network/wait-online/link.h index dc35085c55..c846e60c45 100644 --- a/src/network/networkd-wait-online-link.h +++ b/src/network/wait-online/link.h @@ -20,9 +20,10 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ -typedef struct Link Link; +#include "sd-netlink.h" -#include "networkd-wait-online.h" +typedef struct Link Link; +typedef struct Manager Manager; struct Link { Manager *manager; diff --git a/src/network/networkd-wait-online-manager.c b/src/network/wait-online/manager.c index 725b3310dd..d51b0a59d6 100644 --- a/src/network/networkd-wait-online-manager.c +++ b/src/network/wait-online/manager.c @@ -22,10 +22,10 @@ #include <fnmatch.h> #include "alloc-util.h" +#include "link.h" +#include "manager.h" #include "netlink-util.h" #include "network-internal.h" -#include "networkd-wait-online-link.h" -#include "networkd-wait-online.h" #include "time-util.h" #include "util.h" diff --git a/src/network/networkd-wait-online.h b/src/network/wait-online/manager.h index f91995c306..052f6b9780 100644 --- a/src/network/networkd-wait-online.h +++ b/src/network/wait-online/manager.h @@ -26,8 +26,7 @@ #include "hashmap.h" typedef struct Manager Manager; - -#include "networkd-wait-online-link.h" +typedef struct Link Link; struct Manager { Hashmap *links; diff --git a/src/network/networkd-wait-online.c b/src/network/wait-online/wait-online.c index 3220c4b7ef..268cbdb629 100644 --- a/src/network/networkd-wait-online.c +++ b/src/network/wait-online/wait-online.c @@ -22,7 +22,7 @@ #include "sd-daemon.h" -#include "networkd-wait-online.h" +#include "manager.h" #include "signal-util.h" #include "strv.h" |