Lines Matching full:callbacks
123 * sends a netlink message, reads a response, and hands the response(s) to the callbacks
125 * callbacks - callbacks to use on responses
127 void send_netlink_msg(struct nl_msg *msg, struct nl_cb *callbacks) {
143 nl_recvmsgs(nl_sk, callbacks);
151 * sends a netlink/ifaddrmsg message and hands the responses to the callbacks
155 * callbacks - callbacks to use with the responses
157 void send_ifaddrmsg(uint16_t type, uint16_t flags, struct ifaddrmsg *ifa, struct nl_cb *callbacks) {
164 send_netlink_msg(msg, callbacks);
174 struct nl_cb *callbacks = NULL;
177 callbacks = alloc_ack_callbacks(&retval);
178 if(!callbacks) {
182 send_netlink_msg(msg, callbacks);
184 nl_cb_put(callbacks);