diff options
author | Tom Gundersen <teg@jklm.no> | 2014-03-23 21:45:46 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-03-24 16:59:30 +0100 |
commit | 3dd215e056ee9ff23175eca66686ff9b7a566dbf (patch) | |
tree | af3b74f8d0dc50f4f537f5986996264f74ff6c7f /src/libsystemd/sd-rtnl/rtnl-util.h | |
parent | 48791a98be997ed22e8c45a89d8d728a2151c074 (diff) |
sd-rtnl: add sd_rtnl_message_enter_container()
Extend rta_offset_tb into a stack of offset tables, one for each parent of the
current container, and make sd_rtnl_message_{enter,exit}_container() pop/push
to this stack.
Also make sd_rtnl_message_rewind() parse the top-level container, and use this
when reading a message from the socket.
This changes the API by dropping the now redundant sd_rtnl_message_read()
method.
Diffstat (limited to 'src/libsystemd/sd-rtnl/rtnl-util.h')
-rw-r--r-- | src/libsystemd/sd-rtnl/rtnl-util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-rtnl/rtnl-util.h b/src/libsystemd/sd-rtnl/rtnl-util.h index 7fe922272e..06d5699c3a 100644 --- a/src/libsystemd/sd-rtnl/rtnl-util.h +++ b/src/libsystemd/sd-rtnl/rtnl-util.h @@ -28,7 +28,7 @@ int rtnl_message_new_synthetic_error(int error, uint32_t serial, sd_rtnl_message **ret); uint32_t rtnl_message_get_serial(sd_rtnl_message *m); -int rtnl_message_seal(sd_rtnl *nl, sd_rtnl_message *m); +void rtnl_message_seal(sd_rtnl_message *m); bool rtnl_message_type_is_link(uint16_t type); bool rtnl_message_type_is_addr(uint16_t type); |