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 set_idle_time(buddy, idle)
|
|
25 Gaim::BuddyList::Buddy buddy
|
|
26 int idle
|
|
27 CODE:
|
|
28 gaim_blist_update_buddy_idle(buddy, idle);
|
|
29
|
|
30 void
|
|
31 set_warning_percent(buddy, warning)
|
|
32 Gaim::BuddyList::Buddy buddy
|
|
33 int warning
|
|
34 CODE:
|
|
35 gaim_blist_update_buddy_evil(buddy, warning);
|
|
36
|
|
37 void
|
|
38 rename(buddy, new_name)
|
|
39 Gaim::BuddyList::Buddy buddy
|
|
40 const char *new_name
|
|
41 CODE:
|
|
42 gaim_blist_rename_buddy(buddy, new_name);
|
|
43
|
|
44 void
|
|
45 set_alias(buddy, alias)
|
|
46 Gaim::BuddyList::Buddy buddy
|
|
47 const char *alias
|
|
48 CODE:
|
|
49 gaim_blist_alias_buddy(buddy, alias);
|
|
50
|
|
51 void
|
|
52 set_server_alias(buddy, alias)
|
|
53 Gaim::BuddyList::Buddy buddy
|
|
54 const char *alias
|
|
55 CODE:
|
|
56 gaim_blist_server_alias_buddy(buddy, alias);
|
|
57
|
|
58 const char *
|
|
59 get_name(buddy)
|
|
60 Gaim::BuddyList::Buddy buddy
|
|
61 CODE:
|
|
62 RETVAL = buddy->name;
|
|
63 OUTPUT:
|
|
64 RETVAL
|
|
65
|
|
66 Gaim::Account
|
|
67 get_account(buddy)
|
|
68 Gaim::BuddyList::Buddy buddy
|
|
69 CODE:
|
|
70 RETVAL = buddy->account;
|
|
71 OUTPUT:
|
|
72 RETVAL
|
|
73
|
|
74 const char *
|
|
75 get_alias_only(buddy)
|
|
76 Gaim::BuddyList::Buddy buddy
|
|
77 CODE:
|
|
78 RETVAL = gaim_get_buddy_alias_only(buddy);
|
|
79 OUTPUT:
|
|
80 RETVAL
|
|
81
|
|
82 const char *
|
|
83 get_alias(buddy)
|
|
84 Gaim::BuddyList::Buddy buddy
|
|
85 CODE:
|
|
86 RETVAL = gaim_get_buddy_alias(buddy);
|
|
87 OUTPUT:
|
|
88 RETVAL
|
|
89
|
|
90 Gaim::BuddyList::Group
|
|
91 get_group(buddy)
|
|
92 Gaim::BuddyList::Buddy buddy
|
|
93 CODE:
|
|
94 RETVAL = gaim_find_buddys_group(buddy);
|
|
95 OUTPUT:
|
|
96 RETVAL
|
|
97
|
|
98 void
|
|
99 gaim_buddy_set_setting(buddy, key, value)
|
|
100 Gaim::BuddyList::Buddy buddy
|
|
101 const char *key
|
|
102 const char *value
|
|
103
|
|
104 const char *
|
|
105 gaim_buddy_get_setting(buddy, key)
|
|
106 Gaim::BuddyList::Buddy buddy
|
|
107 const char *key
|