Logo Search packages:      
Sourcecode: mathwar version File versions  Download package

ini_defs.h File Reference


Detailed Description

INI file handling.

Functions and defines to make handling the INI file even easier than it already is.

Author:
Kenneth W. Sodemann <stufflehead@bigfoot.com>
Revision
1.3
Date
2002/05/25 16:44:49

Definition in file ini_defs.h.

Go to the source code of this file.

Defines

#define ADD_MAX   "addition_max"
#define ADD_PCT   "addition_pct"
#define BASIC_PARMS   "game_parameters"
#define COMP_PLAYER   "computer_player"
#define DEF_ADD_MAX   20
#define DEF_ADD_PCT   40
#define DEF_ALPHA   65535
#define DEF_BLUE   65535
#define DEF_GREEN   65535
#define DEF_GUESS_DEV   10
#define DEF_GUESS_PCT   75
#define DEF_MAX_DEV   10
#define DEF_MULT_MAX   12
#define DEF_MULT_PCT   30
#define DEF_NUM_ROUNDS   20
#define DEF_RED   65535
#define DEF_RESP_DELAY   2
#define DEF_RIGHT_PCT   50
#define DEF_SECONDS   10
#define DEF_SECS_BTWN   2
#define DEF_SUB_MAX   20
#define DEF_SUB_PCT   30
#define DEF_TEXT_FONT   "-*-courier-*-*-*-*-20-*-*-*-*-*-*-*"
#define DEF_TIME   75
#define DEF_TITLE_FONT   "-*-courier-*-*-*-*-34-*-*-*-*-*-*-*"
#define FONT_COLOR_B   "color_blue"
#define FONT_COLOR_G   "color_green"
#define FONT_COLOR_R   "color_red"
#define FONTS   "fonts"
#define GUESS_DEV   "guess_deviation"
#define GUESS_PCT   "guess_pct"
#define GUESS_TIME   "time_pct"
#define MAX_DEL_SECS   15
#define MAX_DEV_VALUE   100
#define MAX_DEVIATION   "time_deviation"
#define MAX_NUMBER   20
#define MAX_PCT   100
#define MAX_ROUNDS   100
#define MAX_SECS   120
#define MIN_DEL_SECS   0
#define MIN_DEV_VALUE   0
#define MIN_NUMBER   0
#define MIN_PCT   0
#define MIN_ROUNDS   1
#define MIN_SECS   5
#define MULT_MAX   "multiplication_max"
#define MULT_PCT   "multiplication_pct"
#define NUM_ROUNDS   "num_rounds"
#define OPERATORS   "operators"
#define RESP_DELAY   "message_delay"
#define RIGHT_PCT   "correct_pct"
#define SECONDS   "round_duration"
#define SECONDS_BTWN   "seconds_btwn_rounds"
#define SUB_MAX   "subtraction_max"
#define SUB_PCT   "subtraction_pct"
#define TEXT_FONT   "text_font"
#define TITLE_FONT   "title_font"

Functions

gint ini_get_int (const gchar *ini_file, const gchar *section, const gchar *label, gint def_val)
 Get the given integer value from the ini file.
gchar * ini_get_string (const gchar *ini_file, const gchar *section, const gchar *label, const gchar *def_val)
 Get the given string value from the ini file. The value returned should be freed with g_free() when it is no longer needed.
void ini_set_int (const gchar *ini_file, const gchar *section, const gchar *label, gint value)
 Set the given integer value in the ini file.
void ini_set_string (const gchar *ini_file, const gchar *section, const gchar *label, const gchar *value)
 Set the given string value in the ini file.


Generated by  Doxygen 1.6.0   Back to index