Mercurial > pidgin.yaz
comparison src/protocols/trepia/profile.c @ 5752:90eea4997759
[gaim-migrate @ 6177]
Trepia connections are a bit better now. People's usernames are now their
usernames and not their ID numbers. Some things are faster, I think.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Wed, 04 Jun 2003 19:46:48 +0000 |
parents | 99ae9bd8b5fa |
children |
comparison
equal
deleted
inserted
replaced
5751:2951d2435196 | 5752:90eea4997759 |
---|---|
47 | 47 |
48 g_free(profile); | 48 g_free(profile); |
49 } | 49 } |
50 | 50 |
51 void | 51 void |
52 trepia_profile_set_type(TrepiaProfile *profile, int value) | |
53 { | |
54 g_return_if_fail(profile != NULL); | |
55 | |
56 profile->type = value; | |
57 } | |
58 | |
59 void | |
52 trepia_profile_set_id(TrepiaProfile *profile, int value) | 60 trepia_profile_set_id(TrepiaProfile *profile, int value) |
53 { | 61 { |
54 g_return_if_fail(profile != NULL); | 62 g_return_if_fail(profile != NULL); |
55 | 63 |
56 profile->id = value; | 64 profile->id = value; |
264 | 272 |
265 profile->company = (value == NULL ? NULL : g_strdup(value)); | 273 profile->company = (value == NULL ? NULL : g_strdup(value)); |
266 } | 274 } |
267 | 275 |
268 int | 276 int |
277 trepia_profile_get_type(const TrepiaProfile *profile) | |
278 { | |
279 g_return_val_if_fail(profile != NULL, 0); | |
280 | |
281 return profile->type; | |
282 } | |
283 | |
284 int | |
269 trepia_profile_get_id(const TrepiaProfile *profile) | 285 trepia_profile_get_id(const TrepiaProfile *profile) |
270 { | 286 { |
271 g_return_val_if_fail(profile != NULL, 0); | 287 g_return_val_if_fail(profile != NULL, 0); |
272 | 288 |
273 return profile->id; | 289 return profile->id; |