Sun, 06 Nov 2011 02:05:29 +0000
Fix Perl compile. This probably doesn't work. I just copy and pasted
things. Someone should really check this stuff.
| 15884 | 1 | #ifndef _PURPLE_PERL_HANDLERS_H_ |
| 2 | #define _PURPLE_PERL_HANDLERS_H_ | |
| 6520 | 3 | |
| 12882 | 4 | #include "cmds.h" |
| 6520 | 5 | #include "plugin.h" |
| 11123 | 6 | #include "prefs.h" |
| 7 | #include "pluginpref.h" | |
| 15884 | 8 | #ifdef PURPLE_GTKPERL |
| 11170 | 9 | #include "gtkplugin.h" |
| 10 | #include "gtkutils.h" | |
| 14434 | 11 | #endif |
| 11170 | 12 | |
| 6520 | 13 | typedef struct |
| 14 | { | |
| 15884 | 15 | PurpleCmdId id; |
| 12882 | 16 | SV *callback; |
| 17 | SV *data; | |
|
23930
c1c3d7cab338
Add support to the Perl plugin loader for listing for pref changes.
Daniel Atallah <datallah@pidgin.im>
parents:
22845
diff
changeset
|
18 | gchar *prpl_id; |
|
c1c3d7cab338
Add support to the Perl plugin loader for listing for pref changes.
Daniel Atallah <datallah@pidgin.im>
parents:
22845
diff
changeset
|
19 | gchar *cmd; |
| 15884 | 20 | PurplePlugin *plugin; |
| 21 | } PurplePerlCmdHandler; | |
| 12882 | 22 | |
| 23 | typedef struct | |
| 24 | { | |
|
6568
5c8c70b63dc3
[gaim-migrate @ 7090]
Christian Hammond <chipx86@chipx86.com>
parents:
6567
diff
changeset
|
25 | SV *callback; |
|
5c8c70b63dc3
[gaim-migrate @ 7090]
Christian Hammond <chipx86@chipx86.com>
parents:
6567
diff
changeset
|
26 | SV *data; |
| 15884 | 27 | PurplePlugin *plugin; |
| 6520 | 28 | int iotag; |
| 29 | ||
| 15884 | 30 | } PurplePerlTimeoutHandler; |
| 6520 | 31 | |
|
6549
8e6ba2a45698
[gaim-migrate @ 7071]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
32 | typedef struct |
|
8e6ba2a45698
[gaim-migrate @ 7071]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
33 | { |
|
23930
c1c3d7cab338
Add support to the Perl plugin loader for listing for pref changes.
Daniel Atallah <datallah@pidgin.im>
parents:
22845
diff
changeset
|
34 | gchar *signal; |
|
6567
761a1feb5561
[gaim-migrate @ 7089]
Christian Hammond <chipx86@chipx86.com>
parents:
6550
diff
changeset
|
35 | SV *callback; |
|
761a1feb5561
[gaim-migrate @ 7089]
Christian Hammond <chipx86@chipx86.com>
parents:
6550
diff
changeset
|
36 | SV *data; |
|
6549
8e6ba2a45698
[gaim-migrate @ 7071]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
37 | void *instance; |
| 15884 | 38 | PurplePlugin *plugin; |
|
6549
8e6ba2a45698
[gaim-migrate @ 7071]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
39 | |
| 15884 | 40 | } PurplePerlSignalHandler; |
|
6549
8e6ba2a45698
[gaim-migrate @ 7071]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
41 | |
|
23930
c1c3d7cab338
Add support to the Perl plugin loader for listing for pref changes.
Daniel Atallah <datallah@pidgin.im>
parents:
22845
diff
changeset
|
42 | typedef struct |
|
c1c3d7cab338
Add support to the Perl plugin loader for listing for pref changes.
Daniel Atallah <datallah@pidgin.im>
parents:
22845
diff
changeset
|
43 | { |
|
c1c3d7cab338
Add support to the Perl plugin loader for listing for pref changes.
Daniel Atallah <datallah@pidgin.im>
parents:
22845
diff
changeset
|
44 | SV *callback; |
|
c1c3d7cab338
Add support to the Perl plugin loader for listing for pref changes.
Daniel Atallah <datallah@pidgin.im>
parents:
22845
diff
changeset
|
45 | SV *data; |
|
c1c3d7cab338
Add support to the Perl plugin loader for listing for pref changes.
Daniel Atallah <datallah@pidgin.im>
parents:
22845
diff
changeset
|
46 | PurplePlugin *plugin; |
|
c1c3d7cab338
Add support to the Perl plugin loader for listing for pref changes.
Daniel Atallah <datallah@pidgin.im>
parents:
22845
diff
changeset
|
47 | int iotag; |
|
c1c3d7cab338
Add support to the Perl plugin loader for listing for pref changes.
Daniel Atallah <datallah@pidgin.im>
parents:
22845
diff
changeset
|
48 | |
|
c1c3d7cab338
Add support to the Perl plugin loader for listing for pref changes.
Daniel Atallah <datallah@pidgin.im>
parents:
22845
diff
changeset
|
49 | } PurplePerlPrefsHandler; |
|
c1c3d7cab338
Add support to the Perl plugin loader for listing for pref changes.
Daniel Atallah <datallah@pidgin.im>
parents:
22845
diff
changeset
|
50 | |
|
34040
f5417957a1bc
Fix Perl compile. This probably doesn't work. I just copy and pasted
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
23930
diff
changeset
|
51 | typedef struct |
|
f5417957a1bc
Fix Perl compile. This probably doesn't work. I just copy and pasted
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
23930
diff
changeset
|
52 | { |
|
f5417957a1bc
Fix Perl compile. This probably doesn't work. I just copy and pasted
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
23930
diff
changeset
|
53 | SV *callback; |
|
f5417957a1bc
Fix Perl compile. This probably doesn't work. I just copy and pasted
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
23930
diff
changeset
|
54 | SV *data; |
|
f5417957a1bc
Fix Perl compile. This probably doesn't work. I just copy and pasted
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
23930
diff
changeset
|
55 | |
|
f5417957a1bc
Fix Perl compile. This probably doesn't work. I just copy and pasted
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
23930
diff
changeset
|
56 | } PurplePerlAccountPasswordHandler; |
|
f5417957a1bc
Fix Perl compile. This probably doesn't work. I just copy and pasted
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
23930
diff
changeset
|
57 | |
| 15884 | 58 | void purple_perl_plugin_action_cb(PurplePluginAction * gpa); |
|
23930
c1c3d7cab338
Add support to the Perl plugin loader for listing for pref changes.
Daniel Atallah <datallah@pidgin.im>
parents:
22845
diff
changeset
|
59 | GList *purple_perl_plugin_actions(PurplePlugin *plugin, gpointer context); |
| 11170 | 60 | |
| 15884 | 61 | PurplePluginPrefFrame *purple_perl_get_plugin_frame(PurplePlugin *plugin); |
|
6549
8e6ba2a45698
[gaim-migrate @ 7071]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
62 | |
| 15884 | 63 | #ifdef PURPLE_GTKPERL |
| 64 | GtkWidget *purple_perl_gtk_get_plugin_frame(PurplePlugin *plugin); | |
| 14434 | 65 | #endif |
| 11170 | 66 | |
|
22845
7ccb529edf3f
Add the recent perl callback changes to ChangeLog.API.
Etan Reisner <deryni@pidgin.im>
parents:
15884
diff
changeset
|
67 | guint purple_perl_timeout_add(PurplePlugin *plugin, int seconds, SV *callback, |
|
7ccb529edf3f
Add the recent perl callback changes to ChangeLog.API.
Etan Reisner <deryni@pidgin.im>
parents:
15884
diff
changeset
|
68 | SV *data); |
|
7ccb529edf3f
Add the recent perl callback changes to ChangeLog.API.
Etan Reisner <deryni@pidgin.im>
parents:
15884
diff
changeset
|
69 | gboolean purple_perl_timeout_remove(guint handle); |
| 15884 | 70 | void purple_perl_timeout_clear_for_plugin(PurplePlugin *plugin); |
| 71 | void purple_perl_timeout_clear(void); | |
| 6520 | 72 | |
| 15884 | 73 | void purple_perl_signal_connect(PurplePlugin *plugin, void *instance, |
| 12882 | 74 | const char *signal, SV *callback, |
| 13191 | 75 | SV *data, int priority); |
| 15884 | 76 | void purple_perl_signal_disconnect(PurplePlugin *plugin, void *instance, |
| 12882 | 77 | const char *signal); |
| 15884 | 78 | void purple_perl_signal_clear_for_plugin(PurplePlugin *plugin); |
| 79 | void purple_perl_signal_clear(void); | |
|
6549
8e6ba2a45698
[gaim-migrate @ 7071]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
80 | |
| 15884 | 81 | PurpleCmdId purple_perl_cmd_register(PurplePlugin *plugin, const gchar *cmd, |
| 82 | const gchar *args, PurpleCmdPriority priority, | |
| 83 | PurpleCmdFlag flag, const gchar *prpl_id, | |
| 12882 | 84 | SV *callback, const gchar *helpstr, SV *data); |
| 15884 | 85 | void purple_perl_cmd_unregister(PurpleCmdId id); |
| 86 | void purple_perl_cmd_clear_for_plugin(PurplePlugin *plugin); | |
| 12882 | 87 | |
|
23930
c1c3d7cab338
Add support to the Perl plugin loader for listing for pref changes.
Daniel Atallah <datallah@pidgin.im>
parents:
22845
diff
changeset
|
88 | guint purple_perl_prefs_connect_callback(PurplePlugin *plugin, const char *name, SV *callback, SV *data); |
|
c1c3d7cab338
Add support to the Perl plugin loader for listing for pref changes.
Daniel Atallah <datallah@pidgin.im>
parents:
22845
diff
changeset
|
89 | void purple_perl_prefs_disconnect_callback(guint callback_id); |
|
c1c3d7cab338
Add support to the Perl plugin loader for listing for pref changes.
Daniel Atallah <datallah@pidgin.im>
parents:
22845
diff
changeset
|
90 | void purple_perl_pref_cb_clear_for_plugin(PurplePlugin *plugin); |
|
c1c3d7cab338
Add support to the Perl plugin loader for listing for pref changes.
Daniel Atallah <datallah@pidgin.im>
parents:
22845
diff
changeset
|
91 | |
|
34040
f5417957a1bc
Fix Perl compile. This probably doesn't work. I just copy and pasted
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
23930
diff
changeset
|
92 | void |
|
f5417957a1bc
Fix Perl compile. This probably doesn't work. I just copy and pasted
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
23930
diff
changeset
|
93 | purple_perl_account_get_password(PurpleAccount *account, SV *func, SV *data); |
|
f5417957a1bc
Fix Perl compile. This probably doesn't work. I just copy and pasted
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
23930
diff
changeset
|
94 | void |
|
f5417957a1bc
Fix Perl compile. This probably doesn't work. I just copy and pasted
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
23930
diff
changeset
|
95 | purple_perl_account_set_password(PurpleAccount *account, const char *password, |
|
f5417957a1bc
Fix Perl compile. This probably doesn't work. I just copy and pasted
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
23930
diff
changeset
|
96 | SV *func, SV *data); |
|
f5417957a1bc
Fix Perl compile. This probably doesn't work. I just copy and pasted
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
23930
diff
changeset
|
97 | |
| 15884 | 98 | #endif /* _PURPLE_PERL_HANDLERS_H_ */ |