acrn-hypervisor/hypervisor/include/debug/shell.h
Mingqiang Chi 311787032a hv:Change shell_init to void type
Remove shell_construct
Change shell_init to void type

Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2018-07-25 17:06:44 +08:00

24 lines
561 B
C

/*
* Copyright (C) 2018 Intel Corporation. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef SHELL_H
#define SHELL_H
/* Switching key combinations for shell and uart console */
#define GUEST_CONSOLE_TO_HV_SWITCH_KEY 0 /* CTRL + SPACE */
#ifdef HV_DEBUG
void shell_init(void);
void shell_kick_session(void);
int shell_switch_console(void);
#else
static inline void shell_init(void) {}
static inline void shell_kick_session(void) {}
static inline int shell_switch_console(void) { return 0; }
#endif
#endif /* SHELL_H */