chiark / gitweb /
sd-netlink: don't treat NULL as root type-system
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 23 Jun 2015 10:10:38 +0000 (12:10 +0200)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 09:04:18 +0000 (10:04 +0100)
commit2f80599e296658b1322d9dca08adee57fde8a8e3
treed9c6fafbdbff4d51ef16d731491c40fe0b4966f4
parent84e862614a39d6e1d5d2317472175ec79bbc769f
sd-netlink: don't treat NULL as root type-system

Explicitly export the root type-system to the type-system callers. This
avoids treating NULL as root, which for one really looks backwards (NULL
is usually a leaf, not root), and secondly prevents us from properly
debugging calling into non-nested types.

Also rename the root to "type_system_root". Once we support more than
rtnl, well will have to revisit that, anyway.
src/libsystemd/sd-netlink/netlink-message.c
src/libsystemd/sd-netlink/netlink-types.c
src/libsystemd/sd-netlink/netlink-types.h