]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tools: ynl: make the attr and msg helpers more C++ friendly
authorJakub Kicinski <kuba@kernel.org>
Wed, 29 May 2024 19:20:31 +0000 (12:20 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 31 May 2024 01:40:18 +0000 (18:40 -0700)
commitccf23c916ca35239a924ec8649cc88b1ef25d3d9
tree5efda93405e1e6fe35221469ae4f173ff9111fbc
parent0abccaf0f9bd2a87aa6512da69f0e3630f3048ee
tools: ynl: make the attr and msg helpers more C++ friendly

Folks working on a C++ codegen would like to reuse the attribute
helpers directly. Add the few necessary casts, it's not too ugly.

Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Reviewed-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Link: https://lore.kernel.org/r/20240529192031.3785761-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/lib/ynl-priv.h