Mercurial > pidgin
annotate plugins/perl/common/Account.xs @ 12387:1112a9ef2cc6
[gaim-migrate @ 14693]
Fix a leak. This compiles, but I'm now seeing all sorts of random segfaults, both with this code and prior to the change. Thus, I'm fairly sure this change isn't at fault.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Wed, 07 Dec 2005 09:16:25 +0000 |
parents | 6fd82071a7b8 |
children | d3476701107d |
rev | line source |
---|---|
6508 | 1 #include "module.h" |
2 | |
11290 | 3 MODULE = Gaim::Account PACKAGE = Gaim::Account PREFIX = gaim_account_ |
4 PROTOTYPES: ENABLE | |
11118 | 5 |
6 Gaim::Presence | |
7 gaim_account_get_presence(account) | |
8 Gaim::Account account | |
9 | |
10 Gaim::Account | |
12364 | 11 gaim_account_new(class, username, protocol_id) |
11118 | 12 const char * username |
13 const char * protocol_id | |
12364 | 14 C_ARGS: |
15 username, protocol_id | |
11118 | 16 |
17 void | |
18 gaim_account_destroy(account) | |
19 Gaim::Account account | |
20 | |
21 void | |
10437 | 22 gaim_account_connect(account) |
23 Gaim::Account account | |
24 | |
11118 | 25 void |
26 gaim_account_register(account) | |
27 Gaim::Account account | |
28 | |
29 void | |
6508 | 30 gaim_account_disconnect(account) |
31 Gaim::Account account | |
32 | |
11118 | 33 void |
34 gaim_account_request_change_password(account) | |
35 Gaim::Account account | |
36 | |
37 void | |
38 gaim_account_request_change_user_info(account) | |
39 Gaim::Account account | |
40 | |
41 void | |
6508 | 42 gaim_account_set_username(account, username) |
43 Gaim::Account account | |
11118 | 44 const char * username |
6508 | 45 |
11118 | 46 void |
6508 | 47 gaim_account_set_password(account, password) |
48 Gaim::Account account | |
11118 | 49 const char * password |
6508 | 50 |
11118 | 51 void |
6508 | 52 gaim_account_set_alias(account, alias) |
53 Gaim::Account account | |
11118 | 54 const char * alias |
6508 | 55 |
11118 | 56 void |
6508 | 57 gaim_account_set_user_info(account, user_info) |
58 Gaim::Account account | |
59 const char *user_info | |
60 | |
11118 | 61 void |
62 gaim_account_set_buddy_icon(account, icon) | |
6508 | 63 Gaim::Account account |
11118 | 64 const char *icon |
6508 | 65 |
11118 | 66 void |
67 gaim_account_set_connection(account, gc) | |
6508 | 68 Gaim::Account account |
11118 | 69 Gaim::Connection gc |
6508 | 70 |
11118 | 71 void |
6508 | 72 gaim_account_set_remember_password(account, value) |
73 Gaim::Account account | |
74 gboolean value | |
75 | |
11118 | 76 void |
6508 | 77 gaim_account_set_check_mail(account, value) |
78 Gaim::Account account | |
79 gboolean value | |
80 | |
11118 | 81 void |
82 gaim_account_set_proxy_info(account, info) | |
83 Gaim::Account account | |
84 Gaim::ProxyInfo info | |
85 | |
10504 | 86 void |
11118 | 87 gaim_account_set_status(account, status_id, active) |
88 Gaim::Account account | |
89 const char *status_id | |
90 gboolean active | |
91 CODE: | |
92 gaim_account_set_status(account, status_id, active); | |
93 | |
94 | |
95 void | |
96 gaim_account_set_status_types(account, status_types) | |
10504 | 97 Gaim::Account account |
11118 | 98 SV * status_types |
99 PREINIT: | |
100 GList *t_GL; | |
101 int i, t_len; | |
102 PPCODE: | |
103 t_GL = NULL; | |
104 t_len = av_len((AV *)SvRV(status_types)); | |
10504 | 105 |
11118 | 106 for (i = 0; i < t_len; i++) { |
107 STRLEN t_sl; | |
108 t_GL = g_list_append(t_GL, SvPV(*av_fetch((AV *)SvRV(status_types), i, 0), t_sl)); | |
109 } | |
110 gaim_account_set_status_types(account, t_GL); | |
111 | |
112 | |
113 void | |
114 gaim_account_clear_settings(account) | |
115 Gaim::Account account | |
116 | |
117 void | |
118 gaim_account_set_int(account, name, value) | |
119 Gaim::Account account | |
120 const char *name | |
121 int value | |
122 | |
123 gboolean | |
6508 | 124 gaim_account_is_connected(account) |
125 Gaim::Account account | |
126 | |
127 const char * | |
128 gaim_account_get_username(account) | |
129 Gaim::Account account | |
130 | |
131 const char * | |
132 gaim_account_get_password(account) | |
133 Gaim::Account account | |
134 | |
135 const char * | |
136 gaim_account_get_alias(account) | |
137 Gaim::Account account | |
138 | |
139 const char * | |
140 gaim_account_get_user_info(account) | |
141 Gaim::Account account | |
142 | |
143 const char * | |
144 gaim_account_get_buddy_icon(account) | |
145 Gaim::Account account | |
146 | |
147 const char * | |
148 gaim_account_get_protocol_id(account) | |
149 Gaim::Account account | |
150 | |
11118 | 151 const char * |
152 gaim_account_get_protocol_name(account) | |
153 Gaim::Account account | |
154 | |
6508 | 155 Gaim::Connection |
156 gaim_account_get_connection(account) | |
157 Gaim::Account account | |
158 | |
11118 | 159 gboolean |
6508 | 160 gaim_account_get_remember_password(account) |
161 Gaim::Account account | |
162 | |
11118 | 163 gboolean |
6508 | 164 gaim_account_get_check_mail(account) |
165 Gaim::Account account | |
166 | |
11118 | 167 Gaim::ProxyInfo |
168 gaim_account_get_proxy_info(account) | |
169 Gaim::Account account | |
170 | |
171 Gaim::Status | |
172 gaim_account_get_active_status(account) | |
173 Gaim::Account account | |
174 | |
175 void | |
176 gaim_account_get_status_types(account) | |
10504 | 177 Gaim::Account account |
11118 | 178 PREINIT: |
11130 | 179 const GList *l; |
11118 | 180 PPCODE: |
181 for (l = gaim_account_get_status_types(account); l != NULL; l = l->next) { | |
182 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::Status::Type"))); | |
183 } | |
184 | |
185 Gaim::Log | |
186 gaim_account_get_log(account) | |
187 Gaim::Account account | |
188 | |
189 void | |
190 gaim_account_destroy_log(account) | |
191 Gaim::Account account | |
192 | |
11643 | 193 void |
194 gaim_account_add_buddies(account, list) | |
195 Gaim::Account account | |
196 SV * list | |
197 PREINIT: | |
198 GList *t_GL; | |
199 int i, t_len; | |
200 PPCODE: | |
201 t_GL = NULL; | |
202 t_len = av_len((AV *)SvRV(list)); | |
203 | |
204 for (i = 0; i < t_len; i++) { | |
205 STRLEN t_sl; | |
206 t_GL = g_list_append(t_GL, SvPV(*av_fetch((AV *)SvRV(list), i, 0), t_sl)); | |
207 } | |
208 gaim_account_add_buddies(account, t_GL); | |
209 | |
210 void | |
211 gaim_account_add_buddy(account, buddy) | |
212 Gaim::Account account | |
213 Gaim::BuddyList::Buddy buddy | |
214 | |
215 void | |
216 gaim_account_change_password(account, a, b) | |
217 Gaim::Account account | |
218 const char * a | |
219 const char * b | |
220 | |
221 void | |
222 gaim_account_remove_buddies(account, A, B) | |
223 Gaim::Account account | |
224 SV * A | |
225 SV * B | |
226 PREINIT: | |
227 GList *t_GL1, *t_GL2; | |
228 int i, t_len; | |
229 PPCODE: | |
230 t_GL1 = NULL; | |
231 t_len = av_len((AV *)SvRV(A)); | |
232 | |
233 for (i = 0; i < t_len; i++) { | |
234 STRLEN t_sl; | |
235 t_GL1 = g_list_append(t_GL1, SvPV(*av_fetch((AV *)SvRV(A), i, 0), t_sl)); | |
236 } | |
237 | |
238 t_GL2 = NULL; | |
239 t_len = av_len((AV *)SvRV(B)); | |
240 | |
241 for (i = 0; i < t_len; i++) { | |
242 STRLEN t_sl; | |
243 t_GL2 = g_list_append(t_GL2, SvPV(*av_fetch((AV *)SvRV(B), i, 0), t_sl)); | |
244 } | |
245 gaim_account_remove_buddies(account, t_GL1, t_GL2); | |
246 | |
247 void | |
248 gaim_account_remove_buddy(account, buddy, group) | |
249 Gaim::Account account | |
250 Gaim::BuddyList::Buddy buddy | |
251 Gaim::BuddyList::Group group | |
252 | |
253 void | |
254 gaim_account_remove_group(account, group) | |
255 Gaim::Account account | |
256 Gaim::BuddyList::Group group | |
257 | |
11118 | 258 |
10504 | 259 |
6508 | 260 |
261 MODULE = Gaim::Account PACKAGE = Gaim::Accounts PREFIX = gaim_accounts_ | |
11118 | 262 PROTOTYPES: ENABLE |
6508 | 263 |
11118 | 264 void |
6508 | 265 gaim_accounts_add(account) |
266 Gaim::Account account | |
267 | |
11118 | 268 void |
6508 | 269 gaim_accounts_remove(account) |
270 Gaim::Account account | |
271 | |
11118 | 272 void |
273 gaim_accounts_delete(account) | |
274 Gaim::Account account | |
6595
782eef79cf3c
[gaim-migrate @ 7119]
Christian Hammond <chipx86@chipx86.com>
parents:
6551
diff
changeset
|
275 |
11118 | 276 void |
277 gaim_accounts_reorder(account, new_index) | |
278 Gaim::Account account | |
279 size_t new_index | |
6508 | 280 |
281 void | |
11118 | 282 gaim_accounts_get_all() |
283 PREINIT: | |
284 GList *l; | |
285 PPCODE: | |
286 for (l = gaim_accounts_get_all(); l != NULL; l = l->next) { | |
287 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::Account"))); | |
288 } | |
289 | |
290 void | |
291 gaim_accounts_get_all_active() | |
6508 | 292 PREINIT: |
293 GList *l; | |
294 PPCODE: | |
11118 | 295 for (l = gaim_accounts_get_all_active(); l != NULL; l = l->next) { |
6508 | 296 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::Account"))); |
11118 | 297 } |
6508 | 298 |
11118 | 299 Gaim::Account |
300 gaim_accounts_find(name, protocol) | |
301 const char * name | |
302 const char * protocol | |
303 | |
304 void | |
305 gaim_accounts_set_ui_ops(ops) | |
306 Gaim::Account::UiOps ops | |
307 | |
308 Gaim::Account::UiOps | |
309 gaim_accounts_get_ui_ops() | |
310 | |
311 void | |
312 gaim_accounts_get_handle() | |
313 | |
314 void | |
315 gaim_accounts_init() | |
316 | |
317 void | |
318 gaim_accounts_uninit() |