Mercurial > pidgin
comparison libpurple/protocols/msn/user.h @ 30728:2a5dbea6ab6b
Use a linked list to store MsnUserEndpoints instead of a hash table.
This is per-buddy on MSN, and I expect most buddies to only have
one or two endpoints (only be signed in from one or two locations),
so I expect this to use less memory and not much less efficient.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 23 Apr 2010 00:24:07 +0000 |
parents | de59c181e6aa |
children | 02dc01aa8c07 e53f81486d57 |
comparison
equal
deleted
inserted
replaced
30727:e167de25e795 | 30728:2a5dbea6ab6b |
---|---|
81 | 81 |
82 char *passport; /**< The passport account. */ | 82 char *passport; /**< The passport account. */ |
83 char *friendly_name; /**< The friendly name. */ | 83 char *friendly_name; /**< The friendly name. */ |
84 | 84 |
85 char *uid; /*< User ID */ | 85 char *uid; /*< User ID */ |
86 GHashTable *endpoints; /*< Endpoint-specific data */ | 86 GSList *endpoints; /*< Endpoint-specific data */ |
87 | 87 |
88 const char *status; /**< The state of the user. */ | 88 const char *status; /**< The state of the user. */ |
89 char *statusline; /**< The state of the user. */ | 89 char *statusline; /**< The state of the user. */ |
90 | 90 |
91 gboolean idle; /**< The idle state of the user. */ | 91 gboolean idle; /**< The idle state of the user. */ |
120 | 120 |
121 /** | 121 /** |
122 * A specific user endpoint. | 122 * A specific user endpoint. |
123 */ | 123 */ |
124 typedef struct MsnUserEndpoint { | 124 typedef struct MsnUserEndpoint { |
125 char *name; /**< The client's endpoint's name */ | 125 char *id; /**< The client's endpoint ID */ |
126 int type; /**< The client's endpoint type */ | 126 char *name; /**< The client's endpoint's name */ |
127 int type; /**< The client's endpoint type */ | |
127 guint clientid; /**< The client's ID */ | 128 guint clientid; /**< The client's ID */ |
128 guint extcaps; /**< The client's extended capabilites */ | 129 guint extcaps; /**< The client's extended capabilites */ |
129 | 130 |
130 } MsnUserEndpoint; | 131 } MsnUserEndpoint; |
131 | 132 |
132 /************************************************************************** | 133 /************************************************************************** |
133 ** @name User API * | 134 ** @name User API * |