summaryrefslogtreecommitdiffstats
path: root/src/vpp-api/client/vppapiclient.h
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2020-09-28 16:15:18 +0200
committerDamjan Marion <dmarion@me.com>2020-09-28 16:17:25 +0000
commitf68fccfe7e188fec2c9f91da38ca9acf6f67d811 (patch)
tree7b0110e904980043cb9cc9772eb5fdbb7f7c8d71 /src/vpp-api/client/vppapiclient.h
parent2c714a0cec9de07816a5397a4a6d69a103378731 (diff)
api: remove clib_mem_init from vppapiclient contructor
Having the constructor in the vppapiclient library led to conflicts with applications wanting to allocate their own heap. Note: Change of behaviour, applications that do not use a CLIB heap must now call vac_mem_init() before using any functions from vppapiclient. Type: fix Signed-off-by: Ole Troan <ot@cisco.com> Change-Id: Ib155a54579ea5a0dbc26cb4b6daca1274e1dfdfa
Diffstat (limited to 'src/vpp-api/client/vppapiclient.h')
-rw-r--r--src/vpp-api/client/vppapiclient.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vpp-api/client/vppapiclient.h b/src/vpp-api/client/vppapiclient.h
index 839ec1f851f..680003e7d4f 100644
--- a/src/vpp-api/client/vppapiclient.h
+++ b/src/vpp-api/client/vppapiclient.h
@@ -16,6 +16,7 @@
#define included_vppapiclient_h
#include <stdint.h>
+#include <stdbool.h>
typedef void (*vac_callback_t)(unsigned char * data, int len);
typedef void (*vac_error_callback_t)(void *, unsigned char *, int);
@@ -33,4 +34,6 @@ int vac_msg_table_max_index(void);
void vac_rx_suspend (void);
void vac_rx_resume (void);
void vac_set_error_handler(vac_error_callback_t);
+void vac_mem_init (size_t size);
+
#endif