kb_machblue_client_vote.h
上传用户:fy98168
上传日期:2015-06-26
资源大小:13771k
文件大小:1k
- //*****************************************************************************
- //FileName:kb_machblue_client_vote.h
- //
- //Description:
- //
- //Author:steven
- //
- //Date: 2007.03.17
- //
- //Version: v1.0
- //*****************************************************************************
- #ifndef KB_MACHBLUE_CLIENT_VOTE_H
- #define KB_MACHBLUE_CLIENT_VOTE_H
- //length of movie name
- #define KB_VOTE_RESULT_COUNT 30
- //
- typedef struct kb_vote_s
- {
- unsigned char name[60];
- unsigned long index;
- unsigned long ip;
- unsigned long count;
- }kb_vote_t;
- //
- typedef struct kb_vote_result_s
- {
- unsigned char index;
- unsigned long result;
- }kb_vote_result_t;
- //
- typedef struct kb_vote_info_s
- {
- unsigned char name[60];
- kb_vote_result_t result[KB_VOTE_RESULT_COUNT];
- unsigned char resCount;
- }kb_vote_info_t;
- /**
- * Send vote information to server
- * pVote < vote information >
-
- * @return None.
- */
- extern BOOL kb_vote_info_send(kb_vote_t *pVote);
- /**
- * Get vote result from server
-
- * pName < name of vote movie >
-
- * @return None.
- */
- extern BOOL kb_vote_result_get(unsigned char *pName,kb_vote_info_t * kb_voteResult);
- #endif