summaryrefslogtreecommitdiffstats
path: root/binapi/vlib/vlib.ba.go
blob: c8bc3e663549b0e865f750c391f1beae1a96f9fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
// Code generated by GoVPP's binapi-generator. DO NOT EDIT.
// versions:
//  binapi-generator: v0.5.0
//  VPP:              22.02-release
// source: /usr/share/vpp/api/core/vlib.api.json

// Package vlib contains generated bindings for API file vlib.api.
//
// Contents:
//   1 struct
//  18 messages
//
package vlib

import (
	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    = "vlib"
	APIVersion = "1.0.0"
	VersionCrc = 0x9a9e84e4
)

// ThreadData defines type 'thread_data'.
type ThreadData struct {
	ID        uint32 `binapi:"u32,name=id" json:"id,omitempty"`
	Name      string `binapi:"string[64],name=name" json:"name,omitempty"`
	Type      string `binapi:"string[64],name=type" json:"type,omitempty"`
	PID       uint32 `binapi:"u32,name=pid" json:"pid,omitempty"`
	CPUID     uint32 `binapi:"u32,name=cpu_id" json:"cpu_id,omitempty"`
	Core      uint32 `binapi:"u32,name=core" json:"core,omitempty"`
	CPUSocket uint32 `binapi:"u32,name=cpu_socket" json:"cpu_socket,omitempty"`
}

// AddNodeNext defines message 'add_node_next'.
type AddNodeNext struct {
	NodeName string `binapi:"string[64],name=node_name" json:"node_name,omitempty"`
	NextName string `binapi:"string[64],name=next_name" json:"next_name,omitempty"`
}

func (m *AddNodeNext) Reset()               { *m = AddNodeNext{} }
func (*AddNodeNext) GetMessageName() string { return "add_node_next" }
func (*AddNodeNext) GetCrcString() string   { return "2457116d" }
func (*AddNodeNext) GetMessageType() api.MessageType {
	return api.RequestMessage
}

func (m *AddNodeNext) Size() (size int) {
	if m == nil {
		return 0
	}
	size += 64 // m.NodeName
	size += 64 // m.NextName
	return size
}
func (m *AddNodeNext) Marshal(b []byte) ([]byte, error) {
	if b == nil {
		b = make([]byte, m.Size())
	}
	buf := codec.NewBuffer(b)
	buf.EncodeString(m.NodeName, 64)
	buf.EncodeString(m.NextName, 64)
	return buf.Bytes(), nil
}
func (m *AddNodeNext) Unmarshal(b []byte) error {
	buf := codec.NewBuffer(b)
	m.NodeName = buf.DecodeString(64)
	m.NextName = buf.DecodeString(64)
	return nil
}

// AddNodeNextReply defines message 'add_node_next_reply'.
type AddNodeNextReply struct {
	Retval    int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	NextIndex uint32 `binapi:"u32,name=next_index" json:"next_index,omitempty"`
}

func (m *AddNodeNextReply) Reset()               { *m = AddNodeNextReply{} }
func (*AddNodeNextReply) GetMessageName() string { return "add_node_next_reply" }
func (*AddNodeNextReply) GetCrcString() string   { return "2ed75f32" }
func (*AddNodeNextReply) GetMessageType() api.MessageType {
	return api.ReplyMessage
}

func (m *AddNodeNextReply) Size() (size int) {
	if m == nil {
		return 0
	}
	size += 4 // m.Retval
	size += 4 // m.NextIndex
	return size
}
func (m *AddNodeNextReply) Marshal(b []byte) ([]byte, error) {
	if b == nil {
		b = make([]byte, m.Size())
	}
	buf := codec.NewBuffer(b)
	buf.EncodeInt32(m.Retval)
	buf.EncodeUint32(m.NextIndex)
	return buf.Bytes(), nil
}
func (m *AddNodeNextReply) Unmarshal(b []byte) error {
	buf := codec.NewBuffer(b)
	m.Retval = buf.DecodeInt32()
	m.NextIndex = buf.DecodeUint32()
	return nil
}

// Cli defines message 'cli'.
type Cli struct {
	CmdInShmem uint64 `binapi:"u64,name=cmd_in_shmem" json:"cmd_in_shmem,omitempty"`
}

func (m *Cli) Reset()               { *m = Cli{} }
func (*Cli) GetMessageName() string { return "cli" }
func (*Cli) GetCrcString() string   { return "23bfbfff" }
func (*Cli) GetMessageType() api.MessageType {
	return api.RequestMessage
}

func (m *Cli) Size() (size int) {
	if m == nil {
		return 0
	}
	size += 8 // m.CmdInShmem
	return size
}
func (m *Cli) Marshal(b []byte) ([]byte, error) {
	if b == nil {
		b = make([]byte, m.Size())
	}
	buf := codec.NewBuffer(b)
	buf.EncodeUint64(m.CmdInShmem)
	return buf.Bytes(), nil
}
func (m *Cli) Unmarshal(b []byte) error {
	buf := codec.NewBuffer(b)
	m.CmdInShmem = buf.DecodeUint64()
	return nil
}

// CliInband defines message 'cli_inband'.
type CliInband struct {
	Cmd string `binapi:"string[],name=cmd" json:"cmd,omitempty"`
}

func (m *CliInband) Reset()               { *m = CliInband{} }
func (*CliInband) GetMessageName() string { return "cli_inband" }
func (*CliInband) GetCrcString() string   { return "f8377302" }
func (*CliInband) GetMessageType() api.MessageType {
	return api.RequestMessage
}

func (m *CliInband) Size() (size int) {
	if m == nil {
		return 0
	}
	size += 4 + len(m.Cmd) // m.Cmd
	return size
}
func (m *CliInband) Marshal(b []byte) ([]byte, error) {
	if b == nil {
		b = make([]byte, m.Size())
	}
	buf := codec.NewBuffer(b)
	buf.EncodeString(m.Cmd, 0)
	return buf.Bytes(), nil
}
func (m *CliInband) Unmarshal(b []byte) error {
	buf := codec.NewBuffer(b)
	m.Cmd = buf.DecodeString(0)
	return nil
}

// CliInbandReply defines message 'cli_inband_reply'.
type CliInbandReply struct {
	Retval int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	Reply  string `binapi:"string[],name=reply" json:"reply,omitempty"`
}

func (m *CliInbandReply) Reset()               { *m = CliInbandReply{} }
func (*CliInbandReply) GetMessageName() string { return "cli_inband_reply" }
func (*CliInbandReply) GetCrcString() string   { return "05879051" }
func (*CliInbandReply) GetMessageType() api.MessageType {
	return api.ReplyMessage
}

func (m *CliInbandReply) Size() (size int) {
	if m == nil {
		return 0
	}
	size += 4                // m.Retval
	size += 4 + len(m.Reply) // m.Reply
	return size
}
func (m *CliInbandReply) Marshal(b []byte) ([]byte, error) {
	if b == nil {
		b = make([]byte, m.Size())
	}
	buf := codec.NewBuffer(b)
	buf.EncodeInt32(m.Retval)
	buf.EncodeString(m.Reply, 0)
	return buf.Bytes(), nil
}
func (m *CliInbandReply) Unmarshal(b []byte) error {
	buf := codec.NewBuffer(b)
	m.Retval = buf.DecodeInt32()
	m.Reply = buf.DecodeString(0)
	return nil
}

// CliReply defines message 'cli_reply'.
type CliReply struct {
	Retval       int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	ReplyInShmem uint64 `binapi:"u64,name=reply_in_shmem" json:"reply_in_shmem,omitempty"`
}

func (m *CliReply) Reset()               { *m = CliReply{} }
func (*CliReply) GetMessageName() string { return "cli_reply" }
func (*CliReply) GetCrcString() string   { return "06d68297" }
func (*CliReply) GetMessageType() api.MessageType {
	return api.ReplyMessage
}

func (m *CliReply) Size() (size int) {
	if m == nil {
		return 0
	}
	size += 4 // m.Retval
	size += 8 // m.ReplyInShmem
	return size
}
func (m *CliReply) Marshal(b []byte) ([]byte, error) {
	if b == nil {
		b = make([]byte, m.Size())
	}
	buf := codec.NewBuffer(b)
	buf.EncodeInt32(m.Retval)
	buf.EncodeUint64(m.ReplyInShmem)
	return buf.Bytes(), nil
}
func (m *CliReply) Unmarshal(b []byte) error {
	buf := codec.NewBuffer(b)
	m.Retval = buf.DecodeInt32()
	m.ReplyInShmem = buf.DecodeUint64()
	return nil
}

// GetF64EndianValue defines message 'get_f64_endian_value'.
type GetF64EndianValue struct {
	F64One float64 `binapi:"f64,name=f64_one,default=1" json:"f64_one,omitempty"`
}

func (m *GetF64EndianValue) Reset()               { *m = GetF64EndianValue{} }
func (*GetF64EndianValue) GetMessageName() string { return "get_f64_endian_value" }
func (*GetF64EndianValue) GetCrcString() string   { return "809fcd44" }
func (*GetF64EndianValue) GetMessageType() api.MessageType {
	return api.RequestMessage
}

func (m *GetF64EndianValue) Size() (size int) {
	if m == nil {
		return 0
	}
	size += 8 // m.F64One
	return size
}
func (m *GetF64EndianValue) Marshal(b []byte) ([]byte, error) {
	if b == nil {
		b = make([]byte, m.Size())
	}
	buf := codec.NewBuffer(b)
	buf.EncodeFloat64(m.F64One)
	return buf.Bytes(), nil
}
func (m *GetF64EndianValue) Unmarshal(b []byte) error {
	buf := codec.NewBuffer(b)
	m.F64One = buf.DecodeFloat64()
	return nil
}

// GetF64EndianValueReply defines message 'get_f64_endian_value_reply'.
type GetF64EndianValueReply struct {
	Retval       uint32  `binapi:"u32,name=retval" json:"retval,omitempty"`
	F64OneResult float64 `binapi:"f64,name=f64_one_result" json:"f64_one_result,omitempty"`
}

func (m *GetF64EndianValueReply) Reset()               { *m = GetF64EndianValueReply{} }
func (*GetF64EndianValueReply) GetMessageName() string { return "get_f64_endian_value_reply" }
func (*GetF64EndianValueReply) GetCrcString() string   { return "7e02e404" }
func (*GetF64EndianValueReply) GetMessageType() api.MessageType {
	return api.ReplyMessage
}

func (m *GetF64EndianValueReply) Size() (size int) {
	if m == nil {
		return 0
	}
	size += 4 // m.Retval
	size += 8 // m.F64OneResult
	return size
}
func (m *GetF64EndianValueReply) Marshal(b []byte) ([]byte, error) {
	if b == nil {
		b = make([]byte, m.Size())
	}
	buf := codec.NewBuffer(b)
	buf.EncodeUint32(m.Retval)
	buf.EncodeFloat64(m.F64OneResult)
	return buf.Bytes(), nil
}
func (m *GetF64EndianValueReply) Unmarshal(b []byte) error {
	buf := codec.NewBuffer(b)
	m.Retval = buf.DecodeUint32()
	m.F64OneResult = buf.DecodeFloat64()
	return nil
}

// GetF64IncrementByOne defines message 'get_f64_increment_by_one'.
type GetF64IncrementByOne struct {
	F64Value float64 `binapi:"f64,name=f64_value,default=1" json:"f64_value,omitempty"`
}

func (m *GetF64IncrementByOne) Reset()               { *m = GetF64IncrementByOne{} }
func (*GetF64IncrementByOne) GetMessageName() string { return "get_f64_increment_by_one" }
func (*GetF64IncrementByOne) GetCrcString() string   { return "b64f027e" }
func (*GetF64IncrementByOne) GetMessageType() api.MessageType {
	return api.RequestMessage
}

func (m *GetF64IncrementByOne) Size() (size int) {
	if m == nil {
		return 0
	}
	size += 8 // m.F64Value
	return size
}
func (m *GetF64IncrementByOne) Marshal(b []byte) ([]byte, error) {
	if b == nil {
		b = make([]byte, m.Size())
	}
	buf := codec.NewBuffer(b)
	buf.EncodeFloat64(m.F64Value)
	return buf.Bytes(), nil
}
func (m *GetF64IncrementByOne) Unmarshal(b []byte) error {
	buf := codec.NewBuffer(b)
	m.F64Value = buf.DecodeFloat64()
	return nil
}

// GetF64IncrementByOneReply defines message 'get_f64_increment_by_one_reply'.
type GetF64IncrementByOneReply struct {
	Retval   uint32  `binapi:"u32,name=retval" json:"retval,omitempty"`
	F64Value float64 `binapi:"f64,name=f64_value" json:"f64_value,omitempty"`
}

func (m *GetF64IncrementByOneReply) Reset()               { *m = GetF64IncrementByOneReply{} }
func (*GetF64IncrementByOneReply) GetMessageName() string { return "get_f64_increment_by_one_reply" }
func (*GetF64IncrementByOneReply) GetCrcString() string   { return "d25dbaa3" }
func (*GetF64IncrementByOneReply) GetMessageType() api.MessageType {
	return api.ReplyMessage
}

func (m *GetF64IncrementByOneReply) Size() (size int) {
	if m == nil {
		return 0
	}
	size += 4 // m.Retval
	size += 8 // m.F64Value
	return size
}
func (m *GetF64IncrementByOneReply) Marshal(b []byte) ([]byte, error) {
	if b == nil {
		b = make([]byte, m.Size())
	}
	buf := codec.NewBuffer(b)
	buf.EncodeUint32(m.Retval)
	buf.EncodeFloat64(m.F64Value)
	return buf.Bytes(), nil
}
func (m *GetF64IncrementByOneReply) Unmarshal(b []byte) error {
	buf := codec.NewBuffer(b)
	m.Retval = buf.DecodeUint32()
	m.F64Value = buf.DecodeFloat64()
	return nil
}

// GetNextIndex defines message 'get_next_index'.
type GetNextIndex struct {
	NodeName string `binapi:"string[64],name=node_name" json:"node_name,omitempty"`
	NextName string `binapi:"string[64],name=next_name" json:"next_name,omitempty"`
}

func (m *GetNextIndex) Reset()               { *m = GetNextIndex{} }
func (*GetNextIndex) GetMessageName() string { return "get_next_index" }
func (*GetNextIndex) GetCrcString() string   { return "2457116d" }
func (*GetNextIndex) GetMessageType() api.MessageType {
	return api.RequestMessage
}

func (m *GetNextIndex) Size() (size int) {
	if m == nil {
		return 0
	}
	size += 64 // m.NodeName
	size += 64 // m.NextName
	return size
}
func (m *GetNextIndex) Marshal(b []byte) ([]byte, error) {
	if b == nil {
		b = make([]byte, m.Size())
	}
	buf := codec.NewBuffer(b)
	buf.EncodeString(m.NodeName, 64)
	buf.EncodeString(m.NextName, 64)
	return buf.Bytes(), nil
}
func (m *GetNextIndex) Unmarshal(b []byte) error {
	buf := codec.NewBuffer(b)
	m.NodeName = buf.DecodeString(64)
	m.NextName = buf.DecodeString(64)
	return nil
}

// GetNextIndexReply defines message 'get_next_index_reply'.
type GetNextIndexReply struct {
	Retval    int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	NextIndex uint32 `binapi:"u32,name=next_index" json:"next_index,omitempty"`
}

func (m *GetNextIndexReply) Reset()               { *m = GetNextIndexReply{} }
func (*GetNextIndexReply) GetMessageName() string { return "get_next_index_reply" }
func (*GetNextIndexReply) GetCrcString() string   { return "2ed75f32" }
func (*GetNextIndexReply) GetMessageType() api.MessageType {
	return api.ReplyMessage
}

func (m *GetNextIndexReply) Size() (size int) {
	if m == nil {
		return 0
	}
	size += 4 // m.Retval
	size += 4 // m.NextIndex
	return size
}
func (m *GetNextIndexReply) Marshal(b []byte) ([]byte, error) {
	if b == nil {
		b = make([]byte, m.Size())
	}
	buf := codec.NewBuffer(b)
	buf.EncodeInt32(m.Retval)
	buf.EncodeUint32(m.NextIndex)
	return buf.Bytes(), nil
}
func (m *GetNextIndexReply) Unmarshal(b []byte) error {
	buf := codec.NewBuffer(b)
	m.Retval = buf.DecodeInt32()
	m.NextIndex = buf.DecodeUint32()
	return nil
}

// GetNodeGraph defines message 'get_node_graph'.
type GetNodeGraph struct{}

func (m *GetNodeGraph) Reset()               { *m = GetNodeGraph{} }
func (*GetNodeGraph) GetMessageName() string { return "get_node_graph" }
func (*GetNodeGraph) GetCrcString() string   { return "51077d14" }
func (*GetNodeGraph) GetMessageType() api.MessageType {
	return api.RequestMessage
}

func (m *GetNodeGraph) Size() (size int) {
	if m == nil {
		return 0
	}
	return size
}
func (m *GetNodeGraph) Marshal(b []byte) ([]byte, error) {
	if b == nil {
		b = make([]byte, m.Size())
	}
	buf := codec.NewBuffer(b)
	return buf.Bytes(), nil
}
func (m *GetNodeGraph) Unmarshal(b []byte) error {
	return nil
}

// GetNodeGraphReply defines message 'get_node_graph_reply'.
type GetNodeGraphReply struct {
	Retval       int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	ReplyInShmem uint64 `binapi:"u64,name=reply_in_shmem" json:"reply_in_shmem,omitempty"`
}

func (m *GetNodeGraphReply) Reset()               { *m = GetNodeGraphReply{} }
func (*GetNodeGraphReply) GetMessageName() string { return "get_node_graph_reply" }
func (*GetNodeGraphReply) GetCrcString() string   { return "06d68297" }
func (*GetNodeGraphReply) GetMessageType() api.MessageType {
	return api.ReplyMessage
}

func (m *GetNodeGraphReply) Size() (size int) {
	if m == nil {
		return 0
	}
	size += 4 // m.Retval
	size += 8 // m.ReplyInShmem
	return size
}
func (m *GetNodeGraphReply) Marshal(b []byte) ([]byte, error) {
	if b == nil {
		b = make([]byte, m.Size())
	}
	buf := codec.NewBuffer(b)
	buf.EncodeInt32(m.Retval)
	buf.EncodeUint64(m.ReplyInShmem)
	return buf.Bytes(), nil
}
func (m *GetNodeGraphReply) Unmarshal(b []byte) error {
	buf := codec.NewBuffer(b)
	m.Retval = buf.DecodeInt32()
	m.ReplyInShmem = buf.DecodeUint64()
	return nil
}

// GetNodeIndex defines message 'get_node_index'.
type GetNodeIndex struct {
	NodeName string `binapi:"string[64],name=node_name" json:"node_name,omitempty"`
}

func (m *GetNodeIndex) Reset()               { *m = GetNodeIndex{} }
func (*GetNodeIndex) GetMessageName() string { return "get_node_index" }
func (*GetNodeIndex) GetCrcString() string   { return "f1984c64" }
func (*GetNodeIndex) GetMessageType() api.MessageType {
	return api.RequestMessage
}

func (m *GetNodeIndex) Size() (size int) {
	if m == nil {
		return 0
	}
	size += 64 // m.NodeName
	return size
}
func (m *GetNodeIndex) Marshal(b []byte) ([]byte, error) {
	if b == nil {
		b = make([]byte, m.Size())
	}
	buf := codec.NewBuffer(b)
	buf.EncodeString(m.NodeName, 64)
	return buf.Bytes(), nil
}
func (m *GetNodeIndex) Unmarshal(b []byte) error {
	buf := codec.NewBuffer(b)
	m.NodeName = buf.DecodeString(64)
	return nil
}

// GetNodeIndexReply defines message 'get_node_index_reply'.
type GetNodeIndexReply struct {
	Retval    int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	NodeIndex uint32 `binapi:"u32,name=node_index" json:"node_index,omitempty"`
}

func (m *GetNodeIndexReply) Reset()               { *m = GetNodeIndexReply{} }
func (*GetNodeIndexReply) GetMessageName() string { return "get_node_index_reply" }
func (*GetNodeIndexReply) GetCrcString() string   { return "a8600b89" }
func (*GetNodeIndexReply) GetMessageType() api.MessageType {
	return api.ReplyMessage
}

func (m *GetNodeIndexReply) Size() (size int) {
	if m == nil {
		return 0
	}
	size += 4 // m.Retval
	size += 4 // m.NodeIndex
	return size
}
func (m *GetNodeIndexReply) Marshal(b []byte) ([]byte, error) {
	if b == nil {
		b = make([]byte, m.Size())
	}
	buf := codec.NewBuffer(b)
	buf.EncodeInt32(m.Retval)
	buf.EncodeUint32(m.NodeIndex)
	return buf.Bytes(), nil
}
func (m *GetNodeIndexReply) Unmarshal(b []byte) error {
	buf := codec.NewBuffer(b)
	m.Retval = buf.DecodeInt32()
	m.NodeIndex = buf.DecodeUint32()
	return nil
}

// ShowThreads defines message 'show_threads'.
type ShowThreads struct{}

func (m *ShowThreads) Reset()               { *m = ShowThreads{} }
func (*ShowThreads) GetMessageName() string { return "show_threads" }
func (*ShowThreads) GetCrcString() string   { return "51077d14" }
func (*ShowThreads) GetMessageType() api.MessageType {
	return api.RequestMessage
}

func (m *ShowThreads) Size() (size int) {
	if m == nil {
		return 0
	}
	return size
}
func (m *ShowThreads) Marshal(b []byte) ([]byte, error) {
	if b == nil {
		b = make([]byte, m.Size())
	}
	buf := codec.NewBuffer(b)
	return buf.Bytes(), nil
}
func (m *ShowThreads) Unmarshal(b []byte) error {
	return nil
}

// ShowThreadsReply defines message 'show_threads_reply'.
type ShowThreadsReply struct {
	Retval     int32        `binapi:"i32,name=retval" json:"retval,omitempty"`
	Count      uint32       `binapi:"u32,name=count" json:"-"`
	ThreadData []ThreadData `binapi:"thread_data[count],name=thread_data" json:"thread_data,omitempty"`
}

func (m *ShowThreadsReply) Reset()               { *m = ShowThreadsReply{} }
func (*ShowThreadsReply) GetMessageName() string { return "show_threads_reply" }
func (*ShowThreadsReply) GetCrcString() string   { return "efd78e83" }
func (*ShowThreadsReply) GetMessageType() api.MessageType {
	return api.ReplyMessage
}

func (m *ShowThreadsReply) Size() (size int) {
	if m == nil {
		return 0
	}
	size += 4 // m.Retval
	size += 4 // m.Count
	for j1 := 0; j1 < len(m.ThreadData); j1++ {
		var s1 ThreadData
		_ = s1
		if j1 < len(m.ThreadData) {
			s1 = m.ThreadData[j1]
		}
		size += 4  // s1.ID
		size += 64 // s1.Name
		size += 64 // s1.Type
		size += 4  // s1.PID
		size += 4  // s1.CPUID
		size += 4  // s1.Core
		size += 4  // s1.CPUSocket
	}
	return size
}
func (m *ShowThreadsReply) Marshal(b []byte) ([]byte, error) {
	if b == nil {
		b = make([]byte, m.Size())
	}
	buf := codec.NewBuffer(b)
	buf.EncodeInt32(m.Retval)
	buf.EncodeUint32(uint32(len(m.ThreadData)))
	for j0 := 0; j0 < len(m.ThreadData); j0++ {
		var v0 ThreadData // ThreadData
		if j0 < len(m.ThreadData) {
			v0 = m.ThreadData[j0]
		}
		buf.EncodeUint32(v0.ID)
		buf.EncodeString(v0.Name, 64)
		buf.EncodeString(v0.Type, 64)
		buf.EncodeUint32(v0.PID)
		buf.EncodeUint32(v0.CPUID)
		buf.EncodeUint32(v0.Core)
		buf.EncodeUint32(v0.CPUSocket)
	}
	return buf.Bytes(), nil
}
func (m *ShowThreadsReply) Unmarshal(b []byte) error {
	buf := codec.NewBuffer(b)
	m.Retval = buf.DecodeInt32()
	m.Count = buf.DecodeUint32()
	m.ThreadData = make([]ThreadData, m.Count)
	for j0 := 0; j0 < len(m.ThreadData); j0++ {
		m.ThreadData[j0].ID = buf.DecodeUint32()
		m.ThreadData[j0].Name = buf.DecodeString(64)
		m.ThreadData[j0].Type = buf.DecodeString(64)
		m.ThreadData[j0].PID = buf.DecodeUint32()
		m.ThreadData[j0].CPUID = buf.DecodeUint32()
		m.ThreadData[j0].Core = buf.DecodeUint32()
		m.ThreadData[j0].CPUSocket = buf.DecodeUint32()
	}
	return nil
}

func init() { file_vlib_binapi_init() }
func file_vlib_binapi_init() {
	api.RegisterMessage((*AddNodeNext)(nil), "add_node_next_2457116d")
	api.RegisterMessage((*AddNodeNextReply)(nil), "add_node_next_reply_2ed75f32")
	api.RegisterMessage((*Cli)(nil), "cli_23bfbfff")
	api.RegisterMessage((*CliInband)(nil), "cli_inband_f8377302")
	api.RegisterMessage((*CliInbandReply)(nil), "cli_inband_reply_05879051")
	api.RegisterMessage((*CliReply)(nil), "cli_reply_06d68297")
	api.RegisterMessage((*GetF64EndianValue)(nil), "get_f64_endian_value_809fcd44")
	api.RegisterMessage((*GetF64EndianValueReply)(nil), "get_f64_endian_value_reply_7e02e404")
	api.RegisterMessage((*GetF64IncrementByOne)(nil), "get_f64_increment_by_one_b64f027e")
	api.RegisterMessage((*GetF64IncrementByOneReply)(nil), "get_f64_increment_by_one_reply_d25dbaa3")
	api.RegisterMessage((*GetNextIndex)(nil), "get_next_index_2457116d")
	api.RegisterMessage((*GetNextIndexReply)(nil), "get_next_index_reply_2ed75f32")
	api.RegisterMessage((*GetNodeGraph)(nil), "get_node_graph_51077d14")
	api.RegisterMessage((*GetNodeGraphReply)(nil), "get_node_graph_reply_06d68297")
	api.RegisterMessage((*GetNodeIndex)(nil), "get_node_index_f1984c64")
	api.RegisterMessage((*GetNodeIndexReply)(nil), "get_node_index_reply_a8600b89")
	api.RegisterMessage((*ShowThreads)(nil), "show_threads_51077d14")
	api.RegisterMessage((*ShowThreadsReply)(nil), "show_threads_reply_efd78e83")
}

// Messages returns list of all messages in this module.
func AllMessages() []api.Message {
	return []api.Message{
		(*AddNodeNext)(nil),
		(*AddNodeNextReply)(nil),
		(*Cli)(nil),
		(*CliInband)(nil),
		(*CliInbandReply)(nil),
		(*CliReply)(nil),
		(*GetF64EndianValue)(nil),
		(*GetF64EndianValueReply)(nil),
		(*GetF64IncrementByOne)(nil),
		(*GetF64IncrementByOneReply)(nil),
		(*GetNextIndex)(nil),
		(*GetNextIndexReply)(nil),
		(*GetNodeGraph)(nil),
		(*GetNodeGraphReply)(nil),
		(*GetNodeIndex)(nil),
		(*GetNodeIndexReply)(nil),
		(*ShowThreads)(nil),
		(*ShowThreadsReply)(nil),
	}
}