A couple more tweaks
[Rockbox.git] / apps / plugins / lib / highscore.h
blobba7da241f1446486f2fda057220b1172b07a6530
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2005 Linus Nielsen Feltzing
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
19 #ifndef HIGHSCORE_H
20 #define HIGHSCORE_H
22 struct highscore
24 char name[32];
25 int score;
26 int level;
29 void highscore_init(struct plugin_api* newrb);
30 int highscore_save(char *filename, struct highscore *scores, int num_scores);
31 int highscore_load(char *filename, struct highscore *scores, int num_scores);
32 int highscore_update(int score, int level, struct highscore *scores, int num_scores);
34 #endif