summaryrefslogtreecommitdiffstats
path: root/cmd/binapi-generator/objects.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/binapi-generator/objects.go')
-rw-r--r--cmd/binapi-generator/objects.go14
1 files changed, 8 insertions, 6 deletions
diff --git a/cmd/binapi-generator/objects.go b/cmd/binapi-generator/objects.go
index 2d5321d..c4b645d 100644
--- a/cmd/binapi-generator/objects.go
+++ b/cmd/binapi-generator/objects.go
@@ -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