unsigned rqueue_partial_size;
size_t rqueue_partial_allocated;
+ sd_netlink_message **wqueue;
+ unsigned wqueue_size;
+ size_t wqueue_allocated;
+
struct nlmsghdr *rbuffer;
size_t rbuffer_allocated;
};
struct netlink_attribute {
- size_t offset; /* offset from hdr to attirubte */
- bool nested:1;
- bool net_byteorder:1;
+ size_t offset; /* offset from hdr to attribute */
};
struct netlink_container {
};
int message_new(sd_netlink *rtnl, sd_netlink_message **ret, uint16_t type);
-int message_new_empty(sd_netlink *rtnl, sd_netlink_message **ret);
-int socket_open(int family);
-int socket_bind(sd_netlink *nl);
-int socket_join_broadcast_group(sd_netlink *nl, unsigned group);
int socket_write_message(sd_netlink *nl, sd_netlink_message *m);
int socket_read_message(sd_netlink *nl);