Mercurial > pidgin
comparison src/protocols/msn/user.c @ 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 |
---|---|
67 } | 67 } |
68 | 68 |
69 if (user->session != NULL && user->session->users != NULL) | 69 if (user->session != NULL && user->session->users != NULL) |
70 msn_users_remove(user->session->users, user); | 70 msn_users_remove(user->session->users, user); |
71 | 71 |
72 if (user->clientinfo != NULL) | |
73 g_hash_table_destroy(user->clientinfo); | |
74 | |
72 if (user->passport != NULL) | 75 if (user->passport != NULL) |
73 g_free(user->passport); | 76 g_free(user->passport); |
74 | 77 |
75 if (user->name != NULL) | 78 if (user->name != NULL) |
76 g_free(user->name); | 79 g_free(user->name); |
157 msn_user_get_group_id(const MsnUser *user) | 160 msn_user_get_group_id(const MsnUser *user) |
158 { | 161 { |
159 g_return_val_if_fail(user != NULL, -1); | 162 g_return_val_if_fail(user != NULL, -1); |
160 | 163 |
161 return user->group_id; | 164 return user->group_id; |
165 } | |
166 | |
167 void | |
168 msn_user_set_client_info(MsnUser *user, GHashTable *info) | |
169 { | |
170 g_return_if_fail(user != NULL); | |
171 g_return_if_fail(info != NULL); | |
172 | |
173 if (user->clientinfo != NULL) | |
174 g_hash_table_destroy(user->clientinfo); | |
175 | |
176 user->clientinfo = info; | |
177 } | |
178 | |
179 GHashTable * | |
180 msn_user_get_client_info(const MsnUser *user) | |
181 { | |
182 g_return_val_if_fail(user != NULL, NULL); | |
183 | |
184 return user->clientinfo; | |
162 } | 185 } |
163 | 186 |
164 MsnUsers * | 187 MsnUsers * |
165 msn_users_new(void) | 188 msn_users_new(void) |
166 { | 189 { |