blob: 0d574e0288507ab99a1e1132184416a7a321b7d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#ifndef _IPXE_SHELL_H
#define _IPXE_SHELL_H
/** @file
*
* Minimal command shell
*
*/
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
/** Shell stop states */
enum shell_stop_state {
/** Continue processing */
SHELL_CONTINUE = 0,
/**
* Stop processing current command line
*
* This is the stop state entered by commands that change the flow
* of execution, such as "goto".
*/
SHELL_STOP_COMMAND = 1,
/**
* Stop processing commands
*
* This is the stop state entered by commands that terminate
* the flow of execution, such as "exit".
*/
SHELL_STOP_COMMAND_SEQUENCE = 2,
};
extern void shell_stop ( int stop );
extern int shell_stopped ( int stop );
extern int shell ( void );
#endif /* _IPXE_SHELL_H */
|