Mercurial > pidgin
annotate plugins/perl/perl-handlers.h @ 12003:13da3f228bbb
[gaim-migrate @ 14296]
Look up the real name appropriately on win32
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Mon, 07 Nov 2005 20:19:32 +0000 |
parents | 0e9e2b923d09 |
children | e1603fd610fa |
rev | line source |
---|---|
6520 | 1 #ifndef _GAIM_PERL_HANDLERS_H_ |
2 #define _GAIM_PERL_HANDLERS_H_ | |
3 | |
4 #include "plugin.h" | |
11123 | 5 #include "prefs.h" |
6 #include "pluginpref.h" | |
11170 | 7 #include "gtkplugin.h" |
8 #include "gtkutils.h" | |
9 | |
10 /* TODO: Find a better way to access the perl names from the plugin prober */ | |
11 /* and store them for gaim_perl_plugin_action_* functions. */ | |
12 char * gaim_perl_plugin_action_callback_sub; | |
13 char * gaim_perl_plugin_action_label; | |
6520 | 14 |
15 typedef struct | |
16 { | |
6568
33486b749aa9
[gaim-migrate @ 7090]
Christian Hammond <chipx86@chipx86.com>
parents:
6567
diff
changeset
|
17 SV *callback; |
33486b749aa9
[gaim-migrate @ 7090]
Christian Hammond <chipx86@chipx86.com>
parents:
6567
diff
changeset
|
18 SV *data; |
6520 | 19 GaimPlugin *plugin; |
20 int iotag; | |
21 | |
22 } GaimPerlTimeoutHandler; | |
23 | |
6549
ed796f756237
[gaim-migrate @ 7071]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
24 typedef struct |
ed796f756237
[gaim-migrate @ 7071]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
25 { |
ed796f756237
[gaim-migrate @ 7071]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
26 char *signal; |
6567
6e25e1e08ffb
[gaim-migrate @ 7089]
Christian Hammond <chipx86@chipx86.com>
parents:
6550
diff
changeset
|
27 SV *callback; |
6e25e1e08ffb
[gaim-migrate @ 7089]
Christian Hammond <chipx86@chipx86.com>
parents:
6550
diff
changeset
|
28 SV *data; |
6549
ed796f756237
[gaim-migrate @ 7071]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
29 void *instance; |
ed796f756237
[gaim-migrate @ 7071]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
30 GaimPlugin *plugin; |
ed796f756237
[gaim-migrate @ 7071]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
31 |
ed796f756237
[gaim-migrate @ 7071]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
32 } GaimPerlSignalHandler; |
ed796f756237
[gaim-migrate @ 7071]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
33 |
11170 | 34 void gaim_perl_plugin_action_cb(GaimPluginAction * gpa); |
35 GList *gaim_perl_plugin_action(GaimPlugin *plugin, gpointer context); | |
36 | |
37 GaimPluginUiInfo *gaim_perl_plugin_pref(const char * frame_cb); | |
11123 | 38 GaimPluginPrefFrame *gaim_perl_get_plugin_frame(GaimPlugin *plugin); |
6549
ed796f756237
[gaim-migrate @ 7071]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
39 |
11170 | 40 GaimGtkPluginUiInfo *gaim_perl_gtk_plugin_pref(const char * frame_cb); |
41 GtkWidget *gaim_perl_gtk_get_plugin_frame(GaimPlugin *plugin); | |
42 | |
6568
33486b749aa9
[gaim-migrate @ 7090]
Christian Hammond <chipx86@chipx86.com>
parents:
6567
diff
changeset
|
43 void gaim_perl_timeout_add(GaimPlugin *plugin, int seconds, SV *callback, |
33486b749aa9
[gaim-migrate @ 7090]
Christian Hammond <chipx86@chipx86.com>
parents:
6567
diff
changeset
|
44 SV *data); |
6520 | 45 void gaim_perl_timeout_clear_for_plugin(GaimPlugin *plugin); |
46 void gaim_perl_timeout_clear(void); | |
47 | |
6550
f1736493aebb
[gaim-migrate @ 7072]
Christian Hammond <chipx86@chipx86.com>
parents:
6549
diff
changeset
|
48 void gaim_perl_signal_connect(GaimPlugin *plugin, void *instance, |
6567
6e25e1e08ffb
[gaim-migrate @ 7089]
Christian Hammond <chipx86@chipx86.com>
parents:
6550
diff
changeset
|
49 const char *signal, SV *callback, |
6e25e1e08ffb
[gaim-migrate @ 7089]
Christian Hammond <chipx86@chipx86.com>
parents:
6550
diff
changeset
|
50 SV *data); |
6550
f1736493aebb
[gaim-migrate @ 7072]
Christian Hammond <chipx86@chipx86.com>
parents:
6549
diff
changeset
|
51 void gaim_perl_signal_disconnect(GaimPlugin *plugin, void *instance, |
6567
6e25e1e08ffb
[gaim-migrate @ 7089]
Christian Hammond <chipx86@chipx86.com>
parents:
6550
diff
changeset
|
52 const char *signal); |
6549
ed796f756237
[gaim-migrate @ 7071]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
53 void gaim_perl_signal_clear_for_plugin(GaimPlugin *plugin); |
ed796f756237
[gaim-migrate @ 7071]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
54 void gaim_perl_signal_clear(void); |
ed796f756237
[gaim-migrate @ 7071]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
55 |
6520 | 56 #endif /* _GAIM_PERL_HANDLERS_H_ */ |