comparison libpurple/protocols/yahoo/yahoo_aliases.h @ 18763:08a6a01b7ebe

Yahoo server-side aliases patch from John Moody. Fixes #1653 Thanks!
author Sean Egan <seanegan@gmail.com>
date Wed, 01 Aug 2007 01:32:07 +0000
parents
children 44b4e8bd759b
comparison
equal deleted inserted replaced
18762:a582b09109bc 18763:08a6a01b7ebe
1 /*
2 * purple
3 *
4 * Purple is the legal property of its developers, whose names are too numerous
5 * to list here. Please refer to the COPYRIGHT file distributed with this
6 * source distribution.
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 *
22 */
23
24
25 #include "internal.h"
26
27 #include "account.h"
28 #include "accountopt.h"
29 #include "blist.h"
30 #include "debug.h"
31 #include "util.h"
32 #include "version.h"
33 #include "yahoo.h"
34 #include "yahoo_packet.h"
35
36
37 /**
38 * The additional protocol specific info attached to each buddy. We need
39 * to store the unique numeric id number to allow us to push alias changes.
40 */
41 struct YahooUser
42 {
43 const char *id; /* The yahoo accountid for this buddy (not YahooID but numeric value) */
44 char *firstname; /* Storing this information for no real reason, just because */
45 char *lastname; /* Storing this information for no real reason, just because */
46 char *nickname; /* Storing this information for no real reason, just because */
47 };
48
49 void yahoo_update_alias(PurpleConnection *gc, const char *who, const char *alias);
50 void yahoo_fetch_aliases(PurpleConnection *gc);