1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
3 // binapi-generator: v0.4.0-dev
6 // Package vpe contains generated bindings for API file vpe.api.
15 api "git.fd.io/govpp.git/api"
16 vpe_types "git.fd.io/govpp.git/binapi/vpe_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 = 0xbd2c94f4
32 // ThreadData defines type 'thread_data'.
33 type ThreadData struct {
34 ID uint32 `binapi:"u32,name=id" json:"id,omitempty"`
35 Name string `binapi:"string[64],name=name" json:"name,omitempty"`
36 Type string `binapi:"string[64],name=type" json:"type,omitempty"`
37 PID uint32 `binapi:"u32,name=pid" json:"pid,omitempty"`
38 CPUID uint32 `binapi:"u32,name=cpu_id" json:"cpu_id,omitempty"`
39 Core uint32 `binapi:"u32,name=core" json:"core,omitempty"`
40 CPUSocket uint32 `binapi:"u32,name=cpu_socket" json:"cpu_socket,omitempty"`
43 // AddNodeNext defines message 'add_node_next'.
44 type AddNodeNext struct {
45 NodeName string `binapi:"string[64],name=node_name" json:"node_name,omitempty"`
46 NextName string `binapi:"string[64],name=next_name" json:"next_name,omitempty"`
49 func (m *AddNodeNext) Reset() { *m = AddNodeNext{} }
50 func (*AddNodeNext) GetMessageName() string { return "add_node_next" }
51 func (*AddNodeNext) GetCrcString() string { return "2457116d" }
52 func (*AddNodeNext) GetMessageType() api.MessageType {
53 return api.RequestMessage
56 func (m *AddNodeNext) Size() (size int) {
60 size += 64 // m.NodeName
61 size += 64 // m.NextName
64 func (m *AddNodeNext) Marshal(b []byte) ([]byte, error) {
66 b = make([]byte, m.Size())
68 buf := codec.NewBuffer(b)
69 buf.EncodeString(m.NodeName, 64)
70 buf.EncodeString(m.NextName, 64)
71 return buf.Bytes(), nil
73 func (m *AddNodeNext) Unmarshal(b []byte) error {
74 buf := codec.NewBuffer(b)
75 m.NodeName = buf.DecodeString(64)
76 m.NextName = buf.DecodeString(64)
80 // AddNodeNextReply defines message 'add_node_next_reply'.
81 type AddNodeNextReply struct {
82 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
83 NextIndex uint32 `binapi:"u32,name=next_index" json:"next_index,omitempty"`
86 func (m *AddNodeNextReply) Reset() { *m = AddNodeNextReply{} }
87 func (*AddNodeNextReply) GetMessageName() string { return "add_node_next_reply" }
88 func (*AddNodeNextReply) GetCrcString() string { return "2ed75f32" }
89 func (*AddNodeNextReply) GetMessageType() api.MessageType {
90 return api.ReplyMessage
93 func (m *AddNodeNextReply) Size() (size int) {
98 size += 4 // m.NextIndex
101 func (m *AddNodeNextReply) Marshal(b []byte) ([]byte, error) {
103 b = make([]byte, m.Size())
105 buf := codec.NewBuffer(b)
106 buf.EncodeInt32(m.Retval)
107 buf.EncodeUint32(m.NextIndex)
108 return buf.Bytes(), nil
110 func (m *AddNodeNextReply) Unmarshal(b []byte) error {
111 buf := codec.NewBuffer(b)
112 m.Retval = buf.DecodeInt32()
113 m.NextIndex = buf.DecodeUint32()
117 // Cli defines message 'cli'.
119 CmdInShmem uint64 `binapi:"u64,name=cmd_in_shmem" json:"cmd_in_shmem,omitempty"`
122 func (m *Cli) Reset() { *m = Cli{} }
123 func (*Cli) GetMessageName() string { return "cli" }
124 func (*Cli) GetCrcString() string { return "23bfbfff" }
125 func (*Cli) GetMessageType() api.MessageType {
126 return api.RequestMessage
129 func (m *Cli) Size() (size int) {
133 size += 8 // m.CmdInShmem
136 func (m *Cli) Marshal(b []byte) ([]byte, error) {
138 b = make([]byte, m.Size())
140 buf := codec.NewBuffer(b)
141 buf.EncodeUint64(m.CmdInShmem)
142 return buf.Bytes(), nil
144 func (m *Cli) Unmarshal(b []byte) error {
145 buf := codec.NewBuffer(b)
146 m.CmdInShmem = buf.DecodeUint64()
150 // CliInband defines message 'cli_inband'.
151 type CliInband struct {
152 Cmd string `binapi:"string[],name=cmd" json:"cmd,omitempty"`
155 func (m *CliInband) Reset() { *m = CliInband{} }
156 func (*CliInband) GetMessageName() string { return "cli_inband" }
157 func (*CliInband) GetCrcString() string { return "f8377302" }
158 func (*CliInband) GetMessageType() api.MessageType {
159 return api.RequestMessage
162 func (m *CliInband) Size() (size int) {
166 size += 4 + len(m.Cmd) // m.Cmd
169 func (m *CliInband) Marshal(b []byte) ([]byte, error) {
171 b = make([]byte, m.Size())
173 buf := codec.NewBuffer(b)
174 buf.EncodeString(m.Cmd, 0)
175 return buf.Bytes(), nil
177 func (m *CliInband) Unmarshal(b []byte) error {
178 buf := codec.NewBuffer(b)
179 m.Cmd = buf.DecodeString(0)
183 // CliInbandReply defines message 'cli_inband_reply'.
184 type CliInbandReply struct {
185 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
186 Reply string `binapi:"string[],name=reply" json:"reply,omitempty"`
189 func (m *CliInbandReply) Reset() { *m = CliInbandReply{} }
190 func (*CliInbandReply) GetMessageName() string { return "cli_inband_reply" }
191 func (*CliInbandReply) GetCrcString() string { return "05879051" }
192 func (*CliInbandReply) GetMessageType() api.MessageType {
193 return api.ReplyMessage
196 func (m *CliInbandReply) Size() (size int) {
200 size += 4 // m.Retval
201 size += 4 + len(m.Reply) // m.Reply
204 func (m *CliInbandReply) Marshal(b []byte) ([]byte, error) {
206 b = make([]byte, m.Size())
208 buf := codec.NewBuffer(b)
209 buf.EncodeInt32(m.Retval)
210 buf.EncodeString(m.Reply, 0)
211 return buf.Bytes(), nil
213 func (m *CliInbandReply) Unmarshal(b []byte) error {
214 buf := codec.NewBuffer(b)
215 m.Retval = buf.DecodeInt32()
216 m.Reply = buf.DecodeString(0)
220 // CliReply defines message 'cli_reply'.
221 type CliReply struct {
222 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
223 ReplyInShmem uint64 `binapi:"u64,name=reply_in_shmem" json:"reply_in_shmem,omitempty"`
226 func (m *CliReply) Reset() { *m = CliReply{} }
227 func (*CliReply) GetMessageName() string { return "cli_reply" }
228 func (*CliReply) GetCrcString() string { return "06d68297" }
229 func (*CliReply) GetMessageType() api.MessageType {
230 return api.ReplyMessage
233 func (m *CliReply) Size() (size int) {
237 size += 4 // m.Retval
238 size += 8 // m.ReplyInShmem
241 func (m *CliReply) Marshal(b []byte) ([]byte, error) {
243 b = make([]byte, m.Size())
245 buf := codec.NewBuffer(b)
246 buf.EncodeInt32(m.Retval)
247 buf.EncodeUint64(m.ReplyInShmem)
248 return buf.Bytes(), nil
250 func (m *CliReply) Unmarshal(b []byte) error {
251 buf := codec.NewBuffer(b)
252 m.Retval = buf.DecodeInt32()
253 m.ReplyInShmem = buf.DecodeUint64()
257 // ControlPing defines message 'control_ping'.
258 type ControlPing struct{}
260 func (m *ControlPing) Reset() { *m = ControlPing{} }
261 func (*ControlPing) GetMessageName() string { return "control_ping" }
262 func (*ControlPing) GetCrcString() string { return "51077d14" }
263 func (*ControlPing) GetMessageType() api.MessageType {
264 return api.RequestMessage
267 func (m *ControlPing) Size() (size int) {
273 func (m *ControlPing) Marshal(b []byte) ([]byte, error) {
275 b = make([]byte, m.Size())
277 buf := codec.NewBuffer(b)
278 return buf.Bytes(), nil
280 func (m *ControlPing) Unmarshal(b []byte) error {
284 // ControlPingReply defines message 'control_ping_reply'.
285 type ControlPingReply struct {
286 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
287 ClientIndex uint32 `binapi:"u32,name=client_index" json:"client_index,omitempty"`
288 VpePID uint32 `binapi:"u32,name=vpe_pid" json:"vpe_pid,omitempty"`
291 func (m *ControlPingReply) Reset() { *m = ControlPingReply{} }
292 func (*ControlPingReply) GetMessageName() string { return "control_ping_reply" }
293 func (*ControlPingReply) GetCrcString() string { return "f6b0b8ca" }
294 func (*ControlPingReply) GetMessageType() api.MessageType {
295 return api.ReplyMessage
298 func (m *ControlPingReply) Size() (size int) {
302 size += 4 // m.Retval
303 size += 4 // m.ClientIndex
304 size += 4 // m.VpePID
307 func (m *ControlPingReply) Marshal(b []byte) ([]byte, error) {
309 b = make([]byte, m.Size())
311 buf := codec.NewBuffer(b)
312 buf.EncodeInt32(m.Retval)
313 buf.EncodeUint32(m.ClientIndex)
314 buf.EncodeUint32(m.VpePID)
315 return buf.Bytes(), nil
317 func (m *ControlPingReply) Unmarshal(b []byte) error {
318 buf := codec.NewBuffer(b)
319 m.Retval = buf.DecodeInt32()
320 m.ClientIndex = buf.DecodeUint32()
321 m.VpePID = buf.DecodeUint32()
325 // GetF64EndianValue defines message 'get_f64_endian_value'.
326 type GetF64EndianValue struct {
327 F64One float64 `binapi:"f64,name=f64_one,default=1" json:"f64_one,omitempty"`
330 func (m *GetF64EndianValue) Reset() { *m = GetF64EndianValue{} }
331 func (*GetF64EndianValue) GetMessageName() string { return "get_f64_endian_value" }
332 func (*GetF64EndianValue) GetCrcString() string { return "809fcd44" }
333 func (*GetF64EndianValue) GetMessageType() api.MessageType {
334 return api.RequestMessage
337 func (m *GetF64EndianValue) Size() (size int) {
341 size += 8 // m.F64One
344 func (m *GetF64EndianValue) Marshal(b []byte) ([]byte, error) {
346 b = make([]byte, m.Size())
348 buf := codec.NewBuffer(b)
349 buf.EncodeFloat64(m.F64One)
350 return buf.Bytes(), nil
352 func (m *GetF64EndianValue) Unmarshal(b []byte) error {
353 buf := codec.NewBuffer(b)
354 m.F64One = buf.DecodeFloat64()
358 // GetF64EndianValueReply defines message 'get_f64_endian_value_reply'.
359 type GetF64EndianValueReply struct {
360 Retval uint32 `binapi:"u32,name=retval" json:"retval,omitempty"`
361 F64OneResult float64 `binapi:"f64,name=f64_one_result" json:"f64_one_result,omitempty"`
364 func (m *GetF64EndianValueReply) Reset() { *m = GetF64EndianValueReply{} }
365 func (*GetF64EndianValueReply) GetMessageName() string { return "get_f64_endian_value_reply" }
366 func (*GetF64EndianValueReply) GetCrcString() string { return "7e02e404" }
367 func (*GetF64EndianValueReply) GetMessageType() api.MessageType {
368 return api.ReplyMessage
371 func (m *GetF64EndianValueReply) Size() (size int) {
375 size += 4 // m.Retval
376 size += 8 // m.F64OneResult
379 func (m *GetF64EndianValueReply) Marshal(b []byte) ([]byte, error) {
381 b = make([]byte, m.Size())
383 buf := codec.NewBuffer(b)
384 buf.EncodeUint32(m.Retval)
385 buf.EncodeFloat64(m.F64OneResult)
386 return buf.Bytes(), nil
388 func (m *GetF64EndianValueReply) Unmarshal(b []byte) error {
389 buf := codec.NewBuffer(b)
390 m.Retval = buf.DecodeUint32()
391 m.F64OneResult = buf.DecodeFloat64()
395 // GetF64IncrementByOne defines message 'get_f64_increment_by_one'.
396 type GetF64IncrementByOne struct {
397 F64Value float64 `binapi:"f64,name=f64_value,default=1" json:"f64_value,omitempty"`
400 func (m *GetF64IncrementByOne) Reset() { *m = GetF64IncrementByOne{} }
401 func (*GetF64IncrementByOne) GetMessageName() string { return "get_f64_increment_by_one" }
402 func (*GetF64IncrementByOne) GetCrcString() string { return "b64f027e" }
403 func (*GetF64IncrementByOne) GetMessageType() api.MessageType {
404 return api.RequestMessage
407 func (m *GetF64IncrementByOne) Size() (size int) {
411 size += 8 // m.F64Value
414 func (m *GetF64IncrementByOne) Marshal(b []byte) ([]byte, error) {
416 b = make([]byte, m.Size())
418 buf := codec.NewBuffer(b)
419 buf.EncodeFloat64(m.F64Value)
420 return buf.Bytes(), nil
422 func (m *GetF64IncrementByOne) Unmarshal(b []byte) error {
423 buf := codec.NewBuffer(b)
424 m.F64Value = buf.DecodeFloat64()
428 // GetF64IncrementByOneReply defines message 'get_f64_increment_by_one_reply'.
429 type GetF64IncrementByOneReply struct {
430 Retval uint32 `binapi:"u32,name=retval" json:"retval,omitempty"`
431 F64Value float64 `binapi:"f64,name=f64_value" json:"f64_value,omitempty"`
434 func (m *GetF64IncrementByOneReply) Reset() { *m = GetF64IncrementByOneReply{} }
435 func (*GetF64IncrementByOneReply) GetMessageName() string { return "get_f64_increment_by_one_reply" }
436 func (*GetF64IncrementByOneReply) GetCrcString() string { return "d25dbaa3" }
437 func (*GetF64IncrementByOneReply) GetMessageType() api.MessageType {
438 return api.ReplyMessage
441 func (m *GetF64IncrementByOneReply) Size() (size int) {
445 size += 4 // m.Retval
446 size += 8 // m.F64Value
449 func (m *GetF64IncrementByOneReply) Marshal(b []byte) ([]byte, error) {
451 b = make([]byte, m.Size())
453 buf := codec.NewBuffer(b)
454 buf.EncodeUint32(m.Retval)
455 buf.EncodeFloat64(m.F64Value)
456 return buf.Bytes(), nil
458 func (m *GetF64IncrementByOneReply) Unmarshal(b []byte) error {
459 buf := codec.NewBuffer(b)
460 m.Retval = buf.DecodeUint32()
461 m.F64Value = buf.DecodeFloat64()
465 // GetNextIndex defines message 'get_next_index'.
466 type GetNextIndex struct {
467 NodeName string `binapi:"string[64],name=node_name" json:"node_name,omitempty"`
468 NextName string `binapi:"string[64],name=next_name" json:"next_name,omitempty"`
471 func (m *GetNextIndex) Reset() { *m = GetNextIndex{} }
472 func (*GetNextIndex) GetMessageName() string { return "get_next_index" }
473 func (*GetNextIndex) GetCrcString() string { return "2457116d" }
474 func (*GetNextIndex) GetMessageType() api.MessageType {
475 return api.RequestMessage
478 func (m *GetNextIndex) Size() (size int) {
482 size += 64 // m.NodeName
483 size += 64 // m.NextName
486 func (m *GetNextIndex) Marshal(b []byte) ([]byte, error) {
488 b = make([]byte, m.Size())
490 buf := codec.NewBuffer(b)
491 buf.EncodeString(m.NodeName, 64)
492 buf.EncodeString(m.NextName, 64)
493 return buf.Bytes(), nil
495 func (m *GetNextIndex) Unmarshal(b []byte) error {
496 buf := codec.NewBuffer(b)
497 m.NodeName = buf.DecodeString(64)
498 m.NextName = buf.DecodeString(64)
502 // GetNextIndexReply defines message 'get_next_index_reply'.
503 type GetNextIndexReply struct {
504 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
505 NextIndex uint32 `binapi:"u32,name=next_index" json:"next_index,omitempty"`
508 func (m *GetNextIndexReply) Reset() { *m = GetNextIndexReply{} }
509 func (*GetNextIndexReply) GetMessageName() string { return "get_next_index_reply" }
510 func (*GetNextIndexReply) GetCrcString() string { return "2ed75f32" }
511 func (*GetNextIndexReply) GetMessageType() api.MessageType {
512 return api.ReplyMessage
515 func (m *GetNextIndexReply) Size() (size int) {
519 size += 4 // m.Retval
520 size += 4 // m.NextIndex
523 func (m *GetNextIndexReply) Marshal(b []byte) ([]byte, error) {
525 b = make([]byte, m.Size())
527 buf := codec.NewBuffer(b)
528 buf.EncodeInt32(m.Retval)
529 buf.EncodeUint32(m.NextIndex)
530 return buf.Bytes(), nil
532 func (m *GetNextIndexReply) Unmarshal(b []byte) error {
533 buf := codec.NewBuffer(b)
534 m.Retval = buf.DecodeInt32()
535 m.NextIndex = buf.DecodeUint32()
539 // GetNodeGraph defines message 'get_node_graph'.
540 type GetNodeGraph struct{}
542 func (m *GetNodeGraph) Reset() { *m = GetNodeGraph{} }
543 func (*GetNodeGraph) GetMessageName() string { return "get_node_graph" }
544 func (*GetNodeGraph) GetCrcString() string { return "51077d14" }
545 func (*GetNodeGraph) GetMessageType() api.MessageType {
546 return api.RequestMessage
549 func (m *GetNodeGraph) Size() (size int) {
555 func (m *GetNodeGraph) Marshal(b []byte) ([]byte, error) {
557 b = make([]byte, m.Size())
559 buf := codec.NewBuffer(b)
560 return buf.Bytes(), nil
562 func (m *GetNodeGraph) Unmarshal(b []byte) error {
566 // GetNodeGraphReply defines message 'get_node_graph_reply'.
567 type GetNodeGraphReply struct {
568 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
569 ReplyInShmem uint64 `binapi:"u64,name=reply_in_shmem" json:"reply_in_shmem,omitempty"`
572 func (m *GetNodeGraphReply) Reset() { *m = GetNodeGraphReply{} }
573 func (*GetNodeGraphReply) GetMessageName() string { return "get_node_graph_reply" }
574 func (*GetNodeGraphReply) GetCrcString() string { return "06d68297" }
575 func (*GetNodeGraphReply) GetMessageType() api.MessageType {
576 return api.ReplyMessage
579 func (m *GetNodeGraphReply) Size() (size int) {
583 size += 4 // m.Retval
584 size += 8 // m.ReplyInShmem
587 func (m *GetNodeGraphReply) Marshal(b []byte) ([]byte, error) {
589 b = make([]byte, m.Size())
591 buf := codec.NewBuffer(b)
592 buf.EncodeInt32(m.Retval)
593 buf.EncodeUint64(m.ReplyInShmem)
594 return buf.Bytes(), nil
596 func (m *GetNodeGraphReply) Unmarshal(b []byte) error {
597 buf := codec.NewBuffer(b)
598 m.Retval = buf.DecodeInt32()
599 m.ReplyInShmem = buf.DecodeUint64()
603 // GetNodeIndex defines message 'get_node_index'.
604 type GetNodeIndex struct {
605 NodeName string `binapi:"string[64],name=node_name" json:"node_name,omitempty"`
608 func (m *GetNodeIndex) Reset() { *m = GetNodeIndex{} }
609 func (*GetNodeIndex) GetMessageName() string { return "get_node_index" }
610 func (*GetNodeIndex) GetCrcString() string { return "f1984c64" }
611 func (*GetNodeIndex) GetMessageType() api.MessageType {
612 return api.RequestMessage
615 func (m *GetNodeIndex) Size() (size int) {
619 size += 64 // m.NodeName
622 func (m *GetNodeIndex) Marshal(b []byte) ([]byte, error) {
624 b = make([]byte, m.Size())
626 buf := codec.NewBuffer(b)
627 buf.EncodeString(m.NodeName, 64)
628 return buf.Bytes(), nil
630 func (m *GetNodeIndex) Unmarshal(b []byte) error {
631 buf := codec.NewBuffer(b)
632 m.NodeName = buf.DecodeString(64)
636 // GetNodeIndexReply defines message 'get_node_index_reply'.
637 type GetNodeIndexReply struct {
638 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
639 NodeIndex uint32 `binapi:"u32,name=node_index" json:"node_index,omitempty"`
642 func (m *GetNodeIndexReply) Reset() { *m = GetNodeIndexReply{} }
643 func (*GetNodeIndexReply) GetMessageName() string { return "get_node_index_reply" }
644 func (*GetNodeIndexReply) GetCrcString() string { return "a8600b89" }
645 func (*GetNodeIndexReply) GetMessageType() api.MessageType {
646 return api.ReplyMessage
649 func (m *GetNodeIndexReply) Size() (size int) {
653 size += 4 // m.Retval
654 size += 4 // m.NodeIndex
657 func (m *GetNodeIndexReply) Marshal(b []byte) ([]byte, error) {
659 b = make([]byte, m.Size())
661 buf := codec.NewBuffer(b)
662 buf.EncodeInt32(m.Retval)
663 buf.EncodeUint32(m.NodeIndex)
664 return buf.Bytes(), nil
666 func (m *GetNodeIndexReply) Unmarshal(b []byte) error {
667 buf := codec.NewBuffer(b)
668 m.Retval = buf.DecodeInt32()
669 m.NodeIndex = buf.DecodeUint32()
673 // LogDetails defines message 'log_details'.
674 type LogDetails struct {
675 Timestamp vpe_types.Timestamp `binapi:"timestamp,name=timestamp" json:"timestamp,omitempty"`
676 Level vpe_types.LogLevel `binapi:"log_level,name=level" json:"level,omitempty"`
677 MsgClass string `binapi:"string[32],name=msg_class" json:"msg_class,omitempty"`
678 Message string `binapi:"string[256],name=message" json:"message,omitempty"`
681 func (m *LogDetails) Reset() { *m = LogDetails{} }
682 func (*LogDetails) GetMessageName() string { return "log_details" }
683 func (*LogDetails) GetCrcString() string { return "255827a1" }
684 func (*LogDetails) GetMessageType() api.MessageType {
685 return api.ReplyMessage
688 func (m *LogDetails) Size() (size int) {
692 size += 8 // m.Timestamp
694 size += 32 // m.MsgClass
695 size += 256 // m.Message
698 func (m *LogDetails) Marshal(b []byte) ([]byte, error) {
700 b = make([]byte, m.Size())
702 buf := codec.NewBuffer(b)
703 buf.EncodeFloat64(float64(m.Timestamp))
704 buf.EncodeUint32(uint32(m.Level))
705 buf.EncodeString(m.MsgClass, 32)
706 buf.EncodeString(m.Message, 256)
707 return buf.Bytes(), nil
709 func (m *LogDetails) Unmarshal(b []byte) error {
710 buf := codec.NewBuffer(b)
711 m.Timestamp = vpe_types.Timestamp(buf.DecodeFloat64())
712 m.Level = vpe_types.LogLevel(buf.DecodeUint32())
713 m.MsgClass = buf.DecodeString(32)
714 m.Message = buf.DecodeString(256)
718 // LogDump defines message 'log_dump'.
719 type LogDump struct {
720 StartTimestamp vpe_types.Timestamp `binapi:"timestamp,name=start_timestamp" json:"start_timestamp,omitempty"`
723 func (m *LogDump) Reset() { *m = LogDump{} }
724 func (*LogDump) GetMessageName() string { return "log_dump" }
725 func (*LogDump) GetCrcString() string { return "6ab31753" }
726 func (*LogDump) GetMessageType() api.MessageType {
727 return api.RequestMessage
730 func (m *LogDump) Size() (size int) {
734 size += 8 // m.StartTimestamp
737 func (m *LogDump) Marshal(b []byte) ([]byte, error) {
739 b = make([]byte, m.Size())
741 buf := codec.NewBuffer(b)
742 buf.EncodeFloat64(float64(m.StartTimestamp))
743 return buf.Bytes(), nil
745 func (m *LogDump) Unmarshal(b []byte) error {
746 buf := codec.NewBuffer(b)
747 m.StartTimestamp = vpe_types.Timestamp(buf.DecodeFloat64())
751 // ShowThreads defines message 'show_threads'.
752 type ShowThreads struct{}
754 func (m *ShowThreads) Reset() { *m = ShowThreads{} }
755 func (*ShowThreads) GetMessageName() string { return "show_threads" }
756 func (*ShowThreads) GetCrcString() string { return "51077d14" }
757 func (*ShowThreads) GetMessageType() api.MessageType {
758 return api.RequestMessage
761 func (m *ShowThreads) Size() (size int) {
767 func (m *ShowThreads) Marshal(b []byte) ([]byte, error) {
769 b = make([]byte, m.Size())
771 buf := codec.NewBuffer(b)
772 return buf.Bytes(), nil
774 func (m *ShowThreads) Unmarshal(b []byte) error {
778 // ShowThreadsReply defines message 'show_threads_reply'.
779 type ShowThreadsReply struct {
780 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
781 Count uint32 `binapi:"u32,name=count" json:"-"`
782 ThreadData []ThreadData `binapi:"thread_data[count],name=thread_data" json:"thread_data,omitempty"`
785 func (m *ShowThreadsReply) Reset() { *m = ShowThreadsReply{} }
786 func (*ShowThreadsReply) GetMessageName() string { return "show_threads_reply" }
787 func (*ShowThreadsReply) GetCrcString() string { return "efd78e83" }
788 func (*ShowThreadsReply) GetMessageType() api.MessageType {
789 return api.ReplyMessage
792 func (m *ShowThreadsReply) Size() (size int) {
796 size += 4 // m.Retval
798 for j1 := 0; j1 < len(m.ThreadData); j1++ {
801 if j1 < len(m.ThreadData) {
802 s1 = m.ThreadData[j1]
805 size += 64 // s1.Name
806 size += 64 // s1.Type
808 size += 4 // s1.CPUID
810 size += 4 // s1.CPUSocket
814 func (m *ShowThreadsReply) Marshal(b []byte) ([]byte, error) {
816 b = make([]byte, m.Size())
818 buf := codec.NewBuffer(b)
819 buf.EncodeInt32(m.Retval)
820 buf.EncodeUint32(uint32(len(m.ThreadData)))
821 for j0 := 0; j0 < len(m.ThreadData); j0++ {
822 var v0 ThreadData // ThreadData
823 if j0 < len(m.ThreadData) {
824 v0 = m.ThreadData[j0]
826 buf.EncodeUint32(v0.ID)
827 buf.EncodeString(v0.Name, 64)
828 buf.EncodeString(v0.Type, 64)
829 buf.EncodeUint32(v0.PID)
830 buf.EncodeUint32(v0.CPUID)
831 buf.EncodeUint32(v0.Core)
832 buf.EncodeUint32(v0.CPUSocket)
834 return buf.Bytes(), nil
836 func (m *ShowThreadsReply) Unmarshal(b []byte) error {
837 buf := codec.NewBuffer(b)
838 m.Retval = buf.DecodeInt32()
839 m.Count = buf.DecodeUint32()
840 m.ThreadData = make([]ThreadData, m.Count)
841 for j0 := 0; j0 < len(m.ThreadData); j0++ {
842 m.ThreadData[j0].ID = buf.DecodeUint32()
843 m.ThreadData[j0].Name = buf.DecodeString(64)
844 m.ThreadData[j0].Type = buf.DecodeString(64)
845 m.ThreadData[j0].PID = buf.DecodeUint32()
846 m.ThreadData[j0].CPUID = buf.DecodeUint32()
847 m.ThreadData[j0].Core = buf.DecodeUint32()
848 m.ThreadData[j0].CPUSocket = buf.DecodeUint32()
853 // ShowVersion defines message 'show_version'.
854 type ShowVersion struct{}
856 func (m *ShowVersion) Reset() { *m = ShowVersion{} }
857 func (*ShowVersion) GetMessageName() string { return "show_version" }
858 func (*ShowVersion) GetCrcString() string { return "51077d14" }
859 func (*ShowVersion) GetMessageType() api.MessageType {
860 return api.RequestMessage
863 func (m *ShowVersion) Size() (size int) {
869 func (m *ShowVersion) Marshal(b []byte) ([]byte, error) {
871 b = make([]byte, m.Size())
873 buf := codec.NewBuffer(b)
874 return buf.Bytes(), nil
876 func (m *ShowVersion) Unmarshal(b []byte) error {
880 // ShowVersionReply defines message 'show_version_reply'.
881 type ShowVersionReply struct {
882 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
883 Program string `binapi:"string[32],name=program" json:"program,omitempty"`
884 Version string `binapi:"string[32],name=version" json:"version,omitempty"`
885 BuildDate string `binapi:"string[32],name=build_date" json:"build_date,omitempty"`
886 BuildDirectory string `binapi:"string[256],name=build_directory" json:"build_directory,omitempty"`
889 func (m *ShowVersionReply) Reset() { *m = ShowVersionReply{} }
890 func (*ShowVersionReply) GetMessageName() string { return "show_version_reply" }
891 func (*ShowVersionReply) GetCrcString() string { return "c919bde1" }
892 func (*ShowVersionReply) GetMessageType() api.MessageType {
893 return api.ReplyMessage
896 func (m *ShowVersionReply) Size() (size int) {
900 size += 4 // m.Retval
901 size += 32 // m.Program
902 size += 32 // m.Version
903 size += 32 // m.BuildDate
904 size += 256 // m.BuildDirectory
907 func (m *ShowVersionReply) Marshal(b []byte) ([]byte, error) {
909 b = make([]byte, m.Size())
911 buf := codec.NewBuffer(b)
912 buf.EncodeInt32(m.Retval)
913 buf.EncodeString(m.Program, 32)
914 buf.EncodeString(m.Version, 32)
915 buf.EncodeString(m.BuildDate, 32)
916 buf.EncodeString(m.BuildDirectory, 256)
917 return buf.Bytes(), nil
919 func (m *ShowVersionReply) Unmarshal(b []byte) error {
920 buf := codec.NewBuffer(b)
921 m.Retval = buf.DecodeInt32()
922 m.Program = buf.DecodeString(32)
923 m.Version = buf.DecodeString(32)
924 m.BuildDate = buf.DecodeString(32)
925 m.BuildDirectory = buf.DecodeString(256)
929 // ShowVpeSystemTime defines message 'show_vpe_system_time'.
930 type ShowVpeSystemTime struct{}
932 func (m *ShowVpeSystemTime) Reset() { *m = ShowVpeSystemTime{} }
933 func (*ShowVpeSystemTime) GetMessageName() string { return "show_vpe_system_time" }
934 func (*ShowVpeSystemTime) GetCrcString() string { return "51077d14" }
935 func (*ShowVpeSystemTime) GetMessageType() api.MessageType {
936 return api.RequestMessage
939 func (m *ShowVpeSystemTime) Size() (size int) {
945 func (m *ShowVpeSystemTime) Marshal(b []byte) ([]byte, error) {
947 b = make([]byte, m.Size())
949 buf := codec.NewBuffer(b)
950 return buf.Bytes(), nil
952 func (m *ShowVpeSystemTime) Unmarshal(b []byte) error {
956 // ShowVpeSystemTimeReply defines message 'show_vpe_system_time_reply'.
957 type ShowVpeSystemTimeReply struct {
958 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
959 VpeSystemTime vpe_types.Timestamp `binapi:"timestamp,name=vpe_system_time" json:"vpe_system_time,omitempty"`
962 func (m *ShowVpeSystemTimeReply) Reset() { *m = ShowVpeSystemTimeReply{} }
963 func (*ShowVpeSystemTimeReply) GetMessageName() string { return "show_vpe_system_time_reply" }
964 func (*ShowVpeSystemTimeReply) GetCrcString() string { return "7ffd8193" }
965 func (*ShowVpeSystemTimeReply) GetMessageType() api.MessageType {
966 return api.ReplyMessage
969 func (m *ShowVpeSystemTimeReply) Size() (size int) {
973 size += 4 // m.Retval
974 size += 8 // m.VpeSystemTime
977 func (m *ShowVpeSystemTimeReply) Marshal(b []byte) ([]byte, error) {
979 b = make([]byte, m.Size())
981 buf := codec.NewBuffer(b)
982 buf.EncodeInt32(m.Retval)
983 buf.EncodeFloat64(float64(m.VpeSystemTime))
984 return buf.Bytes(), nil
986 func (m *ShowVpeSystemTimeReply) Unmarshal(b []byte) error {
987 buf := codec.NewBuffer(b)
988 m.Retval = buf.DecodeInt32()
989 m.VpeSystemTime = vpe_types.Timestamp(buf.DecodeFloat64())
993 func init() { file_vpe_binapi_init() }
994 func file_vpe_binapi_init() {
995 api.RegisterMessage((*AddNodeNext)(nil), "add_node_next_2457116d")
996 api.RegisterMessage((*AddNodeNextReply)(nil), "add_node_next_reply_2ed75f32")
997 api.RegisterMessage((*Cli)(nil), "cli_23bfbfff")
998 api.RegisterMessage((*CliInband)(nil), "cli_inband_f8377302")
999 api.RegisterMessage((*CliInbandReply)(nil), "cli_inband_reply_05879051")
1000 api.RegisterMessage((*CliReply)(nil), "cli_reply_06d68297")
1001 api.RegisterMessage((*ControlPing)(nil), "control_ping_51077d14")
1002 api.RegisterMessage((*ControlPingReply)(nil), "control_ping_reply_f6b0b8ca")
1003 api.RegisterMessage((*GetF64EndianValue)(nil), "get_f64_endian_value_809fcd44")
1004 api.RegisterMessage((*GetF64EndianValueReply)(nil), "get_f64_endian_value_reply_7e02e404")
1005 api.RegisterMessage((*GetF64IncrementByOne)(nil), "get_f64_increment_by_one_b64f027e")
1006 api.RegisterMessage((*GetF64IncrementByOneReply)(nil), "get_f64_increment_by_one_reply_d25dbaa3")
1007 api.RegisterMessage((*GetNextIndex)(nil), "get_next_index_2457116d")
1008 api.RegisterMessage((*GetNextIndexReply)(nil), "get_next_index_reply_2ed75f32")
1009 api.RegisterMessage((*GetNodeGraph)(nil), "get_node_graph_51077d14")
1010 api.RegisterMessage((*GetNodeGraphReply)(nil), "get_node_graph_reply_06d68297")
1011 api.RegisterMessage((*GetNodeIndex)(nil), "get_node_index_f1984c64")
1012 api.RegisterMessage((*GetNodeIndexReply)(nil), "get_node_index_reply_a8600b89")
1013 api.RegisterMessage((*LogDetails)(nil), "log_details_255827a1")
1014 api.RegisterMessage((*LogDump)(nil), "log_dump_6ab31753")
1015 api.RegisterMessage((*ShowThreads)(nil), "show_threads_51077d14")
1016 api.RegisterMessage((*ShowThreadsReply)(nil), "show_threads_reply_efd78e83")
1017 api.RegisterMessage((*ShowVersion)(nil), "show_version_51077d14")
1018 api.RegisterMessage((*ShowVersionReply)(nil), "show_version_reply_c919bde1")
1019 api.RegisterMessage((*ShowVpeSystemTime)(nil), "show_vpe_system_time_51077d14")
1020 api.RegisterMessage((*ShowVpeSystemTimeReply)(nil), "show_vpe_system_time_reply_7ffd8193")
1023 // Messages returns list of all messages in this module.
1024 func AllMessages() []api.Message {
1025 return []api.Message{
1026 (*AddNodeNext)(nil),
1027 (*AddNodeNextReply)(nil),
1030 (*CliInbandReply)(nil),
1032 (*ControlPing)(nil),
1033 (*ControlPingReply)(nil),
1034 (*GetF64EndianValue)(nil),
1035 (*GetF64EndianValueReply)(nil),
1036 (*GetF64IncrementByOne)(nil),
1037 (*GetF64IncrementByOneReply)(nil),
1038 (*GetNextIndex)(nil),
1039 (*GetNextIndexReply)(nil),
1040 (*GetNodeGraph)(nil),
1041 (*GetNodeGraphReply)(nil),
1042 (*GetNodeIndex)(nil),
1043 (*GetNodeIndexReply)(nil),
1046 (*ShowThreads)(nil),
1047 (*ShowThreadsReply)(nil),
1048 (*ShowVersion)(nil),
1049 (*ShowVersionReply)(nil),
1050 (*ShowVpeSystemTime)(nil),
1051 (*ShowVpeSystemTimeReply)(nil),