예제 #1
0
파일: main.cpp 프로젝트: scs/web-view-cpp
/*********************************************************************//*!
 * @brief Program entry
 * 
 * @param argc Command line argument count.
 * @param argv Command line argument strings.
 * @return 0 on success
 *//*********************************************************************/
int main(int argc, char ** argv) {
	CMain main;
	OSC_ERR err=main.Init(argc, argv);
	if(err!=SUCCESS) return(1);
	
	err=main.MainLoop();
	
	return(err);
}
예제 #2
0
void* CLAStart(void *pArg)
{
	int nRet = 0;
	CGlobal *cGlob = NULL;
	CModule::ST_MODULE_OPTIONS stOption = *static_cast<CModule::ST_MODULE_OPTIONS*>(pArg);

	cGlob = CGlobal::GetInstance();

	cGlob->SetModuleOption(&stOption);

	nRet = g_cMain.Init(stOption.m_pclsDB, stOption.m_szCfgFile);
	if(nRet == CLA_NOK){
		CLA_LOG(CLA_ERR,false,"Init failed(nRet=%d)\n",nRet);
		return NULL;
	}

	g_cMain.Run();

	return NULL;
}