iPXE
shell.h
Go to the documentation of this file.
00001 #ifndef _IPXE_SHELL_H
00002 #define _IPXE_SHELL_H
00003 
00004 /** @file
00005  *
00006  * Minimal command shell
00007  *
00008  */
00009 
00010 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
00011 
00012 /** Shell stop states */
00013 enum shell_stop_state {
00014         /** Continue processing */
00015         SHELL_CONTINUE = 0,
00016         /**
00017          * Stop processing current command line
00018          *
00019          * This is the stop state entered by commands that change the flow
00020          * of execution, such as "goto".
00021          */
00022         SHELL_STOP_COMMAND = 1,
00023         /**
00024          * Stop processing commands
00025          *
00026          * This is the stop state entered by commands that terminate
00027          * the flow of execution, such as "exit".
00028          */
00029         SHELL_STOP_COMMAND_SEQUENCE = 2,
00030 };
00031 
00032 extern void shell_stop ( int stop );
00033 extern int shell_stopped ( int stop );
00034 extern int shell ( void );
00035 
00036 #endif /* _IPXE_SHELL_H */