comparison mcabber/src/settings.h @ 1074:b2fc694a8228

Fix a few memory leaks after calls to parse_assigment()
author Mikael Berthe <mikael@lilotux.net>
date Sun, 03 Dec 2006 19:29:54 +0100
parents 9eaacc0ad3a2
children 5be2408a6534
comparison
equal deleted inserted replaced
1073:253e8988eb5c 1074:b2fc694a8228
23 23
24 #define mkcmdstr(cmd) COMMAND_CHARSTR cmd 24 #define mkcmdstr(cmd) COMMAND_CHARSTR cmd
25 25
26 void settings_init(void); 26 void settings_init(void);
27 int cfg_read_file(char *filename); 27 int cfg_read_file(char *filename);
28 guint parse_assigment(gchar *assignment, 28 guint parse_assigment(gchar *assignment, gchar **pkey, gchar **pval);
29 const gchar **pkey, const gchar **pval);
30 void settings_set(guint type, const gchar *key, const gchar *value); 29 void settings_set(guint type, const gchar *key, const gchar *value);
31 void settings_del(guint type, const gchar *key); 30 void settings_del(guint type, const gchar *key);
32 const gchar *settings_get(guint type, const gchar *key); 31 const gchar *settings_get(guint type, const gchar *key);
33 int settings_get_int(guint type, const gchar *key); 32 int settings_get_int(guint type, const gchar *key);
34 const gchar *settings_get_status_msg(enum imstatus status); 33 const gchar *settings_get_status_msg(enum imstatus status);