#include "../config.h"
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "appconfig.h"
#include "buf.h"
#include "dbapi.h"
#include "luaif.h"
Include dependency graph for appconfig.c:
Go to the source code of this file.
Defines | |
#define | CONFIG_DIRNAME ".gtksql" |
Directory name for GtkSQL config files. | |
#define | CONFIG_FILENAME "gtksql.conf" |
Name of the main configuration file. | |
#define | USAGE |
Usage string to be displayed to the user. | |
Functions | |
void | cfg_show_banner (void) |
Show a usage string. | |
void | cfg_show_usage (void) |
Show a usage string. | |
int | cfg_parse_cmdline (int argc, char *argv[]) |
Parse the command line. | |
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. | |
void | cfg_set_current_dir (const char *dir) |
Set the current working directory. |
Definition in file appconfig.c.
|
Value: "gtksql [-h] [-f scriptfile] [-s \"script\"]\n\n" \ "\t-h Show usage help\n" \ "\t-f scriptfile Run the script in the named file\n" \ "\t-s \"script\" Run the script given on the command line\n"
Definition at line 67 of file appconfig.c. Referenced by cfg_show_usage(). |