Пример #1
0
QTSS_Error  EasyCMSModuleDispatch(QTSS_Role inRole, QTSS_RoleParamPtr inParams)
{
    switch (inRole)
    {
        case QTSS_Register_Role:
            return Register_EasyCMSModule(&inParams->regParams);
        case QTSS_Initialize_Role:
            return Initialize_EasyCMSModule(&inParams->initParams);
        case QTSS_RereadPrefs_Role:
            return RereadPrefs_EasyCMSModule();
		case Easy_FreeStream_Role:
			return FreeStream_EasyCMSModule(&inParams->easyFreeStreamParams);
	}
    return QTSS_NoErr;
}
Пример #2
0
QTSS_Error EasyCMSModuleDispatch(QTSS_Role inRole, QTSS_RoleParamPtr inParams)
{
    switch (inRole)
    {
        case QTSS_Register_Role:
            return Register_EasyCMSModule(&inParams->regParams);
        case QTSS_Initialize_Role:
            return Initialize_EasyCMSModule(&inParams->initParams);
        case QTSS_RereadPrefs_Role:
            return RereadPrefs_EasyCMSModule();
		case Easy_PostSnap_Role:
			return Post_EasyCMSModule(&inParams->postSnapParams);
	}
    return QTSS_NoErr;
}
Пример #3
0
QTSS_Error Initialize_EasyCMSModule(QTSS_Initialize_Params* inParams)
{
    // Setup module utils
    QTSSModuleUtils::Initialize(inParams->inMessages, inParams->inServer, inParams->inErrorLogStream);

    // Setup global data structures
    sServerPrefs = inParams->inPrefs;
    sServer = inParams->inServer;
    sEasyCMSModulePrefs = QTSSModuleUtils::GetModulePrefsObject(inParams->inModule);

	//读取EasyCMSModule配置
	RereadPrefs_EasyCMSModule();

    return QTSS_NoErr;
}
Пример #4
0
QTSS_Error Initialize_EasyCMSModule(QTSS_Initialize_Params* inParams)
{
    // Setup module utils
    QTSSModuleUtils::Initialize(inParams->inMessages, inParams->inServer, inParams->inErrorLogStream);

    // Setup global data structures
    sServerPrefs = inParams->inPrefs;
    sServer = inParams->inServer;
    sEasyCMSModulePrefs = QTSSModuleUtils::GetModulePrefsObject(inParams->inModule);

	//读取EasyCMSModule配置
	RereadPrefs_EasyCMSModule();

	EasyCMSSession::Initialize(sEasyCMSModulePrefs);

	//创建并开始EasyCMSSession对象
	sCMSSession = new EasyCMSSession();
	sCMSSession->Signal(Task::kStartEvent);

    return QTSS_NoErr;
}