Mercurial > pidgin.yaz
diff plugins/perl/common/BuddyList_Buddy.xs @ 6542:fe0294504602
[gaim-migrate @ 7064]
Learn as you go, I guess... Split off the Chat, Group, and Buddy classes
into their own files and bootstrapped them so they'll actually work (I hope
at least).
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Thu, 21 Aug 2003 03:23:18 +0000 |
parents | |
children | 7a8aa87164ae |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/plugins/perl/common/BuddyList_Buddy.xs Thu Aug 21 03:23:18 2003 +0000 @@ -0,0 +1,107 @@ +#include "module.h" + +MODULE = Gaim::BuddyList::Buddy PACKAGE = Gaim::BuddyList::Buddy PREFIX = gaim_buddy_ +PROTOTYPES: ENABLE + +Gaim::BuddyList::Buddy +new(account, name, alias) + Gaim::Account account + const char *name + const char *alias +CODE: + RETVAL = gaim_buddy_new(account, name, alias); +OUTPUT: + RETVAL + +void +update_presence(buddy, presence) + Gaim::BuddyList::Buddy buddy + int presence +CODE: + gaim_blist_update_buddy_presence(buddy, presence); + +void +set_idle_time(buddy, idle) + Gaim::BuddyList::Buddy buddy + int idle +CODE: + gaim_blist_update_buddy_idle(buddy, idle); + +void +set_warning_percent(buddy, warning) + Gaim::BuddyList::Buddy buddy + int warning +CODE: + gaim_blist_update_buddy_evil(buddy, warning); + +void +rename(buddy, new_name) + Gaim::BuddyList::Buddy buddy + const char *new_name +CODE: + gaim_blist_rename_buddy(buddy, new_name); + +void +set_alias(buddy, alias) + Gaim::BuddyList::Buddy buddy + const char *alias +CODE: + gaim_blist_alias_buddy(buddy, alias); + +void +set_server_alias(buddy, alias) + Gaim::BuddyList::Buddy buddy + const char *alias +CODE: + gaim_blist_server_alias_buddy(buddy, alias); + +const char * +get_name(buddy) + Gaim::BuddyList::Buddy buddy +CODE: + RETVAL = buddy->name; +OUTPUT: + RETVAL + +Gaim::Account +get_account(buddy) + Gaim::BuddyList::Buddy buddy +CODE: + RETVAL = buddy->account; +OUTPUT: + RETVAL + +const char * +get_alias_only(buddy) + Gaim::BuddyList::Buddy buddy +CODE: + RETVAL = gaim_get_buddy_alias_only(buddy); +OUTPUT: + RETVAL + +const char * +get_alias(buddy) + Gaim::BuddyList::Buddy buddy +CODE: + RETVAL = gaim_get_buddy_alias(buddy); +OUTPUT: + RETVAL + +Gaim::BuddyList::Group +get_group(buddy) + Gaim::BuddyList::Buddy buddy +CODE: + RETVAL = gaim_find_buddys_group(buddy); +OUTPUT: + RETVAL + +void +gaim_buddy_set_setting(buddy, key, value) + Gaim::BuddyList::Buddy buddy + const char *key + const char *value + +const char * +gaim_buddy_get_setting(buddy, key) + Gaim::BuddyList::Buddy buddy + const char *key