1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
3 // binapi-generator: v0.5.0-dev
5 // source: /usr/share/vpp/api/plugins/crypto_sw_scheduler.api.json
7 // Package crypto_sw_scheduler contains generated bindings for API file crypto_sw_scheduler.api.
12 package crypto_sw_scheduler
15 api "git.fd.io/govpp.git/api"
16 codec "git.fd.io/govpp.git/codec"
19 // This is a compile-time assertion to ensure that this generated file
20 // is compatible with the GoVPP api package it is being compiled against.
21 // A compilation error at this line likely means your copy of the
22 // GoVPP api package needs to be updated.
23 const _ = api.GoVppAPIPackageIsVersion2
26 APIFile = "crypto_sw_scheduler"
28 VersionCrc = 0xf4b02951
31 // CryptoSwSchedulerSetWorker defines message 'crypto_sw_scheduler_set_worker'.
32 // InProgress: the message form may change in the future versions
33 type CryptoSwSchedulerSetWorker struct {
34 WorkerIndex uint32 `binapi:"u32,name=worker_index" json:"worker_index,omitempty"`
35 CryptoEnable bool `binapi:"bool,name=crypto_enable" json:"crypto_enable,omitempty"`
38 func (m *CryptoSwSchedulerSetWorker) Reset() { *m = CryptoSwSchedulerSetWorker{} }
39 func (*CryptoSwSchedulerSetWorker) GetMessageName() string { return "crypto_sw_scheduler_set_worker" }
40 func (*CryptoSwSchedulerSetWorker) GetCrcString() string { return "b4274502" }
41 func (*CryptoSwSchedulerSetWorker) GetMessageType() api.MessageType {
42 return api.RequestMessage
45 func (m *CryptoSwSchedulerSetWorker) Size() (size int) {
49 size += 4 // m.WorkerIndex
50 size += 1 // m.CryptoEnable
53 func (m *CryptoSwSchedulerSetWorker) Marshal(b []byte) ([]byte, error) {
55 b = make([]byte, m.Size())
57 buf := codec.NewBuffer(b)
58 buf.EncodeUint32(m.WorkerIndex)
59 buf.EncodeBool(m.CryptoEnable)
60 return buf.Bytes(), nil
62 func (m *CryptoSwSchedulerSetWorker) Unmarshal(b []byte) error {
63 buf := codec.NewBuffer(b)
64 m.WorkerIndex = buf.DecodeUint32()
65 m.CryptoEnable = buf.DecodeBool()
69 // CryptoSwSchedulerSetWorkerReply defines message 'crypto_sw_scheduler_set_worker_reply'.
70 // InProgress: the message form may change in the future versions
71 type CryptoSwSchedulerSetWorkerReply struct {
72 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
75 func (m *CryptoSwSchedulerSetWorkerReply) Reset() { *m = CryptoSwSchedulerSetWorkerReply{} }
76 func (*CryptoSwSchedulerSetWorkerReply) GetMessageName() string {
77 return "crypto_sw_scheduler_set_worker_reply"
79 func (*CryptoSwSchedulerSetWorkerReply) GetCrcString() string { return "e8d4e804" }
80 func (*CryptoSwSchedulerSetWorkerReply) GetMessageType() api.MessageType {
81 return api.ReplyMessage
84 func (m *CryptoSwSchedulerSetWorkerReply) Size() (size int) {
91 func (m *CryptoSwSchedulerSetWorkerReply) Marshal(b []byte) ([]byte, error) {
93 b = make([]byte, m.Size())
95 buf := codec.NewBuffer(b)
96 buf.EncodeInt32(m.Retval)
97 return buf.Bytes(), nil
99 func (m *CryptoSwSchedulerSetWorkerReply) Unmarshal(b []byte) error {
100 buf := codec.NewBuffer(b)
101 m.Retval = buf.DecodeInt32()
105 func init() { file_crypto_sw_scheduler_binapi_init() }
106 func file_crypto_sw_scheduler_binapi_init() {
107 api.RegisterMessage((*CryptoSwSchedulerSetWorker)(nil), "crypto_sw_scheduler_set_worker_b4274502")
108 api.RegisterMessage((*CryptoSwSchedulerSetWorkerReply)(nil), "crypto_sw_scheduler_set_worker_reply_e8d4e804")
111 // Messages returns list of all messages in this module.
112 func AllMessages() []api.Message {
113 return []api.Message{
114 (*CryptoSwSchedulerSetWorker)(nil),
115 (*CryptoSwSchedulerSetWorkerReply)(nil),