Mercurial > pidgin
comparison libpurple/blist.c @ 29333:4055d0f7f1ea
added some api for the media caps member of PurpleBuddy
author | Gary Kramlich <grim@reaperworld.com> |
---|---|
date | Fri, 11 Dec 2009 00:54:46 +0000 |
parents | c855d321fc78 |
children | e26af064fe8c |
comparison
equal
deleted
inserted
replaced
29332:dba5d0f7bb39 | 29333:4055d0f7f1ea |
---|---|
2601 | 2601 |
2602 PurplePresence *purple_buddy_get_presence(const PurpleBuddy *buddy) | 2602 PurplePresence *purple_buddy_get_presence(const PurpleBuddy *buddy) |
2603 { | 2603 { |
2604 g_return_val_if_fail(buddy != NULL, NULL); | 2604 g_return_val_if_fail(buddy != NULL, NULL); |
2605 return buddy->presence; | 2605 return buddy->presence; |
2606 } | |
2607 | |
2608 PurpleMediaCaps purple_buddy_get_media_caps(const PurpleBuddy *buddy) | |
2609 { | |
2610 g_return_val_if_fail(buddy != NULL, 0); | |
2611 return buddy->media_caps; | |
2612 } | |
2613 | |
2614 void purple_buddy_set_media_caps(PurpleBuddy *buddy, PurpleMediaCaps media_caps) | |
2615 { | |
2616 g_return_if_fail(buddy != NULL); | |
2617 buddy->media_caps = media_caps; | |
2606 } | 2618 } |
2607 | 2619 |
2608 PurpleGroup *purple_buddy_get_group(PurpleBuddy *buddy) | 2620 PurpleGroup *purple_buddy_get_group(PurpleBuddy *buddy) |
2609 { | 2621 { |
2610 g_return_val_if_fail(buddy != NULL, NULL); | 2622 g_return_val_if_fail(buddy != NULL, NULL); |