comparison libpurple/plugins/perl/common/Status.xs @ 32819:2c6510167895 default tip

propagate from branch 'im.pidgin.pidgin.2.x.y' (head 3315c5dfbd0ad16511bdcf865e5b07c02d07df24) to branch 'im.pidgin.pidgin' (head cbd1eda6bcbf0565ae7766396bb8f6f419cb6a9a)
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sat, 02 Jun 2012 02:30:49 +0000
parents 09449ccf8ada
children
comparison
equal deleted inserted replaced
32818:01ff09d4a463 32819:2c6510167895
72 72
73 for (civ = primitive_const_iv + sizeof(primitive_const_iv) / sizeof(primitive_const_iv[0]); civ-- > primitive_const_iv; ) 73 for (civ = primitive_const_iv + sizeof(primitive_const_iv) / sizeof(primitive_const_iv[0]); civ-- > primitive_const_iv; )
74 newCONSTSUB(primitive_stash, (char *)civ->name, newSViv(civ->iv)); 74 newCONSTSUB(primitive_stash, (char *)civ->name, newSViv(civ->iv));
75 } 75 }
76 76
77 void
78 purple_presence_add_list(presence, source_list)
79 Purple::Presence presence
80 SV *source_list
81 PREINIT:
82 GList *t_GL;
83 int i, t_len;
84 PPCODE:
85 t_GL = NULL;
86 t_len = av_len((AV *)SvRV(source_list));
87
88 for (i = 0; i <= t_len; i++) {
89 t_GL = g_list_append(t_GL, SvPVutf8_nolen(*av_fetch((AV *)SvRV(source_list), i, 0)));
90 }
91 purple_presence_add_list(presence, t_GL);
92 g_list_free(t_GL);
93
94 void
95 purple_presence_add_status(presence, status)
96 Purple::Presence presence
97 Purple::Status status
98
99 gint 77 gint
100 purple_presence_compare(presence1, presence2) 78 purple_presence_compare(presence1, presence2)
101 Purple::Presence presence1 79 Purple::Presence presence1
102 Purple::Presence presence2 80 Purple::Presence presence2
103 81
327 void 305 void
328 purple_status_set_active(status, active) 306 purple_status_set_active(status, active)
329 Purple::Status status 307 Purple::Status status
330 gboolean active 308 gboolean active
331 309
332 void
333 purple_status_set_attr_boolean(status, id, value)
334 Purple::Status status
335 const char *id
336 gboolean value
337
338 void
339 purple_status_set_attr_string(status, id, value)
340 Purple::Status status
341 const char *id
342 const char *value
343
344 MODULE = Purple::Status PACKAGE = Purple::StatusType PREFIX = purple_status_type_ 310 MODULE = Purple::Status PACKAGE = Purple::StatusType PREFIX = purple_status_type_
345 PROTOTYPES: ENABLE 311 PROTOTYPES: ENABLE
346
347 void
348 purple_status_type_add_attr(status_type, id, name, value)
349 Purple::StatusType status_type
350 const char *id
351 const char *name
352 Purple::Value value
353 312
354 void 313 void
355 purple_status_type_destroy(status_type) 314 purple_status_type_destroy(status_type)
356 Purple::StatusType status_type 315 Purple::StatusType status_type
357 316
395 354
396 const char * 355 const char *
397 purple_status_type_get_name(status_type) 356 purple_status_type_get_name(status_type)
398 Purple::StatusType status_type 357 Purple::StatusType status_type
399 358
400 const char *
401 purple_status_type_get_primary_attr(status_type)
402 Purple::StatusType status_type
403
404 Purple::StatusPrimitive 359 Purple::StatusPrimitive
405 purple_status_type_get_primitive(status_type) 360 purple_status_type_get_primitive(status_type)
406 Purple::StatusType status_type 361 Purple::StatusType status_type
407 362
408 gboolean 363 gboolean
438 const char *id 393 const char *id
439 const char *name 394 const char *name
440 gboolean saveable 395 gboolean saveable
441 gboolean user_settable 396 gboolean user_settable
442 gboolean independent 397 gboolean independent
443
444 void
445 purple_status_type_set_primary_attr(status_type, attr_id)
446 Purple::StatusType status_type
447 const char *attr_id