// Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: // binapi-generator: v0.5.0-dev // VPP: 20.01 // source: .vppapi/core/virtio.api.json // Package virtio contains generated bindings for API file virtio.api. // // Contents: // 2 aliases // 6 enums // 1 struct // 6 messages // package virtio import ( "net" "strconv" api "git.fd.io/govpp.git/api" codec "git.fd.io/govpp.git/codec" ) // This is a compile-time assertion to ensure that this generated file // is compatible with the GoVPP api package it is being compiled against. // A compilation error at this line likely means your copy of the // GoVPP api package needs to be updated. const _ = api.GoVppAPIPackageIsVersion2 const ( APIFile = "virtio" APIVersion = "2.0.0" VersionCrc = 0xb64fcf02 ) // IfStatusFlags defines enum 'if_status_flags'. type IfStatusFlags uint32 const ( IF_STATUS_API_FLAG_ADMIN_UP IfStatusFlags = 1 IF_STATUS_API_FLAG_LINK_UP IfStatusFlags = 2 ) var ( IfStatusFlags_name = map[uint32]string{ 1: "IF_STATUS_API_FLAG_ADMIN_UP", 2: "IF_STATUS_API_FLAG_LINK_UP", } IfStatusFlags_value = map[string]uint32{ "IF_STATUS_API_FLAG_ADMIN_UP": 1, "IF_STATUS_API_FLAG_LINK_UP": 2, } ) func (x IfStatusFlags) String() string { s, ok := IfStatusFlags_name[uint32(x)] if ok { return s } str := func(n uint32) string { s, ok := IfStatusFlags_name[uint32(n)] if ok { return s } return "IfStatusFlags(" + strconv.Itoa(int(n)) + ")" } for i := uint32(0); i <= 32; i++ { val := uint32(x) if val&(1<