plugins/perl/libgaimperl.c

Fri, 29 Jul 2005 13:38:00 +0000

author
John H. Kelm <johnkelm@gmail.com>
date
Fri, 29 Jul 2005 13:38:00 +0000
changeset 11170
d8941580d87f
parent 11120
beeb901ca8a9
child 11862
5d4bc6d54688
permissions
-rw-r--r--

[gaim-migrate @ 13271]
Fixed some bugs and made some additions to the XSUBS. Added some of my test scripts which are incomplete, but mostly functional. GaimPluginPrefs and GaimGtkPluginPrefs--using evals to do the Gtk widgets with gtk2-perl--work. Plugin actions can now be added, but only one for now.

11120
beeb901ca8a9 [gaim-migrate @ 13176]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
1 void __attribute__ ((constructor)) my_init(void) {
beeb901ca8a9 [gaim-migrate @ 13176]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
2 /* Very evil hack...puts perl.so's symbols in the global table */
beeb901ca8a9 [gaim-migrate @ 13176]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
3 /* but does not create a circular dependancy because g_module_open */
beeb901ca8a9 [gaim-migrate @ 13176]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
4 /* will only open the library once. */
beeb901ca8a9 [gaim-migrate @ 13176]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
5 g_module_open("perl.so", 0);
beeb901ca8a9 [gaim-migrate @ 13176]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
6 }

mercurial