diff options
author | Tom Gundersen <teg@jklm.no> | 2014-02-27 01:24:05 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-02-28 01:01:13 +0100 |
commit | fe8db0c5ee3365a2fc80ee7ebffa238f9a0a2ae2 (patch) | |
tree | 51d408aaec8fa6acd19c51839cd50618c9a00321 /src/network/networkd.h | |
parent | c594cccee264cfd98f183ae6ec289b11e70f2d6c (diff) |
sd-network: add new library
This is similar to sd-login, but exposes the state of networkd rather than logind.
Include it in libsystemd-dhcp and rename it to libsystemd-network.
Diffstat (limited to 'src/network/networkd.h')
-rw-r--r-- | src/network/networkd.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/network/networkd.h b/src/network/networkd.h index 85c300982f..e9c0dd5121 100644 --- a/src/network/networkd.h +++ b/src/network/networkd.h @@ -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) |