Lines Matching defs:NetDev
24 typedef struct NetDev NetDev;
81 struct NetDev {
127 void (*init)(NetDev *n);
131 void (*done)(NetDev *n);
134 int (*fill_message_create)(NetDev *netdev, Link *link, sd_netlink_message *message);
140 int (*create)(NetDev *netdev);
143 int (*post_create)(NetDev *netdev, Link *link, sd_netlink_message *message);
146 int (*config_verify)(NetDev *netdev, const char *filename);
155 static inline MixedCase* UPPERCASE(NetDev *n) { \
187 void netdev_drop(NetDev *netdev);
189 NetDev *netdev_unref(NetDev *netdev);
190 NetDev *netdev_ref(NetDev *netdev);
192 DEFINE_TRIVIAL_CLEANUP_FUNC(NetDev*, netdev_unref);
195 int netdev_get(Manager *manager, const char *name, NetDev **ret);
196 int netdev_set_ifindex(NetDev *netdev, sd_netlink_message *newlink);
197 int netdev_enslave(NetDev *netdev, Link *link, sd_netlink_message_handler_t callback);
199 int netdev_join(NetDev *netdev, Link *link, sd_netlink_message_handler_t cb);
213 NetDev *_n = (netdev); \