sd-netlink: make NLTypeSystem internal
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 23 Jun 2015 09:07:59 +0000 (11:07 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Wed, 24 Jun 2015 11:45:47 +0000 (13:45 +0200)
commit435bbb0233018bbafc6d80d2935adb151d187d97
tree4576573588a996a0493f11ee6b2c2ca4a6f7e275
parent817d1cd824bedba8feeef24c9724ec8bd160a7b2
sd-netlink: make NLTypeSystem internal

Same as NLType, move NLTypeSystem into netlink-types.c and hide it from
the outside. Provide an accessor function for the 'max' field that is used
to allocate suitable array sizes.

Note that this will probably be removed later on, anyway. Once we support
bigger type-systems, it just seems impractical to allocate such big arrays
for each container entry. An RBTree would probably do just fine.
src/libsystemd/sd-netlink/netlink-message.c
src/libsystemd/sd-netlink/netlink-types.c
src/libsystemd/sd-netlink/netlink-types.h