From: David Herrmann Date: Tue, 23 Jun 2015 09:03:10 +0000 (+0200) Subject: sd-netlink: make NLType internal X-Git-Tag: v226.4~1^2~257 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=fb080b98edb9b1e106cd4b5315cb9d7ecaf20ad9;hp=fb080b98edb9b1e106cd4b5315cb9d7ecaf20ad9;p=elogind.git sd-netlink: make NLType internal If we extend NLType to support arrays and further extended types, we really want to avoid hard-coding the type-layout outside of netlink-types.c. We already avoid accessing nl_type->type_system outside of netlink-types.c, extend this to also avoid accessing any other fields. Provide accessor functions for nl_type->type and nl_type->size and then move NLType away from the type-system header. With this in place, follow-up patches can safely turn "type_system" and "type_system_union" into a real "union { }", and then add another type for arrays. ---