Changeset 5ebff60 for protocols/account.h
- Timestamp:
- 2015-02-20T22:50:54Z (10 years ago)
- Branches:
- master
- Children:
- 0b9daac, 3d45471, 7733b8c
- Parents:
- af359b4
- git-author:
- Indent <please@…> (19-02-15 05:47:20)
- git-committer:
- dequis <dx@…> (20-02-15 22:50:54)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/account.h
raf359b4 r5ebff60 1 1 /********************************************************************\ 2 2 * BitlBee -- An IRC to other IM-networks gateway * 3 3 * * … … 27 27 #define _ACCOUNT_H 28 28 29 typedef struct account 30 { 29 typedef struct account { 31 30 struct prpl *prpl; 32 31 char *user; … … 34 33 char *server; 35 34 char *tag; 36 35 37 36 int auto_connect; 38 37 int auto_reconnect_delay; 39 38 int reconnect; 40 39 int flags; 41 40 42 41 set_t *set; 43 42 GHashTable *nicks; 44 43 45 44 struct bee *bee; 46 45 struct im_connection *ic; … … 48 47 } account_t; 49 48 50 account_t *account_add( bee_t *bee, struct prpl *prpl, char *user, char *pass);51 account_t *account_get( bee_t *bee, const char *id);52 account_t *account_by_tag( bee_t *bee, const char *tag);53 void account_del( bee_t *bee, account_t *acc);54 void account_on( bee_t *bee, account_t *a);55 void account_off( bee_t *bee, account_t *a);49 account_t *account_add(bee_t *bee, struct prpl *prpl, char *user, char *pass); 50 account_t *account_get(bee_t *bee, const char *id); 51 account_t *account_by_tag(bee_t *bee, const char *tag); 52 void account_del(bee_t *bee, account_t *acc); 53 void account_on(bee_t *bee, account_t *a); 54 void account_off(bee_t *bee, account_t *a); 56 55 57 char *set_eval_account( set_t *set, char *value);58 char *set_eval_account_reconnect_delay( set_t *set, char *value);59 int account_reconnect_delay( account_t *a);56 char *set_eval_account(set_t *set, char *value); 57 char *set_eval_account_reconnect_delay(set_t *set, char *value); 58 int account_reconnect_delay(account_t *a); 60 59 61 int protocol_account_islocal( const char* protocol);60 int protocol_account_islocal(const char* protocol); 62 61 63 typedef enum 64 { 62 typedef enum { 65 63 ACC_SET_OFFLINE_ONLY = 0x02, /* Allow changes only if the acct is offline. */ 66 64 ACC_SET_ONLINE_ONLY = 0x04, /* Allow changes only if the acct is online. */ 67 65 } account_set_flag_t; 68 66 69 typedef enum 70 { 67 typedef enum { 71 68 ACC_FLAG_AWAY_MESSAGE = 0x01, /* Supports away messages instead of just states. */ 72 69 ACC_FLAG_STATUS_MESSAGE = 0x02, /* Supports status messages (without being away). */
Note: See TracChangeset
for help on using the changeset viewer.