This is the doxygen documentation for gtkboard.
.00001 /* This file is a part of gtkboard, a board games system. 00002 Copyright (C) 2003, Arvind Narayanan <arvindn@users.sourceforge.net> 00003 00004 This program is free software; you can redistribute it and/or modify 00005 it under the terms of the GNU General Public License as published by 00006 the Free Software Foundation; either version 2 of the License, or 00007 (at your option) any later version. 00008 00009 This program is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 GNU General Public License for more details. 00013 00014 You should have received a copy of the GNU General Public License 00015 along with this program; if not, write to the Free Software 00016 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111 USA 00017 00018 */ 00019 #ifndef _PREFS_H_ 00020 #define _PREFS_H_ 00021 00022 #include <glib.h> 00023 #include <gdk/gdk.h> 00024 #include <gtk/gtk.h> 00025 #include "game.h" 00026 00027 #define MAX_HIGHSCORES 10 00028 00029 typedef struct 00030 { 00031 char name[32]; 00032 char score[32]; 00033 int time; 00034 int date; 00035 } Score; 00036 00037 00038 extern SCORE_FIELD prefs_score_fields_def[]; 00039 extern gchar* prefs_score_field_names_def[]; 00040 00041 gboolean prefs_load_scores (gchar *); 00042 gboolean prefs_save_scores (gchar *); 00043 void prefs_show_scores (); 00044 void prefs_zap_highscores (); 00045 void prefs_add_highscore (gchar *, int); 00046 int prefs_scorecmp_dscore (gchar *, int, gchar*, int); 00047 int prefs_scorecmp_iscore (gchar *, int, gchar*, int); 00048 int prefs_scorecmp_time (gchar *, int, gchar*, int); 00049 extern int (*game_scorecmp) (gchar *, int, gchar*, int); 00050 #endif