FD.io VPP  v17.04.2-2-ga8f93f8
Vector Packet Processing
pneum.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_pneum_h
16 #define included_pneum_h
17 
18 #include <stdint.h>
19 #include <vppinfra/types.h>
20 
21 typedef void (*pneum_callback_t)(unsigned char * data, int len);
22 typedef void (*pneum_error_callback_t)(void *, unsigned char *, int);
23 int pneum_connect(char * name, char * chroot_prefix, pneum_callback_t cb,
24  int rx_qlen);
25 int pneum_disconnect(void);
26 int pneum_read(char **data, int *l, unsigned short timeout);
27 int pneum_write(char *data, int len);
28 void pneum_free(void * msg);
29 
30 int pneum_get_msg_index(unsigned char * name);
31 int pneum_msg_table_size(void);
33 
34 void pneum_rx_suspend (void);
35 void pneum_rx_resume (void);
37 #endif
int pneum_write(char *data, int len)
Definition: pneum.c:441
int pneum_read(char **data, int *l, unsigned short timeout)
Definition: pneum.c:368
int pneum_connect(char *name, char *chroot_prefix, pneum_callback_t cb, int rx_qlen)
Definition: pneum.c:260
int pneum_msg_table_max_index(void)
Definition: pneum.c:471
void pneum_rx_suspend(void)
Definition: pneum.c:212
int pneum_disconnect(void)
Definition: pneum.c:307
void(* pneum_callback_t)(unsigned char *data, int len)
Definition: pneum.h:21
int pneum_msg_table_size(void)
Definition: pneum.c:253
void(* pneum_error_callback_t)(void *, unsigned char *, int)
Definition: pneum.h:22
void pneum_free(void *msg)
Definition: pneum.c:112
int pneum_get_msg_index(unsigned char *name)
Definition: pneum.c:465
void pneum_rx_resume(void)
Definition: pneum.c:233
void pneum_set_error_handler(pneum_error_callback_t)
Definition: pneum.c:486