topology: Allow a data section to contain multiple tuples objects
PATCH 1/1 topology: Allow a data section to contain multiple tuples objects
From: Mengdong Lin <[email protected]>
It's easy to use a vendor tuples object to define a C structure instance. And a data section can include multiple vendor tuples objects.
Signed-off-by Mengdong Lin <[email protected]>
Signed-off-by Fuwei Tang <[email protected]>
--- include/topology.h | 14 ++++++++++ src/topology/data.c | 78 ++++++++++++++++++++++++++++++++++++++++------------- 2 files changed, 74 insertions(+), 18 deletions(-)
include/topology.h +14 -0
@@ -214,6 +214,20 @@ extern "C" {* The keyword tuples is to define vendor specific tuples. Please refer to * section Vendor Tokens and Vendor tuples. * +* It's easy to use a vendor tuples object to define a C structure instance. +* And a data section can include multiple vendor tuples objects: +* +* <pre> +* SectionData."data element name" { +* index "1" #Index number +* tuples [ +* "id of the 1st vendor tuples section" +* "id of the 2nd vendor tuples section" +* ... +* ] +* }; +* </pre> +* * <h5>How to define an element with private data</h5> * An element can refer to a single data section or multiple data * sections.
src/topology/data.c +60 -18
131 lines not on this page · raw message
Signature · 1 line
2.7.4