6542
|
1 #include "module.h"
|
|
2
|
|
3 MODULE = Gaim::BuddyList::Buddy PACKAGE = Gaim::BuddyList::Buddy PREFIX = gaim_buddy_
|
|
4 PROTOTYPES: ENABLE
|
|
5
|
|
6 Gaim::BuddyList::Buddy
|
|
7 new(account, name, alias)
|
|
8 Gaim::Account account
|
|
9 const char *name
|
|
10 const char *alias
|
|
11 CODE:
|
|
12 RETVAL = gaim_buddy_new(account, name, alias);
|
|
13 OUTPUT:
|
|
14 RETVAL
|
|
15
|
|
16 void
|
|
17 update_presence(buddy, presence)
|
|
18 Gaim::BuddyList::Buddy buddy
|
|
19 int presence
|
|
20 CODE:
|
|
21 gaim_blist_update_buddy_presence(buddy, presence);
|
|
22
|
|
23 void
|
|
24 rename(buddy, new_name)
|
|
25 Gaim::BuddyList::Buddy buddy
|
|
26 const char *new_name
|
|
27 CODE:
|
|
28 gaim_blist_rename_buddy(buddy, new_name);
|
|
29
|
|
30 void
|
|
31 set_alias(buddy, alias)
|
|
32 Gaim::BuddyList::Buddy buddy
|
|
33 const char *alias
|
|
34 CODE:
|
|
35 gaim_blist_alias_buddy(buddy, alias);
|
|
36
|
|
37 void
|
|
38 set_server_alias(buddy, alias)
|
|
39 Gaim::BuddyList::Buddy buddy
|
|
40 const char *alias
|
|
41 CODE:
|
|
42 gaim_blist_server_alias_buddy(buddy, alias);
|
|
43
|
|
44 const char *
|
|
45 get_name(buddy)
|
|
46 Gaim::BuddyList::Buddy buddy
|
|
47 CODE:
|
|
48 RETVAL = buddy->name;
|
|
49 OUTPUT:
|
|
50 RETVAL
|
|
51
|
|
52 Gaim::Account
|
|
53 get_account(buddy)
|
|
54 Gaim::BuddyList::Buddy buddy
|
|
55 CODE:
|
|
56 RETVAL = buddy->account;
|
|
57 OUTPUT:
|
|
58 RETVAL
|
|
59
|
|
60 const char *
|
|
61 get_alias_only(buddy)
|
|
62 Gaim::BuddyList::Buddy buddy
|
|
63 CODE:
|
9630
|
64 RETVAL = gaim_buddy_get_alias_only(buddy);
|
6542
|
65 OUTPUT:
|
|
66 RETVAL
|
|
67
|
|
68 const char *
|
|
69 get_alias(buddy)
|
|
70 Gaim::BuddyList::Buddy buddy
|
|
71 CODE:
|
9630
|
72 RETVAL = gaim_buddy_get_alias(buddy);
|
6542
|
73 OUTPUT:
|
|
74 RETVAL
|
|
75
|
|
76 Gaim::BuddyList::Group
|
|
77 get_group(buddy)
|
|
78 Gaim::BuddyList::Buddy buddy
|
|
79 CODE:
|
|
80 RETVAL = gaim_find_buddys_group(buddy);
|
|
81 OUTPUT:
|
|
82 RETVAL
|