From 40e6dac45f29a4c2cc64ce55eecef03d0b185bd5 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sat, 24 Jul 2010 17:46:59 +0200 Subject: 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. --- protocols/account.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'protocols/account.h') 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 ); -- cgit v1.2.3