aboutsummaryrefslogtreecommitdiffstats
path: root/src/vpp-api/client/vppapiclient.h
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2019-12-19 18:26:29 -0500
committerOle Tr�an <otroan@employees.org>2021-02-16 00:12:45 +0000
commitbad4766763d5ad80b1296c1455666b2589272044 (patch)
treeb5a64e0ab1bd7436f6e1cadf73a7a3bc311f0038 /src/vpp-api/client/vppapiclient.h
parentf9db7f0ff51e3c212f70d38c5e4fa68e07b82a96 (diff)
vapi: add dedicated return code for client timeout
Type: refactor Change-Id: I1fbabb743f20e21557c69bdaf97eda6f63584903 Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'src/vpp-api/client/vppapiclient.h')
-rw-r--r--src/vpp-api/client/vppapiclient.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/vpp-api/client/vppapiclient.h b/src/vpp-api/client/vppapiclient.h
index 3ccd84ffc5f..5f319a42821 100644
--- a/src/vpp-api/client/vppapiclient.h
+++ b/src/vpp-api/client/vppapiclient.h
@@ -18,6 +18,15 @@
#include <stdint.h>
#include <stdbool.h>
+typedef enum
+{
+ VAC_SVM_QUEUE_SUB_1 = -1,
+ VAC_SVM_QUEUE_SUB_2 = -2,
+ VAC_NOT_CONNECTED = -3,
+ VAC_SHM_NOT_READY = -4,
+ VAC_TIMEOUT = -5,
+} vac_errno_t;
+
typedef void (*vac_callback_t)(unsigned char * data, int len);
typedef void (*vac_error_callback_t)(void *, unsigned char *, int);
int vac_connect(char * name, char * chroot_prefix, vac_callback_t cb,