chiark / gitweb /
sd-rtnl:introduce table-based lookup and typesafe read() functions
authorSusant Sahani <susant@redhat.com>
Wed, 5 Mar 2014 15:13:25 +0000 (20:43 +0530)
committerTom Gundersen <teg@jklm.no>
Thu, 6 Mar 2014 18:30:09 +0000 (19:30 +0100)
commit44caa5e7dfa2160f7d644d003de2718fd3ca2ee6
treeab15cf6cb67b356b2871cccae7b5b5fbcb27737d
parent6d26dfe11c853d612b84abe858520bbcb62c2e96
sd-rtnl:introduce table-based lookup and typesafe read() functions

This patch introduces new netlink attribute parsing logic
which is table based lookup and sd_rtnl_message_read_*
methods for reading attributes. By doing this user does not
have to loop for the attribute values . Only providing the
attribute type it gets the attribute values which is optimized
and sd_rtnl_message_read_* methods are simplified.
src/libsystemd/sd-rtnl/rtnl-internal.h
src/libsystemd/sd-rtnl/rtnl-message.c
src/libsystemd/sd-rtnl/test-rtnl.c
src/systemd/sd-rtnl.h