| 1 |
#ifndef __SCOREBOARD_H__ |
| 2 |
#define __SCOREBOARD_H__ |
| 3 |
|
| 4 |
struct score_board { |
| 5 |
gchar name[30]; |
| 6 |
gint score; |
| 7 |
gchar date[60]; |
| 8 |
}; |
| 9 |
|
| 10 |
struct score_board_full { |
| 11 |
gchar name[30]; |
| 12 |
gint score; |
| 13 |
gchar date[60]; |
| 14 |
gchar *rules; |
| 15 |
}; |
| 16 |
|
| 17 |
void free_score_board_full(struct score_board_full *bf, gint nbf); |
| 18 |
gint write_score(struct score_board *, struct score_board_full *, gint); |
| 19 |
gint read_score(struct score_board *, struct score_board_full **, gint *); |
| 20 |
gint insert_entry_in_score_board(struct score_board *board, |
| 21 |
struct score_board entry); |
| 22 |
|
| 23 |
#endif |