binapigen: fix union size
[govpp.git] / binapi / pci_types / pci_types.ba.go
1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
2 // versions:
3 //  binapi-generator: v0.4.0-dev
4 //  VPP:              20.05-release
5 // source: /usr/share/vpp/api/core/pci_types.api.json
6
7 // Package pci_types contains generated bindings for API file pci_types.api.
8 //
9 // Contents:
10 //   1 struct
11 //
12 package pci_types
13
14 import (
15         api "git.fd.io/govpp.git/api"
16 )
17
18 // This is a compile-time assertion to ensure that this generated file
19 // is compatible with the GoVPP api package it is being compiled against.
20 // A compilation error at this line likely means your copy of the
21 // GoVPP api package needs to be updated.
22 const _ = api.GoVppAPIPackageIsVersion2
23
24 // PciAddress defines type 'pci_address'.
25 type PciAddress struct {
26         Domain   uint16 `binapi:"u16,name=domain" json:"domain,omitempty"`
27         Bus      uint8  `binapi:"u8,name=bus" json:"bus,omitempty"`
28         Slot     uint8  `binapi:"u8,name=slot" json:"slot,omitempty"`
29         Function uint8  `binapi:"u8,name=function" json:"function,omitempty"`
30 }