comparison libpurple/protocols/msn/user.h @ 29351:08296b862f98

Move the three phone numbers from the MsnUser struct into a separate struct that gets added as needed. Makes MsnUser smaller by 2 pointers. In practice nobody has phone numbers
author Mark Doliner <mark@kingant.net>
date Thu, 04 Feb 2010 00:35:15 +0000
parents 99d1b433dba0
children 7f5a406a3b50
comparison
equal deleted inserted replaced
29350:99d1b433dba0 29351:08296b862f98
59 char *title; /**< Title. */ 59 char *title; /**< Title. */
60 char *artist; /**< Artist. */ 60 char *artist; /**< Artist. */
61 char *album; /**< Album. */ 61 char *album; /**< Album. */
62 } CurrentMedia; 62 } CurrentMedia;
63 63
64 typedef struct _MsnUserPhoneInfo
65 {
66 char *home; /**< Home phone number. */
67 char *work; /**< Work phone number. */
68 char *mobile; /**< Mobile phone number. */
69 } MsnUserPhoneInfo;
70
64 /** 71 /**
65 * A user. 72 * A user.
66 */ 73 */
67 struct _MsnUser 74 struct _MsnUser
68 { 75 {
77 char *statusline; /**< The state of the user. */ 84 char *statusline; /**< The state of the user. */
78 CurrentMedia *media; /**< Current media of the user. */ 85 CurrentMedia *media; /**< Current media of the user. */
79 86
80 gboolean idle; /**< The idle state of the user. */ 87 gboolean idle; /**< The idle state of the user. */
81 88
82 struct 89 MsnUserPhoneInfo *phone; /**< This user's phone numbers. */
83 {
84 char *home; /**< Home phone number. */
85 char *work; /**< Work phone number. */
86 char *mobile; /**< Mobile phone number. */
87
88 } phone;
89 90
90 gboolean authorized; /**< Authorized to add this user. */ 91 gboolean authorized; /**< Authorized to add this user. */
91 gboolean mobile; /**< Signed up with MSN Mobile. */ 92 gboolean mobile; /**< Signed up with MSN Mobile. */
92 93
93 GList *group_ids; /**< The group IDs. */ 94 GList *group_ids; /**< The group IDs. */