Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
tcp: cleanup rcv-process and bulk buffer translation
[vpp.git]
/
src
/
vlib
/
unix
/
unix.h
diff --git
a/src/vlib/unix/unix.h
b/src/vlib/unix/unix.h
index
7856e5b
..
4b5f98a
100644
(file)
--- a/
src/vlib/unix/unix.h
+++ b/
src/vlib/unix/unix.h
@@
-59,6
+59,10
@@
typedef struct
/* Run interactively or as daemon (background process). */
#define UNIX_FLAG_INTERACTIVE (1 << 0)
#define UNIX_FLAG_NODAEMON (1 << 1)
/* Run interactively or as daemon (background process). */
#define UNIX_FLAG_INTERACTIVE (1 << 0)
#define UNIX_FLAG_NODAEMON (1 << 1)
+#define UNIX_FLAG_NOSYSLOG (1 << 2)
+#define UNIX_FLAG_NOCOLOR (1 << 3)
+#define UNIX_FLAG_NOBANNER (1 << 4)
+
/* CLI listen socket. */
clib_socket_t cli_listen_socket;
/* CLI listen socket. */
clib_socket_t cli_listen_socket;
@@
-107,6
+111,14
@@
typedef struct
} unix_main_t;
} unix_main_t;
+/** CLI session events. */
+typedef enum
+{
+ UNIX_CLI_PROCESS_EVENT_READ_READY, /**< A file descriptor has data to be
+ read. */
+ UNIX_CLI_PROCESS_EVENT_QUIT, /**< A CLI session wants to close. */
+} unix_cli_process_event_type_t;
+
/* Global main structure. */
extern unix_main_t unix_main;
extern clib_file_main_t file_main;
/* Global main structure. */
extern unix_main_t unix_main;
extern clib_file_main_t file_main;
@@
-126,8
+138,6
@@
unix_save_error (unix_main_t * um, clib_error_t * error)
/* Main function for Unix VLIB. */
int vlib_unix_main (int argc, char *argv[]);
/* Main function for Unix VLIB. */
int vlib_unix_main (int argc, char *argv[]);
-clib_error_t *unix_physmem_init (vlib_main_t * vm);
-
/* Set prompt for CLI. */
void vlib_unix_cli_set_prompt (char *prompt);
/* Set prompt for CLI. */
void vlib_unix_cli_set_prompt (char *prompt);