tools: ynl: move private definitions to a separate header
authorJakub Kicinski <kuba@kernel.org>
Sat, 2 Dec 2023 21:12:25 +0000 (13:12 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 6 Dec 2023 04:08:33 +0000 (20:08 -0800)
commitf3c928008ab218055e26917ffdbdaf429e8e616a
treede6ad61e0c63710686a6ffa1d5f85ee6a4c0a11e
parentf2d4d9ad809a1c7173ce66c47cd45e11184a554c
tools: ynl: move private definitions to a separate header

ynl.h has a growing amount of "internal" stuff, which may confuse
users who try to take a look at the external API. Currently the
internals are at the bottom of the file with a banner in between,
but this arrangement makes it hard to add external APIs / inline
helpers which need internal definitions.

Move internals to a separate header.

Link: https://lore.kernel.org/r/20231202211225.342466-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/lib/ynl-priv.h [new file with mode: 0644]
tools/net/ynl/lib/ynl.h