Mercurial > pidgin
diff libpurple/protocols/myspace/myspace.h @ 18912:7519560095f7
Use MsimUser structure for storing ephemeral information on users, instead
of permanently storing the information using purple_blist_node_*. The uid
is still stored using purple_blist_node_*, so it ends up in blist.xml since
it never changes. But the rest of the fields can change easily, so they're
stored only in memory. There are still some rough edges with this new code.
author | Jeffrey Connelly <jaconnel@calpoly.edu> |
---|---|
date | Sun, 12 Aug 2007 23:20:07 +0000 |
parents | 2115910c5746 |
children | 0f46f13c0805 |
line wrap: on
line diff
--- a/libpurple/protocols/myspace/myspace.h Sun Aug 12 23:16:53 2007 +0000 +++ b/libpurple/protocols/myspace/myspace.h Sun Aug 12 23:20:07 2007 +0000 @@ -199,20 +199,24 @@ guint inbox_status; /**< Bit field of inbox notifications */ } MsimSession; -#if 0 /* Hold ephemeral information about buddies, for proto_data of PurpleBuddy. */ /* GHashTable? */ -typedef struct _MsimBuddy +typedef struct _MsimUser { + PurpleBuddy *buddy; guint client_cv; gchar *client_info; guint age; + gchar *gender; + gchar *location; guint total_friends; gchar *headline; gchar *display_name; + /* Note: uid is in &buddy->node (set_blist_node_int), since it never changes */ gchar *username; -} MsimBuddy; -#endif + gchar *band_name, *song_name; + gchar *image_url; +} MsimUser; /* Check if an MsimSession is valid */ #define MSIM_SESSION_VALID(s) (session != NULL && session->magic == MSIM_SESSION_STRUCT_MAGIC)