diff plugins/perl/perl-handlers.h @ 11170:0e9e2b923d09

[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. committer: Tailor Script <tailor@pidgin.im>
author John H. Kelm <johnkelm@gmail.com>
date Fri, 29 Jul 2005 13:38:00 +0000
parents 4315bb5f427b
children e1603fd610fa
line wrap: on
line diff
--- a/plugins/perl/perl-handlers.h	Fri Jul 29 05:05:52 2005 +0000
+++ b/plugins/perl/perl-handlers.h	Fri Jul 29 13:38:00 2005 +0000
@@ -4,6 +4,13 @@
 #include "plugin.h"
 #include "prefs.h"
 #include "pluginpref.h"
+#include "gtkplugin.h"
+#include "gtkutils.h"
+
+/* TODO: Find a better way to access the perl names from the plugin prober	*/
+/* and store them for gaim_perl_plugin_action_* functions.			*/
+char * gaim_perl_plugin_action_callback_sub;
+char * gaim_perl_plugin_action_label;
 
 typedef struct
 {
@@ -24,9 +31,15 @@
 
 } GaimPerlSignalHandler;
 
-GaimPluginUiInfo *gaim_perl_plugin_pref(char * frame_cb);
+void gaim_perl_plugin_action_cb(GaimPluginAction * gpa);
+GList *gaim_perl_plugin_action(GaimPlugin *plugin, gpointer context); 
+
+GaimPluginUiInfo *gaim_perl_plugin_pref(const char * frame_cb);
 GaimPluginPrefFrame *gaim_perl_get_plugin_frame(GaimPlugin *plugin);
 
+GaimGtkPluginUiInfo *gaim_perl_gtk_plugin_pref(const char * frame_cb);
+GtkWidget *gaim_perl_gtk_get_plugin_frame(GaimPlugin *plugin);
+
 void gaim_perl_timeout_add(GaimPlugin *plugin, int seconds, SV *callback,
 						   SV *data);
 void gaim_perl_timeout_clear_for_plugin(GaimPlugin *plugin);