Mercurial > pidgin
view plugins/perl/libgaimperl.c @ 13484:51c6405049a3
[gaim-migrate @ 15860]
This provides a way to get the root node of the buddy list, as
previously the only way was to grab gaimbuddylist->root directly; this
is a problem if you want to traverse the buddy list via, e.g., D-bus.
committer: Tailor Script <tailor@pidgin.im>
author | Ethan Blanton <elb@pidgin.im> |
---|---|
date | Fri, 10 Mar 2006 02:20:56 +0000 |
parents | a4229dd9c76a |
children |
line wrap: on
line source
#include <gmodule.h> void __attribute__ ((constructor)) my_init(void); void __attribute__ ((constructor)) my_init() { /* Very evil hack...puts perl.so's symbols in the global table * but does not create a circular dependancy because g_module_open * will only open the library once. */ g_module_open("perl.so", 0); }