aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/account.h
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-07-24 17:46:59 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2010-07-24 17:46:59 +0200
commit40e6dac45f29a4c2cc64ce55eecef03d0b185bd5 (patch)
tree72b76011a5dea6281cdd8eb777f6cdf39cd67632 /protocols/account.h
parent7989d40d5b9c8f05b38e7b07ab7e91335e717309 (diff)
Adding account tags as a way to 100% uniquely identify an account.
protocol(screenname) doesn't do this and is a little bit long. These will be used for nick_format and XML storage.
Diffstat (limited to 'protocols/account.h')
-rw-r--r--protocols/account.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/account.h b/protocols/account.h
index be27542e..a39be2e2 100644
--- a/protocols/account.h
+++ b/protocols/account.h
@@ -32,6 +32,7 @@ typedef struct account
char *user;
char *pass;
char *server;
+ char *tag;
int auto_connect;
int auto_reconnect_delay;
@@ -47,7 +48,8 @@ typedef struct account
} account_t;
account_t *account_add( bee_t *bee, struct prpl *prpl, char *user, char *pass );
-account_t *account_get( bee_t *bee, char *id );
+account_t *account_get( bee_t *bee, const char *id );
+account_t *account_by_tag( bee_t *bee, const char *tag );
void account_del( bee_t *bee, account_t *acc );
void account_on( bee_t *bee, account_t *a );
void account_off( bee_t *bee, account_t *a );