You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
805 B
40 lines
805 B
#ifndef __START_PROC_KERNEL_HEADER__
|
|
#define __START_PROC_KERNEL_HEADER__
|
|
|
|
#include "../../lib/components/base/basicSettingsProvider.h"
|
|
#include "../../lib/components/base/basicThread.h"
|
|
|
|
class SP_KERNEL : public basicThread
|
|
{
|
|
protected:
|
|
|
|
virtual void m_fThreadProc(void);
|
|
|
|
public:
|
|
|
|
static SP_KERNEL * getInstance(bool ColdStart = true);
|
|
bool create(void);
|
|
|
|
int getExitCause()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
void WaitFinish(bool force);
|
|
void setPID(pid_t NP);
|
|
~SP_KERNEL();
|
|
|
|
private:
|
|
|
|
static SP_KERNEL * _instance;
|
|
SP_KERNEL();
|
|
basicLogCollection * m_pLog;
|
|
config_setting_t * m_pSettings;
|
|
char m_pTargetPIDFile[PATH_MAX];
|
|
char m_pTargetAppFile[PATH_MAX];
|
|
char m_pTargetEnvPath[PATH_MAX];
|
|
pid_t m_TargetPID;
|
|
bool startTargetApplication(void);
|
|
};
|
|
|
|
#endif
|