Mercurial > pidgin
diff libpurple/protocols/yahoo/libymsg.h @ 27455:07d09a987b86
Allow setting some personal information for an account.
Currently the name and phone number(s) can be set. It's possible to set a
lot of information about a Yahoo! account that can be set for an XMPP
account, but the list looked too huge for me. So I just picked the ones
that I thought could be useful. Someone might want to know about the
birthdays too ... I don't know.
Someone should test this on Yahoo! JAPAN (why not 'Japan', by the way?)
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Fri, 10 Jul 2009 15:18:09 +0000 |
parents | 31534ae3406a |
children | faf80efd10a9 |
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/libymsg.h Fri Jul 10 06:37:13 2009 +0000 +++ b/libpurple/protocols/yahoo/libymsg.h Fri Jul 10 15:18:09 2009 +0000 @@ -65,6 +65,9 @@ #define YAHOO_SMS_CARRIER_URL "http://lookup.msg.vip.mud.yahoo.com" +#define YAHOO_USERINFO_URL "http://address.yahoo.com/yab/us?v=XM&sync=1&tags=short&useutf8=1&noclear=1&legenc=codepage-1252" +#define YAHOOJP_USERINFO_URL "http://address.yahoo.co.jp/yab/jp?v=XM&sync=1&tags=short&useutf8=1&noclear=1&legenc=codepage-1252" + #define YAHOO_PICURL_SETTING "picture_url" #define YAHOO_PICCKSUM_SETTING "picture_checksum" #define YAHOO_PICEXPIRE_SETTING "picture_expire" @@ -147,6 +150,23 @@ struct _YchtConn; +typedef struct _YahooPersonalDetails { + char *id; + + struct { + char *first; + char *last; + char *middle; + char *nick; + } names; + + struct { + char *work; + char *home; + char *mobile; + } phone; +} YahooPersonalDetails; + struct yahoo_data { PurpleConnection *gc; int fd; @@ -157,6 +177,7 @@ GHashTable *friends; char **profiles; /* Multiple profiles can be associated with an account */ + YahooPersonalDetails ypd; /** * This is used to keep track of the IMVironment chosen