poc(1232).h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #ifndef __POC__H__
  2. #define __POC__H__
  3. #define POC_GROUP_USER_NAME_LEN 40 //POC输出过来是翻倍长度的
  4. #define POC_ALL_USERS_NUM 5
  5. #define POC_ALL_GROUPS_NUM 5
  6. #pragma pack(push)
  7. #pragma pack(1)
  8. typedef struct{
  9. unsigned long ID;
  10. char status;
  11. char name[POC_GROUP_USER_NAME_LEN];
  12. }SUT_POC_USER;
  13. typedef struct{
  14. unsigned long ID;
  15. unsigned short usernum;
  16. char name[POC_GROUP_USER_NAME_LEN];
  17. unsigned char status;
  18. }SUT_POC_GROUP;
  19. typedef struct{
  20. unsigned char danHuStatus;//是否处理于单呼状怿
  21. unsigned char logined;//是否已登彿
  22. unsigned char firstLogin;//是否第一次登彿
  23. unsigned char spk;//是否有人在说诿
  24. unsigned char mic;//本机是否在说诿
  25. unsigned char TTS;
  26. unsigned char TONE;
  27. unsigned char beep;
  28. unsigned char statusChaned;//UI说话状态是否变匿
  29. unsigned char loginResult;
  30. SUT_POC_USER LocalUser;
  31. SUT_POC_GROUP LocalGroup;
  32. char CallName[POC_GROUP_USER_NAME_LEN];
  33. SUT_POC_USER AllUsers[POC_ALL_USERS_NUM];
  34. SUT_POC_GROUP AllGroups[POC_ALL_GROUPS_NUM];
  35. unsigned char handleIndex;
  36. unsigned char ListFillIndex;
  37. unsigned int ListCurOnlineNum;
  38. unsigned char ListUpdate;
  39. unsigned char ListType;
  40. unsigned char ListGetOneFlag;
  41. unsigned char ExceptionReadNum;
  42. unsigned char ListDetailValid;//是否有群组/成员明细回来
  43. unsigned char PocLineOffReason;
  44. }POC_DEF;
  45. #pragma pack(pop)
  46. extern POC_DEF sutPocStatus;
  47. void pocDataInit(void);
  48. void pocCmdHandler(unsigned char *msg, int len);
  49. void pocProCtl(int dly);
  50. void LogoutOutTimeCheck(unsigned int interval);
  51. void proHeadSet(char *msg);
  52. #endif