From 1403f45ab61d6f2026a3a7a06b52a536c1b7a3b3 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Sun, 13 Apr 2014 21:37:53 +0200 Subject: sd-rtnl: multi-part message - store as linked-list rather than independent messages This means the API can stay the same as for single-part messages by simply passing the head message around. Unrefing the head of the linked list unrefs the whole list. --- src/libsystemd/sd-rtnl/rtnl-internal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libsystemd/sd-rtnl/rtnl-internal.h') diff --git a/src/libsystemd/sd-rtnl/rtnl-internal.h b/src/libsystemd/sd-rtnl/rtnl-internal.h index 9d857ed991..2f788d04f6 100644 --- a/src/libsystemd/sd-rtnl/rtnl-internal.h +++ b/src/libsystemd/sd-rtnl/rtnl-internal.h @@ -102,6 +102,8 @@ struct sd_rtnl_message { size_t *rta_offset_tb[RTNL_CONTAINER_DEPTH]; unsigned short rta_tb_size[RTNL_CONTAINER_DEPTH]; bool sealed:1; + + sd_rtnl_message *next; /* next in a chain of multi-part messages */ }; int message_new(sd_rtnl *rtnl, sd_rtnl_message **ret, uint16_t type); -- cgit v1.2.3-54-g00ecf