view mcabber/src/settings.h @ 281:f562b9af2de7

Add "const" specifier in prototypes It's easier then to know when variables are read-only (and shouldn't be freed).
author Mikael Berthe <mikael@lilotux.net>
date Wed, 06 Jul 2005 22:18:05 +0100
parents 68ce34b4243b
children 1eea0fa0955e
line wrap: on
line source

#ifndef __SETTINGS_H__
#define __SETTINGS_H__ 1

#include <glib.h>

#define SETTINGS_TYPE_OPTION    1
#define SETTINGS_TYPE_ALIAS     2
#define SETTINGS_TYPE_BINDING   3

#define settings_opt_get(k)     settings_get(SETTINGS_TYPE_OPTION, k)
#define settings_opt_get_int(k) settings_get_int(SETTINGS_TYPE_OPTION, k)

guint   parse_assigment(gchar *assignment,
                        const gchar **pkey, const gchar **pval);
void    settings_set(guint type, const gchar *key, const gchar *value);
void    settings_del(guint type, const gchar *key);
const gchar *settings_get(guint type, const gchar *key);
int     settings_get_int(guint type, const gchar *key);

#endif /* __SETTINGS_H__ */