ticket.h 732 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef __TICKET_H_
  2. #define __TICKET_H_
  3. #include "includes.h"
  4. #define NO_SLEEP_TIME 0xffffff
  5. typedef enum{
  6. TICKET_PT_DOMAIN, //0
  7. TICKET_PT_NETWORK, //1
  8. TICKET_PT_QUECOM, //2
  9. TICKET_PT_QUEREC, //3
  10. TICKET_PT_APPPLY, //4
  11. TICKET_PT_APPREC, //5
  12. TICKET_PT_AUTHLOGIN, //6
  13. TICKET_PT_LOCATION, //7
  14. TICKET_PT_MCUIAP, //8
  15. TICKET_PT_LBSMOTION, //9
  16. TICKET_PT_NEAR, //10
  17. TICKET_PT_VOICEUPLOAD,//11
  18. TICKET_PT_MAX
  19. }TICKET_ENUM;
  20. void ticketReset(void);
  21. //投票
  22. void ticketVote(TICKET_ENUM vote);
  23. //撤票
  24. void ticketDeVote(TICKET_ENUM vote);
  25. PT_THREAD (ptTicketTask(pt_timer_t *ptPool, struct pt *pt));
  26. void WakeupNow(char *name);
  27. void ticketStatusShow(void);
  28. #endif