Mercurial > pidgin
comparison plugins/perl/libgaimperl.c @ 11120:35f2e6411966
[gaim-migrate @ 13176]
The trick for getting the Perl plugin to load.
committer: Tailor Script <tailor@pidgin.im>
author | John H. Kelm <johnkelm@gmail.com> |
---|---|
date | Mon, 18 Jul 2005 13:49:49 +0000 |
parents | |
children | f8cd06753755 |
comparison
equal
deleted
inserted
replaced
11119:db8682734dab | 11120:35f2e6411966 |
---|---|
1 void __attribute__ ((constructor)) my_init(void) { | |
2 /* Very evil hack...puts perl.so's symbols in the global table */ | |
3 /* but does not create a circular dependancy because g_module_open */ | |
4 /* will only open the library once. */ | |
5 g_module_open("perl.so", 0); | |
6 } |