| 1 #include "module.h" |
1 #include "module.h" |
| |
2 #include "../perl-handlers.h" |
| 2 |
3 |
| 3 MODULE = Gaim::Cmds PACKAGE = Gaim::Cmds PREFIX = gaim_cmd_ |
4 MODULE = Gaim::Cmd PACKAGE = Gaim::Cmd PREFIX = gaim_cmd_ |
| 4 PROTOTYPES: ENABLE |
5 PROTOTYPES: ENABLE |
| 5 |
6 |
| 6 void |
7 void |
| 7 gaim_cmd_help(conv, cmd) |
8 gaim_cmd_help(conv, command) |
| 8 Gaim::Conversation conv |
9 Gaim::Conversation conv |
| 9 const gchar *cmd |
10 const gchar *command |
| 10 PREINIT: |
11 PREINIT: |
| 11 GList *l; |
12 GList *l; |
| 12 PPCODE: |
13 PPCODE: |
| 13 for (l = gaim_cmd_help(conv, cmd); l != NULL; l = l->next) { |
14 for (l = gaim_cmd_help(conv, command); l != NULL; l = l->next) { |
| 14 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry"))); |
15 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry"))); |
| 15 } |
16 } |
| 16 |
17 |
| 17 void |
18 void |
| 18 gaim_cmd_list(conv) |
19 gaim_cmd_list(conv) |
| 19 Gaim::Conversation conv |
20 Gaim::Conversation conv |
| 20 PREINIT: |
21 PREINIT: |
| 21 GList *l; |
22 GList *l; |
| 22 PPCODE: |
23 PPCODE: |
| 23 for (l = gaim_cmd_list(conv); l != NULL; l = l->next) { |
24 for (l = gaim_cmd_list(conv); l != NULL; l = l->next) { |
| 24 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry"))); |
25 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry"))); |
| 25 } |
26 } |
| 26 |
27 |
| 27 void |
28 Gaim::Cmd::Id |
| |
29 gaim_cmd_register(plugin, command, args, priority, flag, prpl_id, func, helpstr, data = 0) |
| |
30 Gaim::Plugin plugin |
| |
31 const gchar *command |
| |
32 const gchar *args |
| |
33 Gaim::Cmd::Priority priority |
| |
34 Gaim::Cmd::Flag flag |
| |
35 const gchar *prpl_id |
| |
36 SV *func |
| |
37 const gchar *helpstr |
| |
38 SV *data |
| |
39 CODE: |
| |
40 RETVAL = gaim_perl_cmd_register(plugin, command, args, priority, flag, |
| |
41 prpl_id, func, helpstr, data); |
| |
42 OUTPUT: |
| |
43 RETVAL |
| |
44 |
| |
45 void |
| 28 gaim_cmd_unregister(id) |
46 gaim_cmd_unregister(id) |
| 29 Gaim::CmdId id |
47 Gaim::Cmd::Id id |
| 30 |
48 CODE: |
| |
49 gaim_perl_cmd_unregister(id); |