summaryrefslogtreecommitdiffstats
path: root/cmd/binapi-generator/objects.go
diff options
context:
space:
mode:
authorOndrej Fabry <ofabry@cisco.com>2019-05-27 09:03:12 +0200
committerOndrej Fabry <ofabry@cisco.com>2019-05-27 09:03:12 +0200
commitb8743f90b835a18871405fd318ba8a5e1a72eafb (patch)
tree59497a90c802b16db6b73757f8699df4083fe69a /cmd/binapi-generator/objects.go
parent87e79ec9fa48e5f8b2eb949c337488db75a17b29 (diff)
Add support for field meta data to binapi-generator
Change-Id: Id0164d36727d070e395a522000f2e09ee5444bd0 Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Diffstat (limited to 'cmd/binapi-generator/objects.go')
-rw-r--r--cmd/binapi-generator/objects.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/binapi-generator/objects.go b/cmd/binapi-generator/objects.go
index 75c7581..8f5e8ef 100644
--- a/cmd/binapi-generator/objects.go
+++ b/cmd/binapi-generator/objects.go
@@ -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