Change module name to go.fd.io/govpp
[govpp.git] / binapi / mdata / mdata.ba.go
index aba1dee..3aab6f9 100644 (file)
@@ -1,7 +1,7 @@
 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
 // versions:
-//  binapi-generator: v0.4.0-dev
-//  VPP:              20.05-release
+//  binapi-generator: v0.6.0-dev
+//  VPP:              22.02-release
 // source: /usr/share/vpp/api/plugins/mdata.api.json
 
 // Package mdata contains generated bindings for API file mdata.api.
@@ -12,9 +12,9 @@
 package mdata
 
 import (
-       api "git.fd.io/govpp.git/api"
-       _ "git.fd.io/govpp.git/binapi/interface_types"
-       codec "git.fd.io/govpp.git/codec"
+       api "go.fd.io/govpp/api"
+       _ "go.fd.io/govpp/binapi/interface_types"
+       codec "go.fd.io/govpp/codec"
 )
 
 // This is a compile-time assertion to ensure that this generated file
@@ -26,10 +26,11 @@ const _ = api.GoVppAPIPackageIsVersion2
 const (
        APIFile    = "mdata"
        APIVersion = "0.1.0"
-       VersionCrc = 0x3a1911dd
+       VersionCrc = 0x5bd69477
 )
 
 // MdataEnableDisable defines message 'mdata_enable_disable'.
+// InProgress: the message form may change in the future versions
 type MdataEnableDisable struct {
        EnableDisable bool `binapi:"bool,name=enable_disable" json:"enable_disable,omitempty"`
 }
@@ -41,21 +42,18 @@ func (*MdataEnableDisable) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-func (m *MdataEnableDisable) Size() int {
+func (m *MdataEnableDisable) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 1 // m.EnableDisable
        return size
 }
 func (m *MdataEnableDisable) Marshal(b []byte) ([]byte, error) {
-       var buf *codec.Buffer
        if b == nil {
-               buf = codec.NewBuffer(make([]byte, m.Size()))
-       } else {
-               buf = codec.NewBuffer(b)
+               b = make([]byte, m.Size())
        }
+       buf := codec.NewBuffer(b)
        buf.EncodeBool(m.EnableDisable)
        return buf.Bytes(), nil
 }
@@ -66,6 +64,7 @@ func (m *MdataEnableDisable) Unmarshal(b []byte) error {
 }
 
 // MdataEnableDisableReply defines message 'mdata_enable_disable_reply'.
+// InProgress: the message form may change in the future versions
 type MdataEnableDisableReply struct {
        Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
 }
@@ -77,27 +76,24 @@ func (*MdataEnableDisableReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-func (m *MdataEnableDisableReply) Size() int {
+func (m *MdataEnableDisableReply) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4 // m.Retval
        return size
 }
 func (m *MdataEnableDisableReply) Marshal(b []byte) ([]byte, error) {
-       var buf *codec.Buffer
        if b == nil {
-               buf = codec.NewBuffer(make([]byte, m.Size()))
-       } else {
-               buf = codec.NewBuffer(b)
+               b = make([]byte, m.Size())
        }
-       buf.EncodeUint32(uint32(m.Retval))
+       buf := codec.NewBuffer(b)
+       buf.EncodeInt32(m.Retval)
        return buf.Bytes(), nil
 }
 func (m *MdataEnableDisableReply) Unmarshal(b []byte) error {
        buf := codec.NewBuffer(b)
-       m.Retval = int32(buf.DecodeUint32())
+       m.Retval = buf.DecodeInt32()
        return nil
 }