Update generated binapi to v22.02 & makefile changes
[govpp.git] / internal / testbinapi / binapi2001 / sctp / sctp_rpc.ba.go
1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
2
3 package sctp
4
5 import (
6         "context"
7
8         api "git.fd.io/govpp.git/api"
9 )
10
11 // RPCService defines RPC service sctp.
12 type RPCService interface {
13         SctpAddSrcDstConnection(ctx context.Context, in *SctpAddSrcDstConnection) (*SctpAddSrcDstConnectionReply, error)
14         SctpConfig(ctx context.Context, in *SctpConfig) (*SctpConfigReply, error)
15         SctpDelSrcDstConnection(ctx context.Context, in *SctpDelSrcDstConnection) (*SctpDelSrcDstConnectionReply, error)
16 }
17
18 type serviceClient struct {
19         conn api.Connection
20 }
21
22 func NewServiceClient(conn api.Connection) RPCService {
23         return &serviceClient{conn}
24 }
25
26 func (c *serviceClient) SctpAddSrcDstConnection(ctx context.Context, in *SctpAddSrcDstConnection) (*SctpAddSrcDstConnectionReply, error) {
27         out := new(SctpAddSrcDstConnectionReply)
28         err := c.conn.Invoke(ctx, in, out)
29         if err != nil {
30                 return nil, err
31         }
32         return out, api.RetvalToVPPApiError(out.Retval)
33 }
34
35 func (c *serviceClient) SctpConfig(ctx context.Context, in *SctpConfig) (*SctpConfigReply, error) {
36         out := new(SctpConfigReply)
37         err := c.conn.Invoke(ctx, in, out)
38         if err != nil {
39                 return nil, err
40         }
41         return out, api.RetvalToVPPApiError(out.Retval)
42 }
43
44 func (c *serviceClient) SctpDelSrcDstConnection(ctx context.Context, in *SctpDelSrcDstConnection) (*SctpDelSrcDstConnectionReply, error) {
45         out := new(SctpDelSrcDstConnectionReply)
46         err := c.conn.Invoke(ctx, in, out)
47         if err != nil {
48                 return nil, err
49         }
50         return out, api.RetvalToVPPApiError(out.Retval)
51 }