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/systemd/sd-rtnl.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/systemd/sd-rtnl.h')
-rw-r--r-- | src/systemd/sd-rtnl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemd/sd-rtnl.h b/src/systemd/sd-rtnl.h index 0a2487351..54e514245 100644 --- a/src/systemd/sd-rtnl.h +++ b/src/systemd/sd-rtnl.h @@ -103,7 +103,6 @@ int sd_rtnl_message_append_ether_addr(sd_rtnl_message *m, unsigned short type, c int sd_rtnl_message_open_container(sd_rtnl_message *m, unsigned short type); int sd_rtnl_message_close_container(sd_rtnl_message *m); -int sd_rtnl_message_read(sd_rtnl_message *m, unsigned short *type, void **data); int sd_rtnl_message_read_string(sd_rtnl_message *m, unsigned short type, char **data); int sd_rtnl_message_read_u8(sd_rtnl_message *m, unsigned short type, uint8_t *data); int sd_rtnl_message_read_u16(sd_rtnl_message *m, unsigned short type, uint16_t *data); @@ -111,6 +110,7 @@ int sd_rtnl_message_read_u32(sd_rtnl_message *m, unsigned short type, uint32_t * int sd_rtnl_message_read_ether_addr(sd_rtnl_message *m, unsigned short type, struct ether_addr *data); int sd_rtnl_message_read_in_addr(sd_rtnl_message *m, unsigned short type, struct in_addr *data); int sd_rtnl_message_read_in6_addr(sd_rtnl_message *m, unsigned short type, struct in6_addr *data); +int sd_rtnl_message_enter_container(sd_rtnl_message *m, unsigned short type); int sd_rtnl_message_exit_container(sd_rtnl_message *m); int sd_rtnl_message_rewind(sd_rtnl_message *m); |