Mercurial > pidgin.yaz
annotate libgaim/plugins/perl/perl-handlers.h @ 14372:d5c22258df09
[gaim-migrate @ 17078]
Reenable the perl build on non-Windows. I'm looking at making a gtk perl
plugin to use the gtk stuff, we'll see if I succeed. I'm leaving the gtk stuff
in here but ifdef:d out for now. I'll clean it up if I get the gtk perl plugin
working.
committer: Tailor Script <tailor@pidgin.im>
author | Etan Reisner <pidgin@unreliablesource.net> |
---|---|
date | Tue, 29 Aug 2006 04:15:29 +0000 |
parents | 60b1bc8dbf37 |
children |
rev | line source |
---|---|
14192 | 1 #ifndef _GAIM_PERL_HANDLERS_H_ |
2 #define _GAIM_PERL_HANDLERS_H_ | |
3 | |
4 #include "cmds.h" | |
5 #include "plugin.h" | |
6 #include "prefs.h" | |
7 #include "pluginpref.h" | |
14372
d5c22258df09
[gaim-migrate @ 17078]
Etan Reisner <pidgin@unreliablesource.net>
parents:
14192
diff
changeset
|
8 #ifdef GAIM_GTKPERL |
14192 | 9 #include "gtkplugin.h" |
10 #include "gtkutils.h" | |
14372
d5c22258df09
[gaim-migrate @ 17078]
Etan Reisner <pidgin@unreliablesource.net>
parents:
14192
diff
changeset
|
11 #endif |
14192 | 12 |
13 typedef struct | |
14 { | |
15 GaimCmdId id; | |
16 SV *callback; | |
17 SV *data; | |
18 char *prpl_id; | |
19 char *cmd; | |
20 GaimPlugin *plugin; | |
21 } GaimPerlCmdHandler; | |
22 | |
23 typedef struct | |
24 { | |
25 SV *callback; | |
26 SV *data; | |
27 GaimPlugin *plugin; | |
28 int iotag; | |
29 | |
30 } GaimPerlTimeoutHandler; | |
31 | |
32 typedef struct | |
33 { | |
34 char *signal; | |
35 SV *callback; | |
36 SV *data; | |
37 void *instance; | |
38 GaimPlugin *plugin; | |
39 | |
40 } GaimPerlSignalHandler; | |
41 | |
42 void gaim_perl_plugin_action_cb(GaimPluginAction * gpa); | |
43 GList *gaim_perl_plugin_actions(GaimPlugin *plugin, gpointer context); | |
44 | |
45 GaimPluginPrefFrame *gaim_perl_get_plugin_frame(GaimPlugin *plugin); | |
46 | |
14372
d5c22258df09
[gaim-migrate @ 17078]
Etan Reisner <pidgin@unreliablesource.net>
parents:
14192
diff
changeset
|
47 #ifdef GAIM_GTKPERL |
14192 | 48 GtkWidget *gaim_perl_gtk_get_plugin_frame(GaimPlugin *plugin); |
14372
d5c22258df09
[gaim-migrate @ 17078]
Etan Reisner <pidgin@unreliablesource.net>
parents:
14192
diff
changeset
|
49 #endif |
14192 | 50 |
51 void gaim_perl_timeout_add(GaimPlugin *plugin, int seconds, SV *callback, | |
52 SV *data); | |
53 void gaim_perl_timeout_clear_for_plugin(GaimPlugin *plugin); | |
54 void gaim_perl_timeout_clear(void); | |
55 | |
56 void gaim_perl_signal_connect(GaimPlugin *plugin, void *instance, | |
57 const char *signal, SV *callback, | |
58 SV *data, int priority); | |
59 void gaim_perl_signal_disconnect(GaimPlugin *plugin, void *instance, | |
60 const char *signal); | |
61 void gaim_perl_signal_clear_for_plugin(GaimPlugin *plugin); | |
62 void gaim_perl_signal_clear(void); | |
63 | |
64 GaimCmdId gaim_perl_cmd_register(GaimPlugin *plugin, const gchar *cmd, | |
65 const gchar *args, GaimCmdPriority priority, | |
66 GaimCmdFlag flag, const gchar *prpl_id, | |
67 SV *callback, const gchar *helpstr, SV *data); | |
68 void gaim_perl_cmd_unregister(GaimCmdId id); | |
69 void gaim_perl_cmd_clear_for_plugin(GaimPlugin *plugin); | |
70 | |
71 #endif /* _GAIM_PERL_HANDLERS_H_ */ |