44 int percent_required,
int flags);
enum client_vote_type client_vote
void voteinfo_queue_delayed_remove(int vote_no)
Remove the vote with number 'vote_no' after a small amount of time so that the user can see that it w...
void voteinfo_do_vote(int vote_no, enum client_vote_type vote)
Convenience function for submitting a vote to the server.
struct voteinfo * voteinfo_queue_get_current(int *pindex)
Get the voteinfo record at the start of the vote queue.
void voteinfo_queue_init()
Initialize data structures used by this module.
void voteinfo_queue_remove(int vote_no)
Remove the given vote from the queue immediately.
void voteinfo_queue_next()
Cycle through the votes in the queue.
void voteinfo_queue_free()
Free memory allocated by this module.
int voteinfo_queue_size()
Returns the number of pending votes.
struct voteinfo * voteinfo_queue_find(int vote_no)
Find the voteinfo record corresponding to the given vote number.
void voteinfo_queue_check_removed()
Check for old votes that should be removed from the queue.
void voteinfo_queue_add(int vote_no, const char *user, const char *desc, int percent_required, int flags)
Create a new voteinfo record and place it in the queue.