- neutrino: add exit codes to handle some actions in neutrino's start script

EXIT_REBOOT is inactive yet; see comment in ExitRun()

 Conflicts:
	src/neutrino.cpp

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2017-11-21 11:58:25 +01:00
committed by Thilo Graf
parent f67ddda1f7
commit d6bba3e488
2 changed files with 55 additions and 40 deletions

View File

@@ -60,6 +60,14 @@ class CScanSettings;
class CNeutrinoApp : public CMenuTarget, CChangeObserver, public sigc::trackable
{
public:
enum // Neutrino's exit codes to be handled in it's start script
{
EXIT_ERROR = -1,
EXIT_NORMAL = 0, // g_info.hw_caps->can_shutdown == 0
EXIT_SHUTDOWN = 1, // g_info.hw_caps->can_shutdown == 1
EXIT_REBOOT = 2
};
enum
{
RECORDING_OFF = 0,
@@ -67,8 +75,6 @@ public:
RECORDING_VCR = 2,
RECORDING_FILE = 3
};
private:
CFrameBuffer * frameBuffer;