Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields   Globals   Related Pages  

Config


Files

file  appconfig.c
 Configuration module.

file  appconfig.h
 Configuration module include file.


Functions

void cfg_init (void)
 Initialise the configuration.

char * cfg_get_config_dir (void)
 Get the configuration file directory.

char * cfg_get_current_dir (void)
 Get the current workiung directory.

char * cfg_get_default_wsname (void)
 Get the default workspace name.

int cfg_parse_cmdline (int argc, char *argv[])
 Parse the command line.

void cfg_set_current_dir (const char *dir)
 Set the current working directory.

void cfg_show_usage (void)
 Show a usage string.


Function Documentation

char* cfg_get_config_dir void   
 

Get the configuration file directory.

This is normally ($HOME/.gtksql).

Returns:
The name of the configuration directory.

Definition at line 176 of file appconfig.c.

References cfg_set_current_dir(), and CONFIG_DIRNAME.

Referenced by cfg_get_default_wsname().

char* cfg_get_current_dir void   
 

Get the current workiung directory.

Returns:
The name of the configuration directory.

Definition at line 224 of file appconfig.c.

References cfg_set_current_dir().

Referenced by file_open_dialog(), query_import_dialog_create(), and query_save_dialog_create().

char* cfg_get_default_wsname void   
 

Get the default workspace name.

Returns:
The default worlspace filename.

Definition at line 238 of file appconfig.c.

References _a_buf::b_dat, buf_strcat(), buf_strcpy(), and cfg_get_config_dir().

Referenced by ws_save_file().

void cfg_init void   
 

Initialise the configuration.

Performs these steps:

  • Sets default values.

Definition at line 168 of file appconfig.c.

Referenced by main().

int cfg_parse_cmdline int    argc,
char *    argv[]
 

Parse the command line.

Parameters:
argc  As passed to main()
argv  As passed to main()
Returns:
Always returns zero.

Definition at line 137 of file appconfig.c.

References cfg_show_usage(), db_connect_url(), luaif_runfile(), and luaif_runstring().

Referenced by main().

void cfg_set_current_dir const char *    dir
 

Set the current working directory.

Parameters:
dir  The directory to use.

Definition at line 289 of file appconfig.c.

Referenced by cfg_get_config_dir(), and cfg_get_current_dir().


Generated on Sun May 9 19:19:27 2004 for GtkSQL by doxygen1.2.18