Mercurial > pidgin
comparison libpurple/protocols/msn/user.h @ 30738:0c090a41522c
Add ref/unref support to MsnUser.
author | masca@cpw.pidgin.im |
---|---|
date | Wed, 26 May 2010 23:25:39 +0000 |
parents | 02dc01aa8c07 |
children | f89094d6f8d5 |
comparison
equal
deleted
inserted
replaced
30737:1ba9f3167de0 | 30738:0c090a41522c |
---|---|
77 */ | 77 */ |
78 struct _MsnUser | 78 struct _MsnUser |
79 { | 79 { |
80 MsnUserList *userlist; | 80 MsnUserList *userlist; |
81 | 81 |
82 guint8 refcount; /**< The reference count of this object */ | |
83 | |
82 char *passport; /**< The passport account. */ | 84 char *passport; /**< The passport account. */ |
83 char *friendly_name; /**< The friendly name. */ | 85 char *friendly_name; /**< The friendly name. */ |
84 | 86 |
85 char *uid; /*< User ID */ | 87 char *uid; /*< User ID */ |
86 GSList *endpoints; /*< Endpoint-specific data */ | 88 GSList *endpoints; /*< Endpoint-specific data */ |
152 * | 154 * |
153 * @param user The user to destroy. | 155 * @param user The user to destroy. |
154 */ | 156 */ |
155 void msn_user_destroy(MsnUser *user); | 157 void msn_user_destroy(MsnUser *user); |
156 | 158 |
159 /** | |
160 * Increment the reference count. | |
161 * | |
162 * @param user The user. | |
163 * | |
164 * @return user. | |
165 */ | |
166 MsnUser * | |
167 msn_user_ref(MsnUser *user); | |
168 | |
169 /** | |
170 * Decrement the reference count. | |
171 * | |
172 * @param user The user | |
173 */ | |
174 void | |
175 msn_user_unref(MsnUser *user); | |
157 | 176 |
158 /** | 177 /** |
159 * Updates the user. | 178 * Updates the user. |
160 * | 179 * |
161 * Communicates with the core to update the ui, etc. | 180 * Communicates with the core to update the ui, etc. |