From b8743f90b835a18871405fd318ba8a5e1a72eafb Mon Sep 17 00:00:00 2001 From: Ondrej Fabry Date: Mon, 27 May 2019 09:03:12 +0200 Subject: Add support for field meta data to binapi-generator Change-Id: Id0164d36727d070e395a522000f2e09ee5444bd0 Signed-off-by: Ondrej Fabry --- cmd/binapi-generator/objects.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cmd/binapi-generator/objects.go') 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 -- cgit 1.2.3-korg