MythTV  master
exitcodes.h
Go to the documentation of this file.
1 #ifndef __MYTH_EXIT_CODES__
2 #define __MYTH_EXIT_CODES__
3 
4 // ALL statuses that are not to be mapped directly to an exit code *should*
5 // be > 128 so as to not show up as a commercial count on commflag runs.
6 // However, they *must* be <= 255 as exit codes only can be 8-bits.
7 // Additionally, the functionality of mythwelcome/welcomedialog.cpp depends on
8 // being able to use exit code as an 8-bit masked integer.
9 
10 #define GENERIC_EXIT_OK 0
11 #define GENERIC_EXIT_NOT_OK 128
12 #define GENERIC_EXIT_CMD_NOT_FOUND 129
13 #define GENERIC_EXIT_NO_MYTHCONTEXT 130
14 #define GENERIC_EXIT_NO_THEME 131
15 #define GENERIC_EXIT_INVALID_CMDLINE 132
16 #define GENERIC_EXIT_DB_OUTOFDATE 133
17 #define GENERIC_EXIT_DB_ERROR 134
18 #define GENERIC_EXIT_SOCKET_ERROR 135
19 #define GENERIC_EXIT_PERMISSIONS_ERROR 136
20 #define GENERIC_EXIT_CONNECT_ERROR 137
21 #define GENERIC_EXIT_SETUP_ERROR 138
22 #define GENERIC_EXIT_INVALID_TIME 139
23 #define GENERIC_EXIT_KILLED 140
24 #define GENERIC_EXIT_TIMEOUT 141
25 #define GENERIC_EXIT_RUNNING 142
26 #define GENERIC_EXIT_PIPE_FAILURE 143
27 #define GENERIC_EXIT_NO_HANDLER 144
28 #define GENERIC_EXIT_DAEMONIZING_ERROR 145
29 #define GENERIC_EXIT_NO_RECORDING_DATA 146
30 #define GENERIC_EXIT_REMOTE_FILE 147
31 #define GENERIC_EXIT_RESTART 148
32 #define GENERIC_EXIT_WRITE_FRAME_ERROR 149
33 #define GENERIC_EXIT_DEADLOCK 150
34 #define GENERIC_EXIT_IN_USE 151
35 #define GENERIC_EXIT_START 152
36 #define GENERIC_EXIT_DB_NOTIMEZONE 153
37 
38 #endif // __MYTH_EXIT_CODES__