1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
3 // binapi-generator: v0.4.0-dev
5 // source: /usr/share/vpp/api/plugins/mdata.api.json
7 // Package mdata contains generated bindings for API file mdata.api.
15 api "git.fd.io/govpp.git/api"
16 _ "git.fd.io/govpp.git/binapi/interface_types"
17 codec "git.fd.io/govpp.git/codec"
20 // This is a compile-time assertion to ensure that this generated file
21 // is compatible with the GoVPP api package it is being compiled against.
22 // A compilation error at this line likely means your copy of the
23 // GoVPP api package needs to be updated.
24 const _ = api.GoVppAPIPackageIsVersion2
29 VersionCrc = 0x5bd69477
32 // MdataEnableDisable defines message 'mdata_enable_disable'.
33 // InProgress: the message form may change in the future versions
34 type MdataEnableDisable struct {
35 EnableDisable bool `binapi:"bool,name=enable_disable" json:"enable_disable,omitempty"`
38 func (m *MdataEnableDisable) Reset() { *m = MdataEnableDisable{} }
39 func (*MdataEnableDisable) GetMessageName() string { return "mdata_enable_disable" }
40 func (*MdataEnableDisable) GetCrcString() string { return "2e7b47df" }
41 func (*MdataEnableDisable) GetMessageType() api.MessageType {
42 return api.RequestMessage
45 func (m *MdataEnableDisable) Size() (size int) {
49 size += 1 // m.EnableDisable
52 func (m *MdataEnableDisable) Marshal(b []byte) ([]byte, error) {
54 b = make([]byte, m.Size())
56 buf := codec.NewBuffer(b)
57 buf.EncodeBool(m.EnableDisable)
58 return buf.Bytes(), nil
60 func (m *MdataEnableDisable) Unmarshal(b []byte) error {
61 buf := codec.NewBuffer(b)
62 m.EnableDisable = buf.DecodeBool()
66 // MdataEnableDisableReply defines message 'mdata_enable_disable_reply'.
67 // InProgress: the message form may change in the future versions
68 type MdataEnableDisableReply struct {
69 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
72 func (m *MdataEnableDisableReply) Reset() { *m = MdataEnableDisableReply{} }
73 func (*MdataEnableDisableReply) GetMessageName() string { return "mdata_enable_disable_reply" }
74 func (*MdataEnableDisableReply) GetCrcString() string { return "e8d4e804" }
75 func (*MdataEnableDisableReply) GetMessageType() api.MessageType {
76 return api.ReplyMessage
79 func (m *MdataEnableDisableReply) Size() (size int) {
86 func (m *MdataEnableDisableReply) Marshal(b []byte) ([]byte, error) {
88 b = make([]byte, m.Size())
90 buf := codec.NewBuffer(b)
91 buf.EncodeInt32(m.Retval)
92 return buf.Bytes(), nil
94 func (m *MdataEnableDisableReply) Unmarshal(b []byte) error {
95 buf := codec.NewBuffer(b)
96 m.Retval = buf.DecodeInt32()
100 func init() { file_mdata_binapi_init() }
101 func file_mdata_binapi_init() {
102 api.RegisterMessage((*MdataEnableDisable)(nil), "mdata_enable_disable_2e7b47df")
103 api.RegisterMessage((*MdataEnableDisableReply)(nil), "mdata_enable_disable_reply_e8d4e804")
106 // Messages returns list of all messages in this module.
107 func AllMessages() []api.Message {
108 return []api.Message{
109 (*MdataEnableDisable)(nil),
110 (*MdataEnableDisableReply)(nil),