2014-01-05 22:58:00 +00:00
|
|
|
#include "cliever-md.h"
|
|
|
|
|
2014-01-30 23:27:18 +00:00
|
|
|
|
2014-01-05 22:58:00 +00:00
|
|
|
const char *mdStdErrs[] = { "No error detected.", "Required state/element missing.", "Already exists.",
|
|
|
|
"Conflict detected.", "Not ready.", "Syntax error." };
|
|
|
|
|
|
|
|
masterDaemonConfig::masterDaemonConfig() {
|
|
|
|
|
2014-01-16 15:35:39 +00:00
|
|
|
tkScenario = ACTK_PROD;
|
2014-01-05 22:58:00 +00:00
|
|
|
nClievers = 0;
|
2014-01-18 20:35:18 +00:00
|
|
|
configPath = "./etc/toolkit2.conf";
|
2014-01-05 22:58:00 +00:00
|
|
|
logPath = "/tmp";
|
|
|
|
daemonized = true;
|
|
|
|
// used in the logNdebug by increasing power of 10.
|
|
|
|
debugThreshold = CURRENT_DEBUG;
|
|
|
|
halt = false;
|
|
|
|
shuttingDown = false;
|
|
|
|
shutdown = false;
|
|
|
|
thisMachineContext = -1; // in v 1.0. there's only 1 but the
|
|
|
|
// basis for more than one is pre-established.
|
|
|
|
err = mdStdErrs;
|
|
|
|
}
|
|
|
|
int masterDaemonConfig::loadMachineConfiguration(int deviceType) {
|
|
|
|
|
|
|
|
int rc=OK;
|
|
|
|
|
|
|
|
if (!deviceType) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/* \todo Add configuration process for non-MD_TYPE devices */
|
|
|
|
|
|
|
|
return rc;
|
|
|
|
|
|
|
|
}
|