#ifndef __MAS_COM_DEF_H #define __MAS_COM_DEF_H #include "MAS_Definition.h" NAMESPACE_MAS_BEGIN // MesgDispatcher typedef enum __MAS_MESG_TYPE { EMM_MEDIA_STATE = 1 << 0, EMM_STRA_RESULT = 1 << 1 } EN_MAS_MESG; struct MasMesg { SPtr Content; TZ_INT MesgType; // EN_MAS_MESG }; // PipeStateChecker typedef enum __MAS_PIPE_TYPE { EMPT_MEDIA, EMPT_DET, EMPT_STRA, EMPT_WSS_STREAM, EMPT_SCENE } EN_MAS_PIPE_TYPE; typedef enum __MAS_PIPE_STATUS { EMPS_OK, EMPS_NO_DATA, EMPS_TIMEOUT, } EN_MAS_PIPE_STATUS; struct TaskTarget { TZ_INT RscID; TZ_INT Channo; EN_BUFFER_TYPE Source; EN_BUFFER_TYPE Target; EN_MAS_RSC_STREAM_TYPE StreamType; SPtr RecvPipe; // Pipe * sendPipe; bool operator==(const TaskTarget & t) { return RscID == t.RscID && StreamType == t.StreamType && Channo == t.Channo && Source == t.Source && Target == t.Target; } }; NAMESPACE_MAS_END #endif