#include <gtk/gtk.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <getopt.h>
#include "prefs.h"
#include "charset.h"
Include dependency graph for prefs.c:
Defines | |
#define | usage_fpf(file,) |
Functions | |
static void | usage (FILE *file) |
gboolean | read_prefs (int argc, char *argv[]) |
cfg * | cfg_new (void) |
static void | cfg_free (struct cfg *c) |
void | discard_prefs () |
const gchar * | prefs_get_filename (void) |
void | prefs_set_filename (const gchar *tpl) |
gboolean | prefs_get_have_footer (void) |
void | prefs_set_have_footer (gboolean tpl) |
Variables | |
static struct cfg * | cfg = NULL |
|
Value: do { gchar *utf8=g_strdup_printf (__VA_ARGS__);\ gchar *loc=g_locale_from_utf8 (utf8, -1, NULL, NULL, NULL); \ fprintf (file, "%s", loc); \ g_free (loc); \ g_free (utf8);\ } while (FALSE) |
|
Free all memory including the cfg-struct itself. |
|
Set the preferences and initialise the cfg-struct
|
|
|
|
set and get the current filename |
|
set and get the current have_footer flag |
|
|
|
|
|
Read and parse the command options xxPreferences and initialise the cfg-struct
|
|
|
|
|