12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- #ifndef __POC__H__
- #define __POC__H__
- #define POC_GROUP_USER_NAME_LEN 40 //POC输出过来是翻倍长度的
- #define POC_ALL_USERS_NUM 5
- #define POC_ALL_GROUPS_NUM 5
- #pragma pack(push)
- #pragma pack(1)
- typedef struct{
- unsigned long ID;
- char status;
- char name[POC_GROUP_USER_NAME_LEN];
- }SUT_POC_USER;
- typedef struct{
- unsigned long ID;
- unsigned short usernum;
- char name[POC_GROUP_USER_NAME_LEN];
- unsigned char status;
- }SUT_POC_GROUP;
- typedef struct{
- unsigned char danHuStatus;//是否处理于单呼状怿
- unsigned char logined;//是否已登彿
- unsigned char firstLogin;//是否第一次登彿
- unsigned char spk;//是否有人在说诿
- unsigned char mic;//本机是否在说诿
- unsigned char TTS;
- unsigned char TONE;
- unsigned char beep;
- unsigned char statusChaned;//UI说话状态是否变匿
- unsigned char loginResult;
- SUT_POC_USER LocalUser;
- SUT_POC_GROUP LocalGroup;
- char CallName[POC_GROUP_USER_NAME_LEN];
- SUT_POC_USER AllUsers[POC_ALL_USERS_NUM];
- SUT_POC_GROUP AllGroups[POC_ALL_GROUPS_NUM];
- unsigned char handleIndex;
- unsigned char ListFillIndex;
- unsigned int ListCurOnlineNum;
- unsigned char ListUpdate;
- unsigned char ListType;
- unsigned char ListGetOneFlag;
- unsigned char ExceptionReadNum;
- unsigned char ListDetailValid;//是否有群组/成员明细回来
- unsigned char PocLineOffReason;
- }POC_DEF;
- #pragma pack(pop)
- extern POC_DEF sutPocStatus;
- void pocDataInit(void);
- void pocCmdHandler(unsigned char *msg, int len);
- void pocProCtl(int dly);
- void LogoutOutTimeCheck(unsigned int interval);
- void proHeadSet(char *msg);
- #endif
|