iPXE
shell.h
Go to the documentation of this file.
1#ifndef _IPXE_SHELL_H
2#define _IPXE_SHELL_H
3
4/** @file
5 *
6 * Minimal command shell
7 *
8 */
9
10FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11FILE_SECBOOT ( PERMITTED );
12
13/** Shell stop states */
15 /** Continue processing */
17 /**
18 * Stop processing current command line
19 *
20 * This is the stop state entered by commands that change the flow
21 * of execution, such as "goto".
22 */
24 /**
25 * Stop processing commands
26 *
27 * This is the stop state entered by commands that terminate
28 * the flow of execution, such as "exit".
29 */
31};
32
33extern void shell_stop ( int stop );
34extern int shell_stopped ( int stop );
35extern int shell ( void );
36
37#endif /* _IPXE_SHELL_H */
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
Definition compiler.h:896
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
Definition compiler.h:926
int shell(void)
Start command shell.
Definition shell.c:82
shell_stop_state
Shell stop states.
Definition shell.h:14
@ SHELL_STOP_COMMAND
Stop processing current command line.
Definition shell.h:23
@ SHELL_CONTINUE
Continue processing.
Definition shell.h:16
@ SHELL_STOP_COMMAND_SEQUENCE
Stop processing commands.
Definition shell.h:30
int shell_stopped(int stop)
Test and consume shell stop state.
Definition exec.c:228
void shell_stop(int stop)
Set shell stop state.
Definition exec.c:218