comparison src/protocols/msn/user.h @ 5316:d5690ed70085

[gaim-migrate @ 5688] Added experimental support for the text/x-clientinfo content-type being discussed on the forums at hypothetic.org. It may change, but for now, I just want to play with it, and I want us to be able to accept the messages. Ignore what it consists of right now. It'll change. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Tue, 06 May 2003 08:54:58 +0000
parents e2e53316a21d
children ebebc833cf77
comparison
equal deleted inserted replaced
5315:b1c430fbf9d5 5316:d5690ed70085
30 /** 30 /**
31 * A user. 31 * A user.
32 */ 32 */
33 struct _MsnUser 33 struct _MsnUser
34 { 34 {
35 MsnSession *session; /**< The MSN session. */ 35 MsnSession *session; /**< The MSN session. */
36 36
37 char *passport; /**< The passport account. */ 37 char *passport; /**< The passport account. */
38 char *name; /**< The friendly name. */ 38 char *name; /**< The friendly name. */
39 39
40 int group_id; /**< The group ID. */ 40 int group_id; /**< The group ID. */
41 41
42 size_t ref_count; /**< The reference count. */ 42 size_t ref_count; /**< The reference count. */
43
44 GHashTable *clientinfo; /**< The client information. */
43 }; 45 };
44 46
45 /** 47 /**
46 * A collection of users. 48 * A collection of users.
47 */ 49 */
139 * @return The group ID. 141 * @return The group ID.
140 */ 142 */
141 int msn_user_get_group_id(const MsnUser *user); 143 int msn_user_get_group_id(const MsnUser *user);
142 144
143 /** 145 /**
146 * Sets the client information for a user.
147 *
148 * @param user The user.
149 * @param info The client information.
150 */
151 void msn_user_set_client_info(MsnUser *user, GHashTable *info);
152
153 /**
154 * Returns the client information for a user.
155 *
156 * @param user The user.
157 *
158 * @return The client information.
159 */
160 GHashTable *msn_user_get_client_info(const MsnUser *user);
161
162 /**
144 * Creates a new MsnUsers structure. 163 * Creates a new MsnUsers structure.
145 * 164 *
146 * @return A new MsnUsers structure. 165 * @return A new MsnUsers structure.
147 */ 166 */
148 MsnUsers *msn_users_new(void); 167 MsnUsers *msn_users_new(void);
168 * @param users The users list. 187 * @param users The users list.
169 * @param user The user. 188 * @param user The user.
170 */ 189 */
171 void msn_users_remove(MsnUsers *users, MsnUser *user); 190 void msn_users_remove(MsnUsers *users, MsnUser *user);
172 191
173
174 /** 192 /**
175 * Finds a user with the specified passport. 193 * Finds a user with the specified passport.
176 * 194 *
177 * @param users A list of users. 195 * @param users A list of users.
178 * @param passport The passport. 196 * @param passport The passport.