chiark / gitweb /
sd-rtnl: rework rtnl type system
authorTom Gundersen <teg@jklm.no>
Wed, 26 Mar 2014 18:25:01 +0000 (19:25 +0100)
committerTom Gundersen <teg@jklm.no>
Fri, 28 Mar 2014 18:11:59 +0000 (19:11 +0100)
Use a static table with all the typing information, rather than repeated
switch statements. This should make it a lot simpler to add new types.

We need to keep all the type info to be able to create containers
without exposing their implementation details to the users of the library.

As a freebee we verify the types of appended/read attributes.

The API is extended to nicely deal with unions of container types.


No differences found