diff options
author | Tom Gundersen <teg@jklm.no> | 2014-04-13 21:37:53 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-04-14 17:53:21 +0200 |
commit | 1403f45ab61d6f2026a3a7a06b52a536c1b7a3b3 (patch) | |
tree | 1cf724d533b29b06465a17534c8143040c6d896c /src/libsystemd/sd-rtnl/rtnl-internal.h | |
parent | e00d77ddd598ea6cbc2d512d143e9e4d98e62256 (diff) |
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.
Diffstat (limited to 'src/libsystemd/sd-rtnl/rtnl-internal.h')
-rw-r--r-- | src/libsystemd/sd-rtnl/rtnl-internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
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); |