diff options
author | Tom Gundersen <teg@jklm.no> | 2014-02-18 00:10:08 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-02-18 11:21:22 +0100 |
commit | 4fb7242cbbed0d865eb343548b8f0ee0fee71d85 (patch) | |
tree | b85d087cd059d195e0796cc0cda94140067d8c49 /src/libsystemd/sd-rtnl/rtnl-internal.h | |
parent | c0c5af00bec95567435bdfb818c69b2b669adfed (diff) |
sd-rtnl-message: store reference to the bus in the message
This mimics the sd-bus api, as we may need it in the future.
Diffstat (limited to 'src/libsystemd/sd-rtnl/rtnl-internal.h')
-rw-r--r-- | src/libsystemd/sd-rtnl/rtnl-internal.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libsystemd/sd-rtnl/rtnl-internal.h b/src/libsystemd/sd-rtnl/rtnl-internal.h index 28c7b963fb..0667be5838 100644 --- a/src/libsystemd/sd-rtnl/rtnl-internal.h +++ b/src/libsystemd/sd-rtnl/rtnl-internal.h @@ -88,6 +88,8 @@ struct sd_rtnl { struct sd_rtnl_message { RefCount n_ref; + sd_rtnl *rtnl; + struct nlmsghdr *hdr; size_t container_offsets[RTNL_CONTAINER_DEPTH]; /* offset from hdr to each container's start */ unsigned n_containers; /* number of containers */ @@ -96,7 +98,7 @@ struct sd_rtnl_message { bool sealed:1; }; -int message_new(sd_rtnl_message **ret, size_t initial_size); +int message_new(sd_rtnl *rtnl, sd_rtnl_message **ret, size_t initial_size); int socket_write_message(sd_rtnl *nl, sd_rtnl_message *m); int socket_read_message(sd_rtnl *nl, sd_rtnl_message **ret); |