Added /alias command, writing aliases to [alias] group in profrc

This commit is contained in:
James Booth
2014-01-23 22:29:53 +00:00
parent 8ba2d26947
commit 8dbe300d72
12 changed files with 356 additions and 9 deletions

View File

@@ -65,6 +65,11 @@ typedef enum {
PREF_OTR_WARN
} preference_t;
typedef struct prof_alias_t {
gchar *name;
gchar *value;
} ProfAlias;
void prefs_load(void);
void prefs_close(void);
@@ -92,6 +97,12 @@ void prefs_set_autoaway_time(gint value);
void prefs_add_login(const char *jid);
void prefs_add_alias(const char * const name, const char * const value);
gboolean prefs_remove_alias(const char * const name);
char* prefs_get_alias(const char * const name);
GList* prefs_get_aliases(void);
void prefs_free_aliases(GList *aliases);
gboolean prefs_get_boolean(preference_t pref);
void prefs_set_boolean(preference_t pref, gboolean value);
char * prefs_get_string(preference_t pref);