Add support for field meta data to binapi-generator
[govpp.git] / cmd / binapi-generator / objects.go
index 75c7581..8f5e8ef 100644 (file)
@@ -54,6 +54,12 @@ type Field struct {
        Type     string
        Length   int
        SizeFrom string
+       Meta     FieldMeta
+}
+
+// FieldMeta represents VPP binary API meta info for field
+type FieldMeta struct {
+       Limit int
 }
 
 // Union represents VPP binary API union