1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
3 // binapi-generator: v0.4.0-dev
5 // source: /usr/share/vpp/api/core/memclnt.api.json
7 // Package memclnt contains generated bindings for API file memclnt.api.
16 api "git.fd.io/govpp.git/api"
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 = 0x8d3dd881
32 // MessageTableEntry defines type 'message_table_entry'.
33 type MessageTableEntry struct {
34 Index uint16 `binapi:"u16,name=index" json:"index,omitempty"`
35 Name string `binapi:"string[64],name=name" json:"name,omitempty"`
38 // ModuleVersion defines type 'module_version'.
39 type ModuleVersion struct {
40 Major uint32 `binapi:"u32,name=major" json:"major,omitempty"`
41 Minor uint32 `binapi:"u32,name=minor" json:"minor,omitempty"`
42 Patch uint32 `binapi:"u32,name=patch" json:"patch,omitempty"`
43 Name string `binapi:"string[64],name=name" json:"name,omitempty"`
46 // APIVersions defines message 'api_versions'.
47 type APIVersions struct{}
49 func (m *APIVersions) Reset() { *m = APIVersions{} }
50 func (*APIVersions) GetMessageName() string { return "api_versions" }
51 func (*APIVersions) GetCrcString() string { return "51077d14" }
52 func (*APIVersions) GetMessageType() api.MessageType {
53 return api.RequestMessage
56 func (m *APIVersions) Size() int {
63 func (m *APIVersions) Marshal(b []byte) ([]byte, error) {
66 buf = codec.NewBuffer(make([]byte, m.Size()))
68 buf = codec.NewBuffer(b)
70 return buf.Bytes(), nil
72 func (m *APIVersions) Unmarshal(b []byte) error {
76 // APIVersionsReply defines message 'api_versions_reply'.
77 type APIVersionsReply struct {
78 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
79 Count uint32 `binapi:"u32,name=count" json:"-"`
80 APIVersions []ModuleVersion `binapi:"module_version[count],name=api_versions" json:"api_versions,omitempty"`
83 func (m *APIVersionsReply) Reset() { *m = APIVersionsReply{} }
84 func (*APIVersionsReply) GetMessageName() string { return "api_versions_reply" }
85 func (*APIVersionsReply) GetCrcString() string { return "5f0d99d6" }
86 func (*APIVersionsReply) GetMessageType() api.MessageType {
87 return api.ReplyMessage
90 func (m *APIVersionsReply) Size() int {
97 for j1 := 0; j1 < len(m.APIVersions); j1++ {
100 if j1 < len(m.APIVersions) {
101 s1 = m.APIVersions[j1]
103 size += 4 // s1.Major
104 size += 4 // s1.Minor
105 size += 4 // s1.Patch
106 size += 64 // s1.Name
110 func (m *APIVersionsReply) Marshal(b []byte) ([]byte, error) {
111 var buf *codec.Buffer
113 buf = codec.NewBuffer(make([]byte, m.Size()))
115 buf = codec.NewBuffer(b)
117 buf.EncodeUint32(uint32(m.Retval))
118 buf.EncodeUint32(uint32(len(m.APIVersions)))
119 for j0 := 0; j0 < len(m.APIVersions); j0++ {
121 if j0 < len(m.APIVersions) {
122 v0 = m.APIVersions[j0]
124 buf.EncodeUint32(uint32(v0.Major))
125 buf.EncodeUint32(uint32(v0.Minor))
126 buf.EncodeUint32(uint32(v0.Patch))
127 buf.EncodeString(v0.Name, 64)
129 return buf.Bytes(), nil
131 func (m *APIVersionsReply) Unmarshal(b []byte) error {
132 buf := codec.NewBuffer(b)
133 m.Retval = int32(buf.DecodeUint32())
134 m.Count = buf.DecodeUint32()
135 m.APIVersions = make([]ModuleVersion, int(m.Count))
136 for j0 := 0; j0 < len(m.APIVersions); j0++ {
137 m.APIVersions[j0].Major = buf.DecodeUint32()
138 m.APIVersions[j0].Minor = buf.DecodeUint32()
139 m.APIVersions[j0].Patch = buf.DecodeUint32()
140 m.APIVersions[j0].Name = buf.DecodeString(64)
145 // GetFirstMsgID defines message 'get_first_msg_id'.
146 type GetFirstMsgID struct {
147 Name string `binapi:"string[64],name=name" json:"name,omitempty"`
150 func (m *GetFirstMsgID) Reset() { *m = GetFirstMsgID{} }
151 func (*GetFirstMsgID) GetMessageName() string { return "get_first_msg_id" }
152 func (*GetFirstMsgID) GetCrcString() string { return "ebf79a66" }
153 func (*GetFirstMsgID) GetMessageType() api.MessageType {
154 return api.RequestMessage
157 func (m *GetFirstMsgID) Size() int {
165 func (m *GetFirstMsgID) Marshal(b []byte) ([]byte, error) {
166 var buf *codec.Buffer
168 buf = codec.NewBuffer(make([]byte, m.Size()))
170 buf = codec.NewBuffer(b)
172 buf.EncodeString(m.Name, 64)
173 return buf.Bytes(), nil
175 func (m *GetFirstMsgID) Unmarshal(b []byte) error {
176 buf := codec.NewBuffer(b)
177 m.Name = buf.DecodeString(64)
181 // GetFirstMsgIDReply defines message 'get_first_msg_id_reply'.
182 type GetFirstMsgIDReply struct {
183 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
184 FirstMsgID uint16 `binapi:"u16,name=first_msg_id" json:"first_msg_id,omitempty"`
187 func (m *GetFirstMsgIDReply) Reset() { *m = GetFirstMsgIDReply{} }
188 func (*GetFirstMsgIDReply) GetMessageName() string { return "get_first_msg_id_reply" }
189 func (*GetFirstMsgIDReply) GetCrcString() string { return "7d337472" }
190 func (*GetFirstMsgIDReply) GetMessageType() api.MessageType {
191 return api.ReplyMessage
194 func (m *GetFirstMsgIDReply) Size() int {
199 size += 4 // m.Retval
200 size += 2 // m.FirstMsgID
203 func (m *GetFirstMsgIDReply) Marshal(b []byte) ([]byte, error) {
204 var buf *codec.Buffer
206 buf = codec.NewBuffer(make([]byte, m.Size()))
208 buf = codec.NewBuffer(b)
210 buf.EncodeUint32(uint32(m.Retval))
211 buf.EncodeUint16(uint16(m.FirstMsgID))
212 return buf.Bytes(), nil
214 func (m *GetFirstMsgIDReply) Unmarshal(b []byte) error {
215 buf := codec.NewBuffer(b)
216 m.Retval = int32(buf.DecodeUint32())
217 m.FirstMsgID = buf.DecodeUint16()
221 // MemclntCreate defines message 'memclnt_create'.
222 type MemclntCreate struct {
223 CtxQuota int32 `binapi:"i32,name=ctx_quota" json:"ctx_quota,omitempty"`
224 InputQueue uint64 `binapi:"u64,name=input_queue" json:"input_queue,omitempty"`
225 Name string `binapi:"string[64],name=name" json:"name,omitempty"`
226 APIVersions []uint32 `binapi:"u32[8],name=api_versions" json:"api_versions,omitempty"`
229 func (m *MemclntCreate) Reset() { *m = MemclntCreate{} }
230 func (*MemclntCreate) GetMessageName() string { return "memclnt_create" }
231 func (*MemclntCreate) GetCrcString() string { return "9c5e1c2f" }
232 func (*MemclntCreate) GetMessageType() api.MessageType {
233 return api.ReplyMessage
236 func (m *MemclntCreate) Size() int {
241 size += 4 // m.CtxQuota
242 size += 8 // m.InputQueue
244 size += 4 * 8 // m.APIVersions
247 func (m *MemclntCreate) Marshal(b []byte) ([]byte, error) {
248 var buf *codec.Buffer
250 buf = codec.NewBuffer(make([]byte, m.Size()))
252 buf = codec.NewBuffer(b)
254 buf.EncodeUint32(uint32(m.CtxQuota))
255 buf.EncodeUint64(uint64(m.InputQueue))
256 buf.EncodeString(m.Name, 64)
257 for i := 0; i < 8; i++ {
259 if i < len(m.APIVersions) {
260 x = uint32(m.APIVersions[i])
262 buf.EncodeUint32(uint32(x))
264 return buf.Bytes(), nil
266 func (m *MemclntCreate) Unmarshal(b []byte) error {
267 buf := codec.NewBuffer(b)
268 m.CtxQuota = int32(buf.DecodeUint32())
269 m.InputQueue = buf.DecodeUint64()
270 m.Name = buf.DecodeString(64)
271 m.APIVersions = make([]uint32, 8)
272 for i := 0; i < len(m.APIVersions); i++ {
273 m.APIVersions[i] = buf.DecodeUint32()
278 // MemclntCreateReply defines message 'memclnt_create_reply'.
279 type MemclntCreateReply struct {
280 Response int32 `binapi:"i32,name=response" json:"response,omitempty"`
281 Handle uint64 `binapi:"u64,name=handle" json:"handle,omitempty"`
282 Index uint32 `binapi:"u32,name=index" json:"index,omitempty"`
283 MessageTable uint64 `binapi:"u64,name=message_table" json:"message_table,omitempty"`
286 func (m *MemclntCreateReply) Reset() { *m = MemclntCreateReply{} }
287 func (*MemclntCreateReply) GetMessageName() string { return "memclnt_create_reply" }
288 func (*MemclntCreateReply) GetCrcString() string { return "42ec4560" }
289 func (*MemclntCreateReply) GetMessageType() api.MessageType {
290 return api.ReplyMessage
293 func (m *MemclntCreateReply) Size() int {
298 size += 4 // m.Response
299 size += 8 // m.Handle
301 size += 8 // m.MessageTable
304 func (m *MemclntCreateReply) Marshal(b []byte) ([]byte, error) {
305 var buf *codec.Buffer
307 buf = codec.NewBuffer(make([]byte, m.Size()))
309 buf = codec.NewBuffer(b)
311 buf.EncodeUint32(uint32(m.Response))
312 buf.EncodeUint64(uint64(m.Handle))
313 buf.EncodeUint32(uint32(m.Index))
314 buf.EncodeUint64(uint64(m.MessageTable))
315 return buf.Bytes(), nil
317 func (m *MemclntCreateReply) Unmarshal(b []byte) error {
318 buf := codec.NewBuffer(b)
319 m.Response = int32(buf.DecodeUint32())
320 m.Handle = buf.DecodeUint64()
321 m.Index = buf.DecodeUint32()
322 m.MessageTable = buf.DecodeUint64()
326 // MemclntDelete defines message 'memclnt_delete'.
327 type MemclntDelete struct {
328 Index uint32 `binapi:"u32,name=index" json:"index,omitempty"`
329 Handle uint64 `binapi:"u64,name=handle" json:"handle,omitempty"`
330 DoCleanup bool `binapi:"bool,name=do_cleanup" json:"do_cleanup,omitempty"`
333 func (m *MemclntDelete) Reset() { *m = MemclntDelete{} }
334 func (*MemclntDelete) GetMessageName() string { return "memclnt_delete" }
335 func (*MemclntDelete) GetCrcString() string { return "7e1c04e3" }
336 func (*MemclntDelete) GetMessageType() api.MessageType {
337 return api.OtherMessage
340 func (m *MemclntDelete) Size() int {
346 size += 8 // m.Handle
347 size += 1 // m.DoCleanup
350 func (m *MemclntDelete) Marshal(b []byte) ([]byte, error) {
351 var buf *codec.Buffer
353 buf = codec.NewBuffer(make([]byte, m.Size()))
355 buf = codec.NewBuffer(b)
357 buf.EncodeUint32(uint32(m.Index))
358 buf.EncodeUint64(uint64(m.Handle))
359 buf.EncodeBool(m.DoCleanup)
360 return buf.Bytes(), nil
362 func (m *MemclntDelete) Unmarshal(b []byte) error {
363 buf := codec.NewBuffer(b)
364 m.Index = buf.DecodeUint32()
365 m.Handle = buf.DecodeUint64()
366 m.DoCleanup = buf.DecodeBool()
370 // MemclntDeleteReply defines message 'memclnt_delete_reply'.
371 type MemclntDeleteReply struct {
372 Response int32 `binapi:"i32,name=response" json:"response,omitempty"`
373 Handle uint64 `binapi:"u64,name=handle" json:"handle,omitempty"`
376 func (m *MemclntDeleteReply) Reset() { *m = MemclntDeleteReply{} }
377 func (*MemclntDeleteReply) GetMessageName() string { return "memclnt_delete_reply" }
378 func (*MemclntDeleteReply) GetCrcString() string { return "3d3b6312" }
379 func (*MemclntDeleteReply) GetMessageType() api.MessageType {
380 return api.OtherMessage
383 func (m *MemclntDeleteReply) Size() int {
388 size += 4 // m.Response
389 size += 8 // m.Handle
392 func (m *MemclntDeleteReply) Marshal(b []byte) ([]byte, error) {
393 var buf *codec.Buffer
395 buf = codec.NewBuffer(make([]byte, m.Size()))
397 buf = codec.NewBuffer(b)
399 buf.EncodeUint32(uint32(m.Response))
400 buf.EncodeUint64(uint64(m.Handle))
401 return buf.Bytes(), nil
403 func (m *MemclntDeleteReply) Unmarshal(b []byte) error {
404 buf := codec.NewBuffer(b)
405 m.Response = int32(buf.DecodeUint32())
406 m.Handle = buf.DecodeUint64()
410 // MemclntKeepalive defines message 'memclnt_keepalive'.
411 type MemclntKeepalive struct{}
413 func (m *MemclntKeepalive) Reset() { *m = MemclntKeepalive{} }
414 func (*MemclntKeepalive) GetMessageName() string { return "memclnt_keepalive" }
415 func (*MemclntKeepalive) GetCrcString() string { return "51077d14" }
416 func (*MemclntKeepalive) GetMessageType() api.MessageType {
417 return api.RequestMessage
420 func (m *MemclntKeepalive) Size() int {
427 func (m *MemclntKeepalive) Marshal(b []byte) ([]byte, error) {
428 var buf *codec.Buffer
430 buf = codec.NewBuffer(make([]byte, m.Size()))
432 buf = codec.NewBuffer(b)
434 return buf.Bytes(), nil
436 func (m *MemclntKeepalive) Unmarshal(b []byte) error {
440 // MemclntKeepaliveReply defines message 'memclnt_keepalive_reply'.
441 type MemclntKeepaliveReply struct {
442 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
445 func (m *MemclntKeepaliveReply) Reset() { *m = MemclntKeepaliveReply{} }
446 func (*MemclntKeepaliveReply) GetMessageName() string { return "memclnt_keepalive_reply" }
447 func (*MemclntKeepaliveReply) GetCrcString() string { return "e8d4e804" }
448 func (*MemclntKeepaliveReply) GetMessageType() api.MessageType {
449 return api.ReplyMessage
452 func (m *MemclntKeepaliveReply) Size() int {
457 size += 4 // m.Retval
460 func (m *MemclntKeepaliveReply) Marshal(b []byte) ([]byte, error) {
461 var buf *codec.Buffer
463 buf = codec.NewBuffer(make([]byte, m.Size()))
465 buf = codec.NewBuffer(b)
467 buf.EncodeUint32(uint32(m.Retval))
468 return buf.Bytes(), nil
470 func (m *MemclntKeepaliveReply) Unmarshal(b []byte) error {
471 buf := codec.NewBuffer(b)
472 m.Retval = int32(buf.DecodeUint32())
476 // MemclntReadTimeout defines message 'memclnt_read_timeout'.
477 type MemclntReadTimeout struct {
478 Dummy uint8 `binapi:"u8,name=dummy" json:"dummy,omitempty"`
481 func (m *MemclntReadTimeout) Reset() { *m = MemclntReadTimeout{} }
482 func (*MemclntReadTimeout) GetMessageName() string { return "memclnt_read_timeout" }
483 func (*MemclntReadTimeout) GetCrcString() string { return "c3a3a452" }
484 func (*MemclntReadTimeout) GetMessageType() api.MessageType {
485 return api.OtherMessage
488 func (m *MemclntReadTimeout) Size() int {
496 func (m *MemclntReadTimeout) Marshal(b []byte) ([]byte, error) {
497 var buf *codec.Buffer
499 buf = codec.NewBuffer(make([]byte, m.Size()))
501 buf = codec.NewBuffer(b)
503 buf.EncodeUint8(uint8(m.Dummy))
504 return buf.Bytes(), nil
506 func (m *MemclntReadTimeout) Unmarshal(b []byte) error {
507 buf := codec.NewBuffer(b)
508 m.Dummy = buf.DecodeUint8()
512 // MemclntRxThreadSuspend defines message 'memclnt_rx_thread_suspend'.
513 type MemclntRxThreadSuspend struct {
514 Dummy uint8 `binapi:"u8,name=dummy" json:"dummy,omitempty"`
517 func (m *MemclntRxThreadSuspend) Reset() { *m = MemclntRxThreadSuspend{} }
518 func (*MemclntRxThreadSuspend) GetMessageName() string { return "memclnt_rx_thread_suspend" }
519 func (*MemclntRxThreadSuspend) GetCrcString() string { return "c3a3a452" }
520 func (*MemclntRxThreadSuspend) GetMessageType() api.MessageType {
521 return api.OtherMessage
524 func (m *MemclntRxThreadSuspend) Size() int {
532 func (m *MemclntRxThreadSuspend) Marshal(b []byte) ([]byte, error) {
533 var buf *codec.Buffer
535 buf = codec.NewBuffer(make([]byte, m.Size()))
537 buf = codec.NewBuffer(b)
539 buf.EncodeUint8(uint8(m.Dummy))
540 return buf.Bytes(), nil
542 func (m *MemclntRxThreadSuspend) Unmarshal(b []byte) error {
543 buf := codec.NewBuffer(b)
544 m.Dummy = buf.DecodeUint8()
548 // RPCCall defines message 'rpc_call'.
549 type RPCCall struct {
550 Function uint64 `binapi:"u64,name=function" json:"function,omitempty"`
551 Multicast uint8 `binapi:"u8,name=multicast" json:"multicast,omitempty"`
552 NeedBarrierSync uint8 `binapi:"u8,name=need_barrier_sync" json:"need_barrier_sync,omitempty"`
553 SendReply uint8 `binapi:"u8,name=send_reply" json:"send_reply,omitempty"`
554 DataLen uint32 `binapi:"u32,name=data_len" json:"-"`
555 Data []byte `binapi:"u8[data_len],name=data" json:"data,omitempty"`
558 func (m *RPCCall) Reset() { *m = RPCCall{} }
559 func (*RPCCall) GetMessageName() string { return "rpc_call" }
560 func (*RPCCall) GetCrcString() string { return "7e8a2c95" }
561 func (*RPCCall) GetMessageType() api.MessageType {
562 return api.RequestMessage
565 func (m *RPCCall) Size() int {
570 size += 8 // m.Function
571 size += 1 // m.Multicast
572 size += 1 // m.NeedBarrierSync
573 size += 1 // m.SendReply
574 size += 4 // m.DataLen
575 size += 1 * len(m.Data) // m.Data
578 func (m *RPCCall) Marshal(b []byte) ([]byte, error) {
579 var buf *codec.Buffer
581 buf = codec.NewBuffer(make([]byte, m.Size()))
583 buf = codec.NewBuffer(b)
585 buf.EncodeUint64(uint64(m.Function))
586 buf.EncodeUint8(uint8(m.Multicast))
587 buf.EncodeUint8(uint8(m.NeedBarrierSync))
588 buf.EncodeUint8(uint8(m.SendReply))
589 buf.EncodeUint32(uint32(len(m.Data)))
590 buf.EncodeBytes(m.Data[:], 0)
591 return buf.Bytes(), nil
593 func (m *RPCCall) Unmarshal(b []byte) error {
594 buf := codec.NewBuffer(b)
595 m.Function = buf.DecodeUint64()
596 m.Multicast = buf.DecodeUint8()
597 m.NeedBarrierSync = buf.DecodeUint8()
598 m.SendReply = buf.DecodeUint8()
599 m.DataLen = buf.DecodeUint32()
600 copy(m.Data[:], buf.DecodeBytes(0))
604 // RPCCallReply defines message 'rpc_call_reply'.
605 type RPCCallReply struct {
606 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
609 func (m *RPCCallReply) Reset() { *m = RPCCallReply{} }
610 func (*RPCCallReply) GetMessageName() string { return "rpc_call_reply" }
611 func (*RPCCallReply) GetCrcString() string { return "e8d4e804" }
612 func (*RPCCallReply) GetMessageType() api.MessageType {
613 return api.ReplyMessage
616 func (m *RPCCallReply) Size() int {
621 size += 4 // m.Retval
624 func (m *RPCCallReply) Marshal(b []byte) ([]byte, error) {
625 var buf *codec.Buffer
627 buf = codec.NewBuffer(make([]byte, m.Size()))
629 buf = codec.NewBuffer(b)
631 buf.EncodeUint32(uint32(m.Retval))
632 return buf.Bytes(), nil
634 func (m *RPCCallReply) Unmarshal(b []byte) error {
635 buf := codec.NewBuffer(b)
636 m.Retval = int32(buf.DecodeUint32())
640 // RxThreadExit defines message 'rx_thread_exit'.
641 type RxThreadExit struct {
642 Dummy uint8 `binapi:"u8,name=dummy" json:"dummy,omitempty"`
645 func (m *RxThreadExit) Reset() { *m = RxThreadExit{} }
646 func (*RxThreadExit) GetMessageName() string { return "rx_thread_exit" }
647 func (*RxThreadExit) GetCrcString() string { return "c3a3a452" }
648 func (*RxThreadExit) GetMessageType() api.MessageType {
649 return api.OtherMessage
652 func (m *RxThreadExit) Size() int {
660 func (m *RxThreadExit) Marshal(b []byte) ([]byte, error) {
661 var buf *codec.Buffer
663 buf = codec.NewBuffer(make([]byte, m.Size()))
665 buf = codec.NewBuffer(b)
667 buf.EncodeUint8(uint8(m.Dummy))
668 return buf.Bytes(), nil
670 func (m *RxThreadExit) Unmarshal(b []byte) error {
671 buf := codec.NewBuffer(b)
672 m.Dummy = buf.DecodeUint8()
676 // SockInitShm defines message 'sock_init_shm'.
677 type SockInitShm struct {
678 RequestedSize uint32 `binapi:"u32,name=requested_size" json:"requested_size,omitempty"`
679 Nitems uint8 `binapi:"u8,name=nitems" json:"-"`
680 Configs []uint64 `binapi:"u64[nitems],name=configs" json:"configs,omitempty"`
683 func (m *SockInitShm) Reset() { *m = SockInitShm{} }
684 func (*SockInitShm) GetMessageName() string { return "sock_init_shm" }
685 func (*SockInitShm) GetCrcString() string { return "51646d92" }
686 func (*SockInitShm) GetMessageType() api.MessageType {
687 return api.RequestMessage
690 func (m *SockInitShm) Size() int {
695 size += 4 // m.RequestedSize
696 size += 1 // m.Nitems
697 size += 8 * len(m.Configs) // m.Configs
700 func (m *SockInitShm) Marshal(b []byte) ([]byte, error) {
701 var buf *codec.Buffer
703 buf = codec.NewBuffer(make([]byte, m.Size()))
705 buf = codec.NewBuffer(b)
707 buf.EncodeUint32(uint32(m.RequestedSize))
708 buf.EncodeUint8(uint8(len(m.Configs)))
709 for i := 0; i < len(m.Configs); i++ {
711 if i < len(m.Configs) {
712 x = uint64(m.Configs[i])
714 buf.EncodeUint64(uint64(x))
716 return buf.Bytes(), nil
718 func (m *SockInitShm) Unmarshal(b []byte) error {
719 buf := codec.NewBuffer(b)
720 m.RequestedSize = buf.DecodeUint32()
721 m.Nitems = buf.DecodeUint8()
722 m.Configs = make([]uint64, m.Nitems)
723 for i := 0; i < len(m.Configs); i++ {
724 m.Configs[i] = buf.DecodeUint64()
729 // SockInitShmReply defines message 'sock_init_shm_reply'.
730 type SockInitShmReply struct {
731 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
734 func (m *SockInitShmReply) Reset() { *m = SockInitShmReply{} }
735 func (*SockInitShmReply) GetMessageName() string { return "sock_init_shm_reply" }
736 func (*SockInitShmReply) GetCrcString() string { return "e8d4e804" }
737 func (*SockInitShmReply) GetMessageType() api.MessageType {
738 return api.ReplyMessage
741 func (m *SockInitShmReply) Size() int {
746 size += 4 // m.Retval
749 func (m *SockInitShmReply) Marshal(b []byte) ([]byte, error) {
750 var buf *codec.Buffer
752 buf = codec.NewBuffer(make([]byte, m.Size()))
754 buf = codec.NewBuffer(b)
756 buf.EncodeUint32(uint32(m.Retval))
757 return buf.Bytes(), nil
759 func (m *SockInitShmReply) Unmarshal(b []byte) error {
760 buf := codec.NewBuffer(b)
761 m.Retval = int32(buf.DecodeUint32())
765 // SockclntCreate defines message 'sockclnt_create'.
766 type SockclntCreate struct {
767 Name string `binapi:"string[64],name=name" json:"name,omitempty"`
770 func (m *SockclntCreate) Reset() { *m = SockclntCreate{} }
771 func (*SockclntCreate) GetMessageName() string { return "sockclnt_create" }
772 func (*SockclntCreate) GetCrcString() string { return "455fb9c4" }
773 func (*SockclntCreate) GetMessageType() api.MessageType {
774 return api.ReplyMessage
777 func (m *SockclntCreate) Size() int {
785 func (m *SockclntCreate) Marshal(b []byte) ([]byte, error) {
786 var buf *codec.Buffer
788 buf = codec.NewBuffer(make([]byte, m.Size()))
790 buf = codec.NewBuffer(b)
792 buf.EncodeString(m.Name, 64)
793 return buf.Bytes(), nil
795 func (m *SockclntCreate) Unmarshal(b []byte) error {
796 buf := codec.NewBuffer(b)
797 m.Name = buf.DecodeString(64)
801 // SockclntCreateReply defines message 'sockclnt_create_reply'.
802 type SockclntCreateReply struct {
803 Response int32 `binapi:"i32,name=response" json:"response,omitempty"`
804 Index uint32 `binapi:"u32,name=index" json:"index,omitempty"`
805 Count uint16 `binapi:"u16,name=count" json:"-"`
806 MessageTable []MessageTableEntry `binapi:"message_table_entry[count],name=message_table" json:"message_table,omitempty"`
809 func (m *SockclntCreateReply) Reset() { *m = SockclntCreateReply{} }
810 func (*SockclntCreateReply) GetMessageName() string { return "sockclnt_create_reply" }
811 func (*SockclntCreateReply) GetCrcString() string { return "35166268" }
812 func (*SockclntCreateReply) GetMessageType() api.MessageType {
813 return api.RequestMessage
816 func (m *SockclntCreateReply) Size() int {
821 size += 4 // m.Response
824 for j1 := 0; j1 < len(m.MessageTable); j1++ {
825 var s1 MessageTableEntry
827 if j1 < len(m.MessageTable) {
828 s1 = m.MessageTable[j1]
830 size += 2 // s1.Index
831 size += 64 // s1.Name
835 func (m *SockclntCreateReply) Marshal(b []byte) ([]byte, error) {
836 var buf *codec.Buffer
838 buf = codec.NewBuffer(make([]byte, m.Size()))
840 buf = codec.NewBuffer(b)
842 buf.EncodeUint32(uint32(m.Response))
843 buf.EncodeUint32(uint32(m.Index))
844 buf.EncodeUint16(uint16(len(m.MessageTable)))
845 for j0 := 0; j0 < len(m.MessageTable); j0++ {
846 var v0 MessageTableEntry
847 if j0 < len(m.MessageTable) {
848 v0 = m.MessageTable[j0]
850 buf.EncodeUint16(uint16(v0.Index))
851 buf.EncodeString(v0.Name, 64)
853 return buf.Bytes(), nil
855 func (m *SockclntCreateReply) Unmarshal(b []byte) error {
856 buf := codec.NewBuffer(b)
857 m.Response = int32(buf.DecodeUint32())
858 m.Index = buf.DecodeUint32()
859 m.Count = buf.DecodeUint16()
860 m.MessageTable = make([]MessageTableEntry, int(m.Count))
861 for j0 := 0; j0 < len(m.MessageTable); j0++ {
862 m.MessageTable[j0].Index = buf.DecodeUint16()
863 m.MessageTable[j0].Name = buf.DecodeString(64)
868 // SockclntDelete defines message 'sockclnt_delete'.
869 type SockclntDelete struct {
870 Index uint32 `binapi:"u32,name=index" json:"index,omitempty"`
873 func (m *SockclntDelete) Reset() { *m = SockclntDelete{} }
874 func (*SockclntDelete) GetMessageName() string { return "sockclnt_delete" }
875 func (*SockclntDelete) GetCrcString() string { return "8ac76db6" }
876 func (*SockclntDelete) GetMessageType() api.MessageType {
877 return api.RequestMessage
880 func (m *SockclntDelete) Size() int {
888 func (m *SockclntDelete) Marshal(b []byte) ([]byte, error) {
889 var buf *codec.Buffer
891 buf = codec.NewBuffer(make([]byte, m.Size()))
893 buf = codec.NewBuffer(b)
895 buf.EncodeUint32(uint32(m.Index))
896 return buf.Bytes(), nil
898 func (m *SockclntDelete) Unmarshal(b []byte) error {
899 buf := codec.NewBuffer(b)
900 m.Index = buf.DecodeUint32()
904 // SockclntDeleteReply defines message 'sockclnt_delete_reply'.
905 type SockclntDeleteReply struct {
906 Response int32 `binapi:"i32,name=response" json:"response,omitempty"`
909 func (m *SockclntDeleteReply) Reset() { *m = SockclntDeleteReply{} }
910 func (*SockclntDeleteReply) GetMessageName() string { return "sockclnt_delete_reply" }
911 func (*SockclntDeleteReply) GetCrcString() string { return "8f38b1ee" }
912 func (*SockclntDeleteReply) GetMessageType() api.MessageType {
913 return api.ReplyMessage
916 func (m *SockclntDeleteReply) Size() int {
921 size += 4 // m.Response
924 func (m *SockclntDeleteReply) Marshal(b []byte) ([]byte, error) {
925 var buf *codec.Buffer
927 buf = codec.NewBuffer(make([]byte, m.Size()))
929 buf = codec.NewBuffer(b)
931 buf.EncodeUint32(uint32(m.Response))
932 return buf.Bytes(), nil
934 func (m *SockclntDeleteReply) Unmarshal(b []byte) error {
935 buf := codec.NewBuffer(b)
936 m.Response = int32(buf.DecodeUint32())
940 // TracePluginMsgIds defines message 'trace_plugin_msg_ids'.
941 type TracePluginMsgIds struct {
942 PluginName string `binapi:"string[128],name=plugin_name" json:"plugin_name,omitempty"`
943 FirstMsgID uint16 `binapi:"u16,name=first_msg_id" json:"first_msg_id,omitempty"`
944 LastMsgID uint16 `binapi:"u16,name=last_msg_id" json:"last_msg_id,omitempty"`
947 func (m *TracePluginMsgIds) Reset() { *m = TracePluginMsgIds{} }
948 func (*TracePluginMsgIds) GetMessageName() string { return "trace_plugin_msg_ids" }
949 func (*TracePluginMsgIds) GetCrcString() string { return "f476d3ce" }
950 func (*TracePluginMsgIds) GetMessageType() api.MessageType {
951 return api.RequestMessage
954 func (m *TracePluginMsgIds) Size() int {
959 size += 128 // m.PluginName
960 size += 2 // m.FirstMsgID
961 size += 2 // m.LastMsgID
964 func (m *TracePluginMsgIds) Marshal(b []byte) ([]byte, error) {
965 var buf *codec.Buffer
967 buf = codec.NewBuffer(make([]byte, m.Size()))
969 buf = codec.NewBuffer(b)
971 buf.EncodeString(m.PluginName, 128)
972 buf.EncodeUint16(uint16(m.FirstMsgID))
973 buf.EncodeUint16(uint16(m.LastMsgID))
974 return buf.Bytes(), nil
976 func (m *TracePluginMsgIds) Unmarshal(b []byte) error {
977 buf := codec.NewBuffer(b)
978 m.PluginName = buf.DecodeString(128)
979 m.FirstMsgID = buf.DecodeUint16()
980 m.LastMsgID = buf.DecodeUint16()
984 func init() { file_memclnt_binapi_init() }
985 func file_memclnt_binapi_init() {
986 api.RegisterMessage((*APIVersions)(nil), "api_versions_51077d14")
987 api.RegisterMessage((*APIVersionsReply)(nil), "api_versions_reply_5f0d99d6")
988 api.RegisterMessage((*GetFirstMsgID)(nil), "get_first_msg_id_ebf79a66")
989 api.RegisterMessage((*GetFirstMsgIDReply)(nil), "get_first_msg_id_reply_7d337472")
990 api.RegisterMessage((*MemclntCreate)(nil), "memclnt_create_9c5e1c2f")
991 api.RegisterMessage((*MemclntCreateReply)(nil), "memclnt_create_reply_42ec4560")
992 api.RegisterMessage((*MemclntDelete)(nil), "memclnt_delete_7e1c04e3")
993 api.RegisterMessage((*MemclntDeleteReply)(nil), "memclnt_delete_reply_3d3b6312")
994 api.RegisterMessage((*MemclntKeepalive)(nil), "memclnt_keepalive_51077d14")
995 api.RegisterMessage((*MemclntKeepaliveReply)(nil), "memclnt_keepalive_reply_e8d4e804")
996 api.RegisterMessage((*MemclntReadTimeout)(nil), "memclnt_read_timeout_c3a3a452")
997 api.RegisterMessage((*MemclntRxThreadSuspend)(nil), "memclnt_rx_thread_suspend_c3a3a452")
998 api.RegisterMessage((*RPCCall)(nil), "rpc_call_7e8a2c95")
999 api.RegisterMessage((*RPCCallReply)(nil), "rpc_call_reply_e8d4e804")
1000 api.RegisterMessage((*RxThreadExit)(nil), "rx_thread_exit_c3a3a452")
1001 api.RegisterMessage((*SockInitShm)(nil), "sock_init_shm_51646d92")
1002 api.RegisterMessage((*SockInitShmReply)(nil), "sock_init_shm_reply_e8d4e804")
1003 api.RegisterMessage((*SockclntCreate)(nil), "sockclnt_create_455fb9c4")
1004 api.RegisterMessage((*SockclntCreateReply)(nil), "sockclnt_create_reply_35166268")
1005 api.RegisterMessage((*SockclntDelete)(nil), "sockclnt_delete_8ac76db6")
1006 api.RegisterMessage((*SockclntDeleteReply)(nil), "sockclnt_delete_reply_8f38b1ee")
1007 api.RegisterMessage((*TracePluginMsgIds)(nil), "trace_plugin_msg_ids_f476d3ce")
1010 // Messages returns list of all messages in this module.
1011 func AllMessages() []api.Message {
1012 return []api.Message{
1013 (*APIVersions)(nil),
1014 (*APIVersionsReply)(nil),
1015 (*GetFirstMsgID)(nil),
1016 (*GetFirstMsgIDReply)(nil),
1017 (*MemclntCreate)(nil),
1018 (*MemclntCreateReply)(nil),
1019 (*MemclntDelete)(nil),
1020 (*MemclntDeleteReply)(nil),
1021 (*MemclntKeepalive)(nil),
1022 (*MemclntKeepaliveReply)(nil),
1023 (*MemclntReadTimeout)(nil),
1024 (*MemclntRxThreadSuspend)(nil),
1026 (*RPCCallReply)(nil),
1027 (*RxThreadExit)(nil),
1028 (*SockInitShm)(nil),
1029 (*SockInitShmReply)(nil),
1030 (*SockclntCreate)(nil),
1031 (*SockclntCreateReply)(nil),
1032 (*SockclntDelete)(nil),
1033 (*SockclntDeleteReply)(nil),
1034 (*TracePluginMsgIds)(nil),