aboutsummaryrefslogtreecommitdiff
path: root/helper/include
diff options
context:
space:
mode:
authorLifang Zhang <lifang.zhang@nokia.com>2021-08-18 14:24:34 +0300
committerMatias Elo <matias.elo@nokia.com>2021-09-30 14:27:54 +0300
commitfb4f59136bdf65e854c1cc4e786fab5a0f921e54 (patch)
tree34cf1b9a7d5ab9447394c41265b796f6b445fd20 /helper/include
parentefce6d4192737480e65cbfdca2808bebcfe1eb66 (diff)
helper: cli: allow user to provide own hostname
Hostname will be displayed as the first part of the prompt. Signed-off-by: Lifang Zhang <lifang.zhang@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
Diffstat (limited to 'helper/include')
-rw-r--r--helper/include/odp/helper/cli.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/helper/include/odp/helper/cli.h b/helper/include/odp/helper/cli.h
index 6b8992926..982509f53 100644
--- a/helper/include/odp/helper/cli.h
+++ b/helper/include/odp/helper/cli.h
@@ -53,6 +53,8 @@ typedef struct {
uint16_t port;
/** Maximum number of user defined commands. Default is 50. */
uint32_t max_user_commands;
+ /** Hostname to be displayed as the first part of the prompt. */
+ const char *hostname;
} odph_cli_param_t;
/**