X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fsystemd%2Fsd-rtnl.h;h=502183e9e8187e3fd32f65fdb44912a9065ce77b;hb=4fb7242cbbed0d865eb343548b8f0ee0fee71d85;hp=c162878e4dffcd5f95d728a7d86e3102ec1f3502;hpb=7b1796403ae1ed0c3299867874cc82ed3ed413a6;p=elogind.git diff --git a/src/systemd/sd-rtnl.h b/src/systemd/sd-rtnl.h index c162878e4..502183e9e 100644 --- a/src/systemd/sd-rtnl.h +++ b/src/systemd/sd-rtnl.h @@ -25,6 +25,7 @@ #include #include #include +#include #include "sd-event.h" #include "_sd-common.h" @@ -66,17 +67,13 @@ int sd_rtnl_attach_event(sd_rtnl *nl, sd_event *e, int priority); int sd_rtnl_detach_event(sd_rtnl *nl); /* messages */ -int sd_rtnl_message_link_new(uint16_t msg_type, int index, sd_rtnl_message **ret); -int sd_rtnl_message_addr_new(uint16_t msg_type, int index, unsigned char family, +int sd_rtnl_message_new_link(sd_rtnl *rtnl, uint16_t msg_type, int index, sd_rtnl_message **ret); -int sd_rtnl_message_route_new(uint16_t nlmsg_type, unsigned char rtm_family, - sd_rtnl_message **ret); -/* - unsigned char rtm_dst_len, unsigned char rtm_src_len, - unsigned char rtm_tos, unsigned char rtm_table, - unsigned char rtm_scope, unsigned char rtm_protocol, - unsigned char rtm_type, unsigned flags, sd_rtnl_message **ret); -*/ +int sd_rtnl_message_new_addr(sd_rtnl *rtnl, uint16_t msg_type, int index, + unsigned char family, sd_rtnl_message **ret); +int sd_rtnl_message_new_route(sd_rtnl *rtnl, uint16_t nlmsg_type, + unsigned char rtm_family, sd_rtnl_message **ret); + sd_rtnl_message *sd_rtnl_message_ref(sd_rtnl_message *m); sd_rtnl_message *sd_rtnl_message_unref(sd_rtnl_message *m);