~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to roms/ipxe/src/include/ipxe/shell.h

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 */
 
13
enum shell_stop_state {
 
14
        /** Continue processing */
 
15
        SHELL_CONTINUE = 0,
 
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
         */
 
22
        SHELL_STOP_COMMAND = 1,
 
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
         */
 
29
        SHELL_STOP_COMMAND_SEQUENCE = 2,
 
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 */