Skip to contentSkip to conversation

topology: Allow a data section to contain multiple tuples objects

PATCH Superseded [email protected] 1 participant 1 message Apr 13, 2017

lore
Share & tools
lore
#0 lore raw

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.

---
 include/topology.h  | 14 ++++++++++
 src/topology/data.c | 78 ++++++++++++++++++++++++++++++++++++++++-------------
 2 files changed, 74 insertions(+), 18 deletions(-)
include/topology.h +14 -0
index 1bebe1e..ccb3a00 100644
@@ -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