]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tools: ynl-gen: prepare for submsg structs
authorJakub Kicinski <kuba@kernel.org>
Thu, 15 May 2025 23:16:44 +0000 (16:16 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 16 May 2025 23:32:05 +0000 (16:32 -0700)
commit99b76908a7a3df629a83555333ce0b97824e4734
tree05c3a37e08a70c09a0f105578d09d62da0273083
parentc9c048993d4c0b8a188ae717ca4a1dadd02d29b5
tools: ynl-gen: prepare for submsg structs

Prepare for constructing Struct() instances which represent
sub-messages rather than nested attributes.
Restructure the code / indentation to more easily insert
a case where nested reference comes from annotation other
than the 'nested-attributes' property. Make sure we don't
construct the Struct() object from scratch in multiple
places as the constructor will soon have more arguments.

This should cause no functional change.

Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://patch.msgid.link/20250515231650.1325372-4-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/pyynl/ynl_gen_c.py