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 
10 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11 FILE_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 
33 extern void shell_stop ( int stop );
34 extern int shell_stopped ( int stop );
35 extern int shell ( void );
36 
37 #endif /* _IPXE_SHELL_H */
shell_stop_state
Shell stop states.
Definition: shell.h:14
Continue processing.
Definition: shell.h:16
FILE_SECBOOT(PERMITTED)
Stop processing current command line.
Definition: shell.h:23
void shell_stop(int stop)
Set shell stop state.
Definition: exec.c:218
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
int shell_stopped(int stop)
Test and consume shell stop state.
Definition: exec.c:228
Stop processing commands.
Definition: shell.h:30
int shell(void)
Start command shell.
Definition: shell.c:82