comparison libpurple/protocols/msn/state.h @ 28960:99d1b433dba0

Keep CurrentMedia in a separate object outside of MsnUser that needs to be allocated if a user has media. This makes MsnUser smaller by the size of 3 pointers (apparently) for each buddy in your buddy list. In practice it looks like less than 1% of MSN users have media set, so this should save a little bit of memory.
author Mark Doliner <mark@kingant.net>
date Thu, 04 Feb 2010 00:15:41 +0000
parents 5913725cbcd6
children 746bf7d8b34e
comparison
equal deleted inserted replaced
28959:3de19f8f5c92 28960:99d1b433dba0
59 59
60 const char *msn_state_get_text(MsnAwayType state); 60 const char *msn_state_get_text(MsnAwayType state);
61 61
62 void msn_set_psm(MsnSession *session); 62 void msn_set_psm(MsnSession *session);
63 63
64 /* Parse CurrentMedia string */ 64 /**
65 gboolean msn_parse_currentmedia(const char *cmedia, CurrentMedia *media); 65 * Parse CurrentMedia string.
66 */
67 CurrentMedia *msn_parse_currentmedia(const char *cmedia);
66 68
67 /* Get the CurrentMedia info from the XML string */ 69 /* Get the CurrentMedia info from the XML string */
68 char * msn_get_currentmedia(char *xml_str,gsize len); 70 char * msn_get_currentmedia(char *xml_str,gsize len);
69 71
70 /*get the PSM info from the XML string*/ 72 /*get the PSM info from the XML string*/