summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/highscore.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lib/highscore.h')
-rw-r--r--apps/plugins/lib/highscore.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/apps/plugins/lib/highscore.h b/apps/plugins/lib/highscore.h
new file mode 100644
index 0000000000..ff192137f3
--- /dev/null
+++ b/apps/plugins/lib/highscore.h
@@ -0,0 +1,33 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2005 Linus Nielsen Feltzing
11 *
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.
14 *
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
17 *
18 ****************************************************************************/
19#ifndef HIGHSCORE_H
20#define HIGHSCORE_H
21
22struct highscore
23{
24 char name[32];
25 int score;
26 int level;
27};
28
29void highscore_init(struct plugin_api* newrb);
30int highscore_save(char *filename, struct highscore *scores, int num_scores);
31int highscore_load(char *filename, struct highscore *scores, int num_scores);
32
33#endif