Mercurial > pidgin.yaz
view plugins/perl/common/BuddyList_Group.xs @ 9325:f40233043b5a
[gaim-migrate @ 10133]
This fixes some oddities with fetching a users icon if he had previously
unset it, and then set the same one. We were forgetting to unset some flags
and also the checksum, so we noticed the checksum was the same and didn't
ask for the icon, even though we didn't have an icon. Its still not always
fetching it, which is odd.
committer: Tailor Script <tailor@pidgin.im>
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Sun, 20 Jun 2004 07:38:40 +0000 |
parents | 7a8aa87164ae |
children |
line wrap: on
line source
#include "module.h" MODULE = Gaim::BuddyList::Group PACKAGE = Gaim::BuddyList::Group PREFIX = gaim_group_ PROTOTYPES: ENABLE Gaim::BuddyList::Group new(name) const char *name CODE: RETVAL = gaim_group_new(name); OUTPUT: RETVAL void rename(group, new_name) Gaim::BuddyList::Group group const char *new_name CODE: gaim_blist_rename_group(group, new_name); void get_accounts(group) Gaim::BuddyList::Group group PREINIT: GSList *l; PPCODE: for (l = gaim_group_get_accounts(group); l != NULL; l = l->next) XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::Account"))); int get_size(group, offline) Gaim::BuddyList::Group group gboolean offline CODE: RETVAL = gaim_blist_get_group_size(group, offline); OUTPUT: RETVAL const char * get_name(group) Gaim::BuddyList::Group group CODE: RETVAL = group->name; OUTPUT: RETVAL int get_online_count(group) Gaim::BuddyList::Group group CODE: RETVAL = gaim_blist_get_group_online_count(group); OUTPUT: RETVAL void buddies(group) Gaim::BuddyList::Group group PREINIT: GaimBlistNode *node; GaimBlistNode *contact; GaimBlistNode *_group = (GaimBlistNode *)group; PPCODE: for (contact = _group->child; contact != NULL; contact = contact->next) { for (node = contact->child; node != NULL; node = node->next) { XPUSHs(sv_2mortal(gaim_perl_bless_object(node, "Gaim::BuddyList::Buddy"))); } }