Removed global binapi VPP adapter
[govpp.git] / adapter / socketclient / binapi.go
1 package socketclient
2
3 import (
4         "git.fd.io/govpp.git/api"
5 )
6
7 // MessageTableEntry represents VPP binary API type 'message_table_entry'.
8 type MessageTableEntry struct {
9         Index uint16
10         Name  string `struc:"[64]byte"`
11 }
12
13 func (*MessageTableEntry) GetTypeName() string {
14         return "message_table_entry"
15 }
16
17 // SockclntCreate represents VPP binary API message 'sockclnt_create'.
18 type SockclntCreate struct {
19         Name string `struc:"[64]byte"`
20 }
21
22 func (*SockclntCreate) GetMessageName() string {
23         return "sockclnt_create"
24 }
25 func (*SockclntCreate) GetCrcString() string {
26         return "455fb9c4"
27 }
28 func (*SockclntCreate) GetMessageType() api.MessageType {
29         return api.ReplyMessage
30 }
31
32 // SockclntCreateReply represents VPP binary API message 'sockclnt_create_reply'.
33 type SockclntCreateReply struct {
34         Response     int32
35         Index        uint32
36         Count        uint16 `struc:"sizeof=MessageTable"`
37         MessageTable []MessageTableEntry
38 }
39
40 func (*SockclntCreateReply) GetMessageName() string {
41         return "sockclnt_create_reply"
42 }
43 func (*SockclntCreateReply) GetCrcString() string {
44         return "35166268"
45 }
46 func (*SockclntCreateReply) GetMessageType() api.MessageType {
47         return api.RequestMessage
48 }
49
50 // SockclntDelete represents VPP binary API message 'sockclnt_delete'.
51 type SockclntDelete struct {
52         Index uint32
53 }
54
55 func (*SockclntDelete) GetMessageName() string {
56         return "sockclnt_delete"
57 }
58 func (*SockclntDelete) GetCrcString() string {
59         return "8ac76db6"
60 }
61 func (*SockclntDelete) GetMessageType() api.MessageType {
62         return api.RequestMessage
63 }
64
65 // SockclntDeleteReply represents VPP binary API message 'sockclnt_delete_reply'.
66 type SockclntDeleteReply struct {
67         Response int32
68 }
69
70 func (*SockclntDeleteReply) GetMessageName() string {
71         return "sockclnt_delete_reply"
72 }
73 func (*SockclntDeleteReply) GetCrcString() string {
74         return "8f38b1ee"
75 }
76 func (*SockclntDeleteReply) GetMessageType() api.MessageType {
77         return api.ReplyMessage
78 }
79
80 // ModuleVersion represents VPP binary API type 'module_version'.
81 type ModuleVersion struct {
82         Major uint32
83         Minor uint32
84         Patch uint32
85         Name  string `struc:"[64]byte"`
86 }
87
88 func (*ModuleVersion) GetTypeName() string {
89         return "module_version"
90 }
91
92 // APIVersions represents VPP binary API message 'api_versions'.
93 type APIVersions struct{}
94
95 func (*APIVersions) GetMessageName() string {
96         return "api_versions"
97 }
98 func (*APIVersions) GetCrcString() string {
99         return "51077d14"
100 }
101 func (*APIVersions) GetMessageType() api.MessageType {
102         return api.RequestMessage
103 }
104
105 // APIVersionsReply represents VPP binary API message 'api_versions_reply'.
106 type APIVersionsReply struct {
107         Retval      int32
108         Count       uint32 `struc:"sizeof=APIVersions"`
109         APIVersions []ModuleVersion
110 }
111
112 func (*APIVersionsReply) GetMessageName() string {
113         return "api_versions_reply"
114 }
115 func (*APIVersionsReply) GetCrcString() string {
116         return "5f0d99d6"
117 }
118 func (*APIVersionsReply) GetMessageType() api.MessageType {
119         return api.ReplyMessage
120 }