tree-wide: Introduce DECLARE_TRIVIAL_REF_UNREF_FUNC() and friends
This commit is contained in:
committed by
Yu Watanabe
parent
11adc8bad5
commit
daff8ea8bb
@@ -227,8 +227,7 @@ void netdev_drop(NetDev *netdev);
|
||||
void netdev_enter_failed(NetDev *netdev);
|
||||
int netdev_enter_ready(NetDev *netdev);
|
||||
|
||||
NetDev* netdev_unref(NetDev *netdev);
|
||||
NetDev* netdev_ref(NetDev *netdev);
|
||||
DECLARE_TRIVIAL_REF_UNREF_FUNC(NetDev, netdev);
|
||||
DEFINE_TRIVIAL_DESTRUCTOR(netdev_destroy_callback, NetDev, netdev_unref);
|
||||
DEFINE_TRIVIAL_CLEANUP_FUNC(NetDev*, netdev_unref);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user