ticket.h 636 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef __TICKET_H_
  2. #define __TICKET_H_
  3. #include "includes.h"
  4. typedef enum{
  5. TICKET_PT_DOMAIN,
  6. TICKET_PT_NETWORK,
  7. TICKET_PT_QUECOM,
  8. TICKET_PT_QUEREC,
  9. TICKET_PT_LOGININFO,
  10. TICKET_PT_LOGINCON,
  11. TICKET_PT_LOGIN,
  12. TICKET_PT_POCPLY,
  13. TICKET_PT_POCREC,
  14. TICKET_PT_HOOK,
  15. TICKET_PT_AUTH,
  16. TICKET_PT_GROUP,
  17. TICKET_PT_TUP,
  18. #if defined ENABLE_BUBIAO_GPS
  19. TICKET_PT_GPS,
  20. TICKET_PT_BUBIAO,
  21. #endif
  22. TICKET_PT_MAX
  23. }TICKET_ENUM;
  24. //投票
  25. void ticketVote(TICKET_ENUM vote);
  26. //撤票
  27. void ticketDeVote(TICKET_ENUM vote);
  28. void ticketReset(void);
  29. PT_THREAD (ptTicketTask(pt_timer_t *ptPool, struct pt *pt));
  30. void WakeupNow(char *name);
  31. #endif