r156: Fixed some compiler warnings for systems with signed char types.
[rox-filer/ma.git] / ROX-Filer / src / options.h
blobc492674e32e46f8df07a8cbc0986f7db74f5d56f
1 /*
2 * $Id$
4 * ROX-Filer, filer for the ROX desktop project
5 * By Thomas Leonard, <tal197@ecs.soton.ac.uk>.
6 */
8 #ifndef _OPTIONS_H
9 #define _OPTIONS_H
11 typedef char *OptionFunc(char *value);
13 /* Take a line from the file and process it. Return NULL on success,
14 * or a pointer to an error string.
16 typedef char *ParseFunc(guchar *line);
18 typedef struct _OptionsSection OptionsSection;
20 #include "filer.h"
22 struct _OptionsSection
24 char *name;
25 GtkWidget *(*create)(void); /* Create widgets */
26 void (*update)(void); /* Update widgets */
27 void (*set)(void); /* Read values from widgets */
28 void (*save)(void); /* Save values to Choices */
31 extern GSList *options_sections;
33 /* Prototypes */
35 void options_init(void);
36 void option_register(char *key, OptionFunc *func);
37 void options_load(void);
38 void options_show(FilerWindow *filer_window);
39 void option_write(char *name, char *value);
40 void parse_file(char *path, ParseFunc *parse_line);
42 #endif /* _OPTIONS_H */