comparison mcabber/src/settings.h @ 967:303408ef5e5d

Configurable command character This patch sets the command character as a configurable compile time option.
author Alexis Hildebrandt
date Fri, 29 Sep 2006 20:28:20 +0200
parents 7f056c566569
children b57a01ffeed6
comparison
equal deleted inserted replaced
966:d9acb7f2a3d1 967:303408ef5e5d
13 13
14 #define SETTINGS_TYPE_OPTION 1 14 #define SETTINGS_TYPE_OPTION 1
15 #define SETTINGS_TYPE_ALIAS 2 15 #define SETTINGS_TYPE_ALIAS 2
16 #define SETTINGS_TYPE_BINDING 3 16 #define SETTINGS_TYPE_BINDING 3
17 17
18 #define COMMAND_CHAR '/'
19 #define COMMAND_CHARSTR "/"
20
18 #define settings_opt_get(k) settings_get(SETTINGS_TYPE_OPTION, k) 21 #define settings_opt_get(k) settings_get(SETTINGS_TYPE_OPTION, k)
19 #define settings_opt_get_int(k) settings_get_int(SETTINGS_TYPE_OPTION, k) 22 #define settings_opt_get_int(k) settings_get_int(SETTINGS_TYPE_OPTION, k)
23
24 #define mkcmdstr(cmd) COMMAND_CHARSTR cmd
20 25
21 int cfg_read_file(char *filename); 26 int cfg_read_file(char *filename);
22 guint parse_assigment(gchar *assignment, 27 guint parse_assigment(gchar *assignment,
23 const gchar **pkey, const gchar **pval); 28 const gchar **pkey, const gchar **pval);
24 void settings_set(guint type, const gchar *key, const gchar *value); 29 void settings_set(guint type, const gchar *key, const gchar *value);