poc.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. unsigned long CallID;
  34. unsigned char UserSum; //³ÉÔ±×ÜÊý
  35. unsigned char NeedGetUser;
  36. SUT_POC_USER AllUsers[POC_ALL_USERS_NUM];
  37. SUT_POC_GROUP AllGroups[POC_ALL_GROUPS_NUM];
  38. unsigned char handleIndex;
  39. unsigned short ListFillIndex;
  40. unsigned int ListCurOnlineNum;
  41. unsigned char ListUpdate;
  42. unsigned char ListType;
  43. unsigned char ListGetOneFlag;
  44. unsigned char ExceptionReadNum;
  45. unsigned char ListDetailValid;//是�有群组/�员明细回�
  46. unsigned char PocLineOffReason;
  47. unsigned char PaDlyStart;
  48. unsigned char LeaderCmd;// 0 Õý³£¡£ 1Ò¡ÔÈ¡ 2Ò¡±Ð
  49. }POC_DEF;
  50. #pragma pack(pop)
  51. extern POC_DEF sutPocStatus;
  52. void pocDataInit(void);
  53. void pocCmdHandler(unsigned char *msg, int len);
  54. void pocProCtl(int dly);
  55. void LogoutOutTimeCheck(unsigned int interval);
  56. void proHeadSet(char *msg);
  57. #endif