Display rounds instead of turns
[oggquiz.git] / ui.h
blob795f848975c86b042e402826d28af11ee49b8847
1 /*-
2 * "THE BEER-WARE LICENSE" (Revision 42):
3 * <tobias.rehbein@web.de> wrote this file. As long as you retain this notice
4 * you can do whatever you want with this stuff. If we meet some day, and you
5 * think this stuff is worth it, you can buy me a beer in return.
6 * Tobias Rehbein
7 */
9 struct ui_oggfile {
10 char *artist;
11 char *album;
12 char *title;
15 struct ui_model {
16 struct ui_oggfile *oggfiles;
17 struct ui_oggfile *guess;
18 struct ui_oggfile *correct;
19 int turn;
20 int players;
21 int *scores;
22 int score_delta;
23 int current_player;
24 int choices;
27 struct ui_context;
29 void ui_context_close(struct ui_context *_ctx);
30 struct ui_context *ui_context_open(void);
31 void ui_display_quiz(struct ui_context *_ctx, struct ui_model *_model);
32 void ui_display_result(struct ui_context *_ctx, struct ui_model *_model);
33 char ui_get_key(void);