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 
12 /** Shell stop states */
14  /** Continue processing */
16  /**
17  * Stop processing current command line
18  *
19  * This is the stop state entered by commands that change the flow
20  * of execution, such as "goto".
21  */
23  /**
24  * Stop processing commands
25  *
26  * This is the stop state entered by commands that terminate
27  * the flow of execution, such as "exit".
28  */
30 };
31 
32 extern void shell_stop ( int stop );
33 extern int shell_stopped ( int stop );
34 extern int shell ( void );
35 
36 #endif /* _IPXE_SHELL_H */
shell_stop_state
Shell stop states.
Definition: shell.h:13
Continue processing.
Definition: shell.h:15
Stop processing current command line.
Definition: shell.h:22
void shell_stop(int stop)
Set shell stop state.
Definition: exec.c:217
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
int shell_stopped(int stop)
Test and consume shell stop state.
Definition: exec.c:227
Stop processing commands.
Definition: shell.h:29
int shell(void)
Start command shell.
Definition: shell.c:84