Fix compatibility with latest master (20.01-rc0)
[govpp.git] / cmd / binapi-generator / objects.go
index 2d5321d..c4b645d 100644 (file)
@@ -54,16 +54,18 @@ type Type struct {
 
 // Field represents VPP binary API object field
 type Field struct {
-       Name     string
-       Type     string
-       Length   int
-       SizeFrom string
-       Meta     FieldMeta
+       Name         string
+       Type         string
+       Length       int
+       SpecifiedLen bool
+       SizeFrom     string
+       Meta         FieldMeta
 }
 
 // FieldMeta represents VPP binary API meta info for field
 type FieldMeta struct {
-       Limit int
+       Limit   int
+       Default float64
 }
 
 // Union represents VPP binary API union