Wed, 13 May 2009 20:29:03 +0000
Support custom smileys in MUCs (when all participants support BoB and a maximum
of 10 participants are in the chat).
Always announce support for BoB, since disable custom smileys will still turn
off fetching them, and BoB can be used for other purposes further on.
| 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 | |
| 15884 | 51 | 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
|
52 | GList *purple_perl_plugin_actions(PurplePlugin *plugin, gpointer context); |
| 11170 | 53 | |
| 15884 | 54 | PurplePluginPrefFrame *purple_perl_get_plugin_frame(PurplePlugin *plugin); |
|
6549
8e6ba2a45698
[gaim-migrate @ 7071]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
55 | |
| 15884 | 56 | #ifdef PURPLE_GTKPERL |
| 57 | GtkWidget *purple_perl_gtk_get_plugin_frame(PurplePlugin *plugin); | |
| 14434 | 58 | #endif |
| 11170 | 59 | |
|
22845
7ccb529edf3f
Add the recent perl callback changes to ChangeLog.API.
Etan Reisner <deryni@pidgin.im>
parents:
15884
diff
changeset
|
60 | 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
|
61 | SV *data); |
|
7ccb529edf3f
Add the recent perl callback changes to ChangeLog.API.
Etan Reisner <deryni@pidgin.im>
parents:
15884
diff
changeset
|
62 | gboolean purple_perl_timeout_remove(guint handle); |
| 15884 | 63 | void purple_perl_timeout_clear_for_plugin(PurplePlugin *plugin); |
| 64 | void purple_perl_timeout_clear(void); | |
| 6520 | 65 | |
| 15884 | 66 | void purple_perl_signal_connect(PurplePlugin *plugin, void *instance, |
| 12882 | 67 | const char *signal, SV *callback, |
| 13191 | 68 | SV *data, int priority); |
| 15884 | 69 | void purple_perl_signal_disconnect(PurplePlugin *plugin, void *instance, |
| 12882 | 70 | const char *signal); |
| 15884 | 71 | void purple_perl_signal_clear_for_plugin(PurplePlugin *plugin); |
| 72 | void purple_perl_signal_clear(void); | |
|
6549
8e6ba2a45698
[gaim-migrate @ 7071]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
73 | |
| 15884 | 74 | PurpleCmdId purple_perl_cmd_register(PurplePlugin *plugin, const gchar *cmd, |
| 75 | const gchar *args, PurpleCmdPriority priority, | |
| 76 | PurpleCmdFlag flag, const gchar *prpl_id, | |
| 12882 | 77 | SV *callback, const gchar *helpstr, SV *data); |
| 15884 | 78 | void purple_perl_cmd_unregister(PurpleCmdId id); |
| 79 | void purple_perl_cmd_clear_for_plugin(PurplePlugin *plugin); | |
| 12882 | 80 | |
|
23930
c1c3d7cab338
Add support to the Perl plugin loader for listing for pref changes.
Daniel Atallah <datallah@pidgin.im>
parents:
22845
diff
changeset
|
81 | 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
|
82 | 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
|
83 | 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
|
84 | |
| 15884 | 85 | #endif /* _PURPLE_PERL_HANDLERS_H_ */ |