Mercurial > hg
view mcabber/src/settings.h @ 337:3a25be278864
Values can be enclosed by quotes in assignments
Thus, passwords with leading/trailing spaces can be typed.
Examples:
set password = " with spaces "
set password = "with "quotes""
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Mon, 18 Jul 2005 21:47:05 +0100 |
parents | 871e53769084 |
children | dea407d53fe6 33b8e801ffa6 |
line wrap: on
line source
#ifndef __SETTINGS_H__ #define __SETTINGS_H__ 1 #include <glib.h> #include "jabglue.h" #ifndef __USE_ISOC99 # define isblank(c) ((c) == 0x20 || (c) == 0x09) #endif /* Default status messages */ #define MSG_AVAIL "I'm here!" #define MSG_FREE "Free for chat" #define MSG_DND "Busy" #define MSG_NOTAVAIL "Not available" #define MSG_AWAY "Away" #define MSG_AUTOAWAY "Auto away" #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); const gchar *settings_get_status_msg(enum imstatus status); const gchar *isbound(int key); #endif /* __SETTINGS_H__ */