chiark / gitweb /
sd-network: add new library
[elogind.git] / src / network / networkd.h
index 85c300982fa541f5b319f1edcfda08cbd8459b00..e9c0dd51217389122a3a181fc87aa64117c6633c 100644 (file)
@@ -189,6 +189,7 @@ struct Link {
 
         uint64_t ifindex;
         char *ifname;
+        char *state_file;
         struct ether_addr mac;
 
         unsigned flags;
@@ -354,6 +355,11 @@ int link_configure(Link *link);
 
 int link_update(Link *link, sd_rtnl_message *message);
 
+int link_save(Link *link);
+
+const char* link_state_to_string(LinkState s) _const_;
+LinkState link_state_from_string(const char *s) _pure_;
+
 DEFINE_TRIVIAL_CLEANUP_FUNC(Link*, link_free);
 #define _cleanup_link_free_ _cleanup_(link_freep)