Mercurial > pidgin.yaz
annotate plugins/perl/perl-handlers.h @ 13572:7773c79bbe01
[gaim-migrate @ 15951]
Fixing the capitalization of a couple strings.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sun, 26 Mar 2006 16:19:19 +0000 |
parents | 60b863ecd89b |
children |
rev | line source |
---|---|
6520 | 1 #ifndef _GAIM_PERL_HANDLERS_H_ |
2 #define _GAIM_PERL_HANDLERS_H_ | |
3 | |
12882
e1603fd610fa
[gaim-migrate @ 15234]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11170
diff
changeset
|
4 #include "cmds.h" |
6520 | 5 #include "plugin.h" |
11123 | 6 #include "prefs.h" |
7 #include "pluginpref.h" | |
11170 | 8 #include "gtkplugin.h" |
9 #include "gtkutils.h" | |
10 | |
6520 | 11 typedef struct |
12 { | |
12882
e1603fd610fa
[gaim-migrate @ 15234]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11170
diff
changeset
|
13 GaimCmdId id; |
e1603fd610fa
[gaim-migrate @ 15234]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11170
diff
changeset
|
14 SV *callback; |
e1603fd610fa
[gaim-migrate @ 15234]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11170
diff
changeset
|
15 SV *data; |
e1603fd610fa
[gaim-migrate @ 15234]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11170
diff
changeset
|
16 char *prpl_id; |
e1603fd610fa
[gaim-migrate @ 15234]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11170
diff
changeset
|
17 char *cmd; |
e1603fd610fa
[gaim-migrate @ 15234]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11170
diff
changeset
|
18 GaimPlugin *plugin; |
e1603fd610fa
[gaim-migrate @ 15234]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11170
diff
changeset
|
19 } GaimPerlCmdHandler; |
e1603fd610fa
[gaim-migrate @ 15234]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11170
diff
changeset
|
20 |
e1603fd610fa
[gaim-migrate @ 15234]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11170
diff
changeset
|
21 typedef struct |
e1603fd610fa
[gaim-migrate @ 15234]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11170
diff
changeset
|
22 { |
6568
33486b749aa9
[gaim-migrate @ 7090]
Christian Hammond <chipx86@chipx86.com>
parents:
6567
diff
changeset
|
23 SV *callback; |
33486b749aa9
[gaim-migrate @ 7090]
Christian Hammond <chipx86@chipx86.com>
parents:
6567
diff
changeset
|
24 SV *data; |
6520 | 25 GaimPlugin *plugin; |
26 int iotag; | |
27 | |
28 } GaimPerlTimeoutHandler; | |
29 | |
6549
ed796f756237
[gaim-migrate @ 7071]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
30 typedef struct |
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 char *signal; |
6567
6e25e1e08ffb
[gaim-migrate @ 7089]
Christian Hammond <chipx86@chipx86.com>
parents:
6550
diff
changeset
|
33 SV *callback; |
6e25e1e08ffb
[gaim-migrate @ 7089]
Christian Hammond <chipx86@chipx86.com>
parents:
6550
diff
changeset
|
34 SV *data; |
6549
ed796f756237
[gaim-migrate @ 7071]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
35 void *instance; |
ed796f756237
[gaim-migrate @ 7071]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
36 GaimPlugin *plugin; |
ed796f756237
[gaim-migrate @ 7071]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
37 |
ed796f756237
[gaim-migrate @ 7071]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
38 } GaimPerlSignalHandler; |
ed796f756237
[gaim-migrate @ 7071]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
39 |
11170 | 40 void gaim_perl_plugin_action_cb(GaimPluginAction * gpa); |
12988
b457aa723bab
[gaim-migrate @ 15341]
Etan Reisner <pidgin@unreliablesource.net>
parents:
12882
diff
changeset
|
41 GList *gaim_perl_plugin_actions(GaimPlugin *plugin, gpointer context); |
11170 | 42 |
11123 | 43 GaimPluginPrefFrame *gaim_perl_get_plugin_frame(GaimPlugin *plugin); |
6549
ed796f756237
[gaim-migrate @ 7071]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
44 |
11170 | 45 GtkWidget *gaim_perl_gtk_get_plugin_frame(GaimPlugin *plugin); |
46 | |
6568
33486b749aa9
[gaim-migrate @ 7090]
Christian Hammond <chipx86@chipx86.com>
parents:
6567
diff
changeset
|
47 void gaim_perl_timeout_add(GaimPlugin *plugin, int seconds, SV *callback, |
12882
e1603fd610fa
[gaim-migrate @ 15234]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11170
diff
changeset
|
48 SV *data); |
6520 | 49 void gaim_perl_timeout_clear_for_plugin(GaimPlugin *plugin); |
50 void gaim_perl_timeout_clear(void); | |
51 | |
6550
f1736493aebb
[gaim-migrate @ 7072]
Christian Hammond <chipx86@chipx86.com>
parents:
6549
diff
changeset
|
52 void gaim_perl_signal_connect(GaimPlugin *plugin, void *instance, |
12882
e1603fd610fa
[gaim-migrate @ 15234]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11170
diff
changeset
|
53 const char *signal, SV *callback, |
13190
60b863ecd89b
[gaim-migrate @ 15553]
Etan Reisner <pidgin@unreliablesource.net>
parents:
12988
diff
changeset
|
54 SV *data, int priority); |
6550
f1736493aebb
[gaim-migrate @ 7072]
Christian Hammond <chipx86@chipx86.com>
parents:
6549
diff
changeset
|
55 void gaim_perl_signal_disconnect(GaimPlugin *plugin, void *instance, |
12882
e1603fd610fa
[gaim-migrate @ 15234]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11170
diff
changeset
|
56 const char *signal); |
6549
ed796f756237
[gaim-migrate @ 7071]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
57 void gaim_perl_signal_clear_for_plugin(GaimPlugin *plugin); |
ed796f756237
[gaim-migrate @ 7071]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
58 void gaim_perl_signal_clear(void); |
ed796f756237
[gaim-migrate @ 7071]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
59 |
12882
e1603fd610fa
[gaim-migrate @ 15234]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11170
diff
changeset
|
60 GaimCmdId gaim_perl_cmd_register(GaimPlugin *plugin, const gchar *cmd, |
e1603fd610fa
[gaim-migrate @ 15234]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11170
diff
changeset
|
61 const gchar *args, GaimCmdPriority priority, |
e1603fd610fa
[gaim-migrate @ 15234]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11170
diff
changeset
|
62 GaimCmdFlag flag, const gchar *prpl_id, |
e1603fd610fa
[gaim-migrate @ 15234]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11170
diff
changeset
|
63 SV *callback, const gchar *helpstr, SV *data); |
e1603fd610fa
[gaim-migrate @ 15234]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11170
diff
changeset
|
64 void gaim_perl_cmd_unregister(GaimCmdId id); |
e1603fd610fa
[gaim-migrate @ 15234]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11170
diff
changeset
|
65 void gaim_perl_cmd_clear_for_plugin(GaimPlugin *plugin); |
e1603fd610fa
[gaim-migrate @ 15234]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11170
diff
changeset
|
66 |
6520 | 67 #endif /* _GAIM_PERL_HANDLERS_H_ */ |