path: root/include
diff options
authorPatrick McHardy <>2014-12-13 07:50:34 +0000
committerPatrick McHardy <>2014-12-16 18:20:54 +0100
commit0b915d6dc50e9e5aeb3e41db9d20dc96d9edee3f (patch)
tree01279cb6d61e81e916017e2406afa82ddf9f002a /include
parentcde2b8bac620caf3858ccab16e82005b3ef27bee (diff)
datatype: add new subtypes field to account number of concat data types
Using the size is confusing since it usually holds the size of the data. Add a new "subtypes" member, which holds the number of datatypes the concat type is made of. Signed-off-by: Patrick McHardy <>
Diffstat (limited to 'include')
1 files changed, 2 insertions, 0 deletions
diff --git a/include/datatype.h b/include/datatype.h
index 3f13dcde..50b85c31 100644
--- a/include/datatype.h
+++ b/include/datatype.h
@@ -115,6 +115,7 @@ enum datatype_flags {
* @byteorder: byteorder of type (non-basetypes only)
* @flags: flags
* @size: type size (fixed sized non-basetypes only)
+ * @subtypes: number of subtypes (concat type)
* @name: type name
* @desc: type description
* @basetype: basetype for subtypes, determines type compatibilty
@@ -128,6 +129,7 @@ struct datatype {
enum byteorder byteorder;
unsigned int flags;
unsigned int size;
+ unsigned int subtypes;
const char *name;
const char *desc;
const struct datatype *basetype;