Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
vcl: add api to check if vcl disconnected from vpp
[vpp.git]
/
src
/
vcl
/
vppcom.h
diff --git
a/src/vcl/vppcom.h
b/src/vcl/vppcom.h
index
6e15cd1
..
08724cc
100644
(file)
--- a/
src/vcl/vppcom.h
+++ b/
src/vcl/vppcom.h
@@
-102,7
+102,8
@@
typedef enum
VPPCOM_ENOPROTOOPT = -ENOPROTOOPT,
VPPCOM_EPIPE = -EPIPE,
VPPCOM_ENOENT = -ENOENT,
VPPCOM_ENOPROTOOPT = -ENOPROTOOPT,
VPPCOM_EPIPE = -EPIPE,
VPPCOM_ENOENT = -ENOENT,
- VPPCOM_EADDRINUSE = -EADDRINUSE
+ VPPCOM_EADDRINUSE = -EADDRINUSE,
+ VPPCOM_ENOTSUP = -ENOTSUP
} vppcom_error_t;
typedef enum
} vppcom_error_t;
typedef enum
@@
-272,6
+273,14
@@
extern int vppcom_worker_mqs_epfd (void);
*/
extern int vppcom_session_get_error (uint32_t session_handle);
*/
extern int vppcom_session_get_error (uint32_t session_handle);
+/**
+ * Returns true if current worker is disconnected from vpp
+ *
+ * Application can use this API to check if VPP is disconnected
+ * as long as `use-mq-eventfd` is being set
+ */
+extern int vppcom_worker_is_detached (void);
+
/* *INDENT-OFF* */
#ifdef __cplusplus
}
/* *INDENT-OFF* */
#ifdef __cplusplus
}