comparison plugins/perl/common/Account.xs @ 11643:eb14bbcf7249

[gaim-migrate @ 13920] sf patch #1293063, from John Bailey Move and rename some functions from server.c to the account API. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 12 Oct 2005 02:47:31 +0000
parents 519dc2186438
children 6fd82071a7b8
comparison
equal deleted inserted replaced
11642:58bc500cf226 11643:eb14bbcf7249
186 186
187 void 187 void
188 gaim_account_destroy_log(account) 188 gaim_account_destroy_log(account)
189 Gaim::Account account 189 Gaim::Account account
190 190
191 void
192 gaim_account_add_buddies(account, list)
193 Gaim::Account account
194 SV * list
195 PREINIT:
196 GList *t_GL;
197 int i, t_len;
198 PPCODE:
199 t_GL = NULL;
200 t_len = av_len((AV *)SvRV(list));
201
202 for (i = 0; i < t_len; i++) {
203 STRLEN t_sl;
204 t_GL = g_list_append(t_GL, SvPV(*av_fetch((AV *)SvRV(list), i, 0), t_sl));
205 }
206 gaim_account_add_buddies(account, t_GL);
207
208 void
209 gaim_account_add_buddy(account, buddy)
210 Gaim::Account account
211 Gaim::BuddyList::Buddy buddy
212
213 void
214 gaim_account_change_password(account, a, b)
215 Gaim::Account account
216 const char * a
217 const char * b
218
219 void
220 gaim_account_remove_buddies(account, A, B)
221 Gaim::Account account
222 SV * A
223 SV * B
224 PREINIT:
225 GList *t_GL1, *t_GL2;
226 int i, t_len;
227 PPCODE:
228 t_GL1 = NULL;
229 t_len = av_len((AV *)SvRV(A));
230
231 for (i = 0; i < t_len; i++) {
232 STRLEN t_sl;
233 t_GL1 = g_list_append(t_GL1, SvPV(*av_fetch((AV *)SvRV(A), i, 0), t_sl));
234 }
235
236 t_GL2 = NULL;
237 t_len = av_len((AV *)SvRV(B));
238
239 for (i = 0; i < t_len; i++) {
240 STRLEN t_sl;
241 t_GL2 = g_list_append(t_GL2, SvPV(*av_fetch((AV *)SvRV(B), i, 0), t_sl));
242 }
243 gaim_account_remove_buddies(account, t_GL1, t_GL2);
244
245 void
246 gaim_account_remove_buddy(account, buddy, group)
247 Gaim::Account account
248 Gaim::BuddyList::Buddy buddy
249 Gaim::BuddyList::Group group
250
251 void
252 gaim_account_remove_group(account, group)
253 Gaim::Account account
254 Gaim::BuddyList::Group group
255
191 256
192 257
193 258
194 MODULE = Gaim::Account PACKAGE = Gaim::Accounts PREFIX = gaim_accounts_ 259 MODULE = Gaim::Account PACKAGE = Gaim::Accounts PREFIX = gaim_accounts_
195 PROTOTYPES: ENABLE 260 PROTOTYPES: ENABLE