FD.io VPP  v19.08.2-294-g37e99c22d
Vector Packet Processing
vppapiclient.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016 Cisco and/or its affiliates.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at:
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 #ifndef included_vppapiclient_h
16 #define included_vppapiclient_h
17 
18 #include <stdint.h>
19 
20 typedef void (*vac_callback_t)(unsigned char * data, int len);
21 typedef void (*vac_error_callback_t)(void *, unsigned char *, int);
22 int vac_connect(char * name, char * chroot_prefix, vac_callback_t cb,
23  int rx_qlen);
24 int vac_disconnect(void);
25 int vac_read(char **data, int *l, unsigned short timeout);
26 int vac_write(char *data, int len);
27 void vac_free(void * msg);
28 
29 int vac_get_msg_index(unsigned char * name);
30 int vac_msg_table_size(void);
31 int vac_msg_table_max_index(void);
32 
33 void vac_rx_suspend (void);
34 void vac_rx_resume (void);
36 #endif
int vac_write(char *data, int len)
Definition: client.c:540
int vac_msg_table_max_index(void)
Definition: client.c:570
u8 data[128]
Definition: ipsec.api:251
void vac_rx_resume(void)
Definition: client.c:293
void(* vac_error_callback_t)(void *, unsigned char *, int)
Definition: vppapiclient.h:21
void vac_free(void *msg)
Definition: client.c:153
int vac_msg_table_size(void)
Definition: client.c:313
int vac_get_msg_index(unsigned char *name)
Definition: client.c:564
u8 name[64]
Definition: memclnt.api:152
u8 len
Definition: ip_types.api:90
void vac_set_error_handler(vac_error_callback_t)
Definition: client.c:585
int vac_read(char **data, int *l, unsigned short timeout)
Definition: client.c:441
int vac_connect(char *name, char *chroot_prefix, vac_callback_t cb, int rx_qlen)
Definition: client.c:320
int vac_disconnect(void)
Definition: client.c:390
void(* vac_callback_t)(unsigned char *data, int len)
Definition: vppapiclient.h:20
void vac_rx_suspend(void)
Definition: client.c:272