summaryrefslogtreecommitdiff
path: root/src/network/networkd-wait-online.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/networkd-wait-online.h')
-rw-r--r--src/network/networkd-wait-online.h19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/network/networkd-wait-online.h b/src/network/networkd-wait-online.h
index e894351d2e..c57f902e9e 100644
--- a/src/network/networkd-wait-online.h
+++ b/src/network/networkd-wait-online.h
@@ -23,16 +23,29 @@
#include "sd-event.h"
#include "sd-rtnl.h"
+#include "sd-network.h"
#include "util.h"
+#include "hashmap.h"
typedef struct Manager {
- sd_event *event;
+ Hashmap *links;
+ Hashmap *links_by_name;
+
+ char **interfaces;
+
sd_rtnl *rtnl;
- sd_network_monitor *monitor;
+ sd_event_source *rtnl_event_source;
+
+ sd_network_monitor *network_monitor;
+ sd_event_source *network_monitor_event_source;
+
+ sd_event *event;
} Manager;
void manager_free(Manager *m);
+int manager_new(Manager **ret, char **interfaces);
DEFINE_TRIVIAL_CLEANUP_FUNC(Manager*, manager_free);
-#define _cleanup_manager_free_ _cleanup_(manager_freep)
+
+bool manager_all_configured(Manager *m);