diff options
author | Tom Gundersen <teg@jklm.no> | 2014-05-08 20:42:22 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-05-09 14:41:27 +0200 |
commit | 2cc7e981af27b12a6a3d4f08728281febeb450c9 (patch) | |
tree | 627edd0fc7bff18f5d993d44043fcfb405e09b5c /src/network/networkd.h | |
parent | 59cb64e6253e445c78b9e78be5e27bae0015ea38 (diff) |
networkd: netdev - introduce LINGER state and netdev_drop()
We need the LINGER state in case we still have references to the netdev after it has been dropped.
Diffstat (limited to 'src/network/networkd.h')
-rw-r--r-- | src/network/networkd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/networkd.h b/src/network/networkd.h index cff0136bcc..bdf9808721 100644 --- a/src/network/networkd.h +++ b/src/network/networkd.h @@ -76,6 +76,7 @@ typedef enum NetDevState { NETDEV_STATE_FAILED, NETDEV_STATE_CREATING, NETDEV_STATE_READY, + NETDEV_STATE_LINGER, _NETDEV_STATE_MAX, _NETDEV_STATE_INVALID = -1, } NetDevState; @@ -271,6 +272,7 @@ DEFINE_TRIVIAL_CLEANUP_FUNC(Manager*, manager_free); /* NetDev */ int netdev_load(Manager *manager); +void netdev_drop(NetDev *netdev); NetDev *netdev_unref(NetDev *netdev); NetDev *netdev_ref(NetDev *netdev); |