Added machine readable exit reasons, INPUT_END trigger, OUTPUT_END trigger, and updated RECORDING_END trigger to include all of these.
This commit is contained in:
parent
a16d98b7b2
commit
b0d4422d27
47 changed files with 493 additions and 256 deletions
12
lib/config.h
12
lib/config.h
|
@ -17,7 +17,16 @@ namespace Util{
|
|||
extern __thread char streamName[256]; ///< Used by debug messages to identify the stream name
|
||||
void setStreamName(const std::string & sn);
|
||||
extern __thread char exitReason[256];
|
||||
void logExitReason(const char *format, ...);
|
||||
extern __thread char* mRExitReason;
|
||||
void logExitReason(const char* shortString, const char *format, ...);
|
||||
|
||||
enum binType {
|
||||
UNSET,
|
||||
INPUT,
|
||||
OUTPUT,
|
||||
PROCESS,
|
||||
CONTROLLER
|
||||
};
|
||||
|
||||
/// Deals with parsing configuration from commandline options.
|
||||
class Config{
|
||||
|
@ -30,6 +39,7 @@ namespace Util{
|
|||
// variables
|
||||
static bool is_active; ///< Set to true by activate(), set to false by the signal handler.
|
||||
static bool is_restarting; ///< Set to true when restarting, set to false on boot.
|
||||
static binType binaryType;
|
||||
// functions
|
||||
Config();
|
||||
Config(std::string cmd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue