diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-03-07 18:43:23 +0000 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-03-07 18:43:23 +0000 |
commit | fb020ac61b1e457de7a44492bb05a84515828ac7 (patch) | |
tree | 5dfdcae592d25251c11068cec8e8b1186de865b0 /account.h | |
parent | e08e53c9398700309000c6e6b7ff895185d567a9 (diff) | |
parent | c32f492758759c04d8b6239a7862648c9d32c4d8 (diff) |
Merging in mainline, including improved away/status stuff.
Diffstat (limited to 'account.h')
-rw-r--r-- | account.h | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -36,6 +36,7 @@ typedef struct account int auto_connect; int auto_reconnect_delay; int reconnect; + int flags; set_t *set; GHashTable *nicks; @@ -55,8 +56,17 @@ char *set_eval_account( set_t *set, char *value ); char *set_eval_account_reconnect_delay( set_t *set, char *value ); int account_reconnect_delay( account_t *a ); -#define ACC_SET_NOSAVE 0x01 -#define ACC_SET_OFFLINE_ONLY 0x02 -#define ACC_SET_ONLINE_ONLY 0x04 +typedef enum +{ + ACC_SET_NOSAVE = 0x01, /* Don't save this setting (i.e. stored elsewhere). */ + ACC_SET_OFFLINE_ONLY = 0x02, /* Allow changes only if the acct is offline. */ + ACC_SET_ONLINE_ONLY = 0x04, /* Allow changes only if the acct is online. */ +} account_set_flag_t; + +typedef enum +{ + ACC_FLAG_AWAY_MESSAGE = 0x01, /* Supports away messages instead of just states. */ + ACC_FLAG_STATUS_MESSAGE = 0x02, /* Supports status messages (without being away). */ +} account_flag_t; #endif |