1 #ifndef _CHAMP_CHOOSER_SCORES_H
2 #define _CHAMP_CHOOSER_SCORES_H
3 
4 // Array to keep the scores. Candidates point at a unique entry in the
5 // array for their scores. Keeping them in an array like this means
6 // that all the scores can be reset quickly.
7 struct scores
8 {
9 	uint16_t *scores;
10 	size_t size;
11 };
12 
13 extern struct scores *scores_alloc(void);
14 extern void scores_free(struct scores **scores);
15 extern int scores_grow(struct scores *scores, size_t count);
16 extern void scores_reset(struct scores *scores);
17 
18 #endif
19