libpurple/plugins/perl/common/Cmds.xs

changeset 15894
765ec644ac47
parent 15435
4b933b06d75e
child 16238
33bf2fd32108
child 16773
e1171eb45f07
child 20478
46933dc62880
equal deleted inserted replaced
15893:b9be4c428c3e 15894:765ec644ac47
1 #include "module.h" 1 #include "module.h"
2 #include "../perl-handlers.h" 2 #include "../perl-handlers.h"
3 3
4 MODULE = Gaim::Cmd PACKAGE = Gaim::Cmd PREFIX = gaim_cmd_ 4 MODULE = Purple::Cmd PACKAGE = Purple::Cmd PREFIX = purple_cmd_
5 PROTOTYPES: ENABLE 5 PROTOTYPES: ENABLE
6 6
7 void 7 void
8 gaim_cmd_help(conv, command) 8 purple_cmd_help(conv, command)
9 Gaim::Conversation conv 9 Purple::Conversation conv
10 const gchar *command 10 const gchar *command
11 PREINIT: 11 PREINIT:
12 GList *l; 12 GList *l;
13 PPCODE: 13 PPCODE:
14 for (l = gaim_cmd_help(conv, command); l != NULL; l = l->next) { 14 for (l = purple_cmd_help(conv, command); l != NULL; l = l->next) {
15 XPUSHs(sv_2mortal(newSVpv(l->data, 0))); 15 XPUSHs(sv_2mortal(newSVpv(l->data, 0)));
16 } 16 }
17 17
18 void 18 void
19 gaim_cmd_list(conv) 19 purple_cmd_list(conv)
20 Gaim::Conversation conv 20 Purple::Conversation conv
21 PREINIT: 21 PREINIT:
22 GList *l; 22 GList *l;
23 PPCODE: 23 PPCODE:
24 for (l = gaim_cmd_list(conv); l != NULL; l = l->next) { 24 for (l = purple_cmd_list(conv); l != NULL; l = l->next) {
25 XPUSHs(sv_2mortal(newSVpv(l->data, 0))); 25 XPUSHs(sv_2mortal(newSVpv(l->data, 0)));
26 } 26 }
27 27
28 Gaim::Cmd::Id 28 Purple::Cmd::Id
29 gaim_cmd_register(plugin, command, args, priority, flag, prpl_id, func, helpstr, data = 0) 29 purple_cmd_register(plugin, command, args, priority, flag, prpl_id, func, helpstr, data = 0)
30 Gaim::Plugin plugin 30 Purple::Plugin plugin
31 const gchar *command 31 const gchar *command
32 const gchar *args 32 const gchar *args
33 Gaim::Cmd::Priority priority 33 Purple::Cmd::Priority priority
34 Gaim::Cmd::Flag flag 34 Purple::Cmd::Flag flag
35 const gchar *prpl_id 35 const gchar *prpl_id
36 SV *func 36 SV *func
37 const gchar *helpstr 37 const gchar *helpstr
38 SV *data 38 SV *data
39 CODE: 39 CODE:
40 RETVAL = gaim_perl_cmd_register(plugin, command, args, priority, flag, 40 RETVAL = purple_perl_cmd_register(plugin, command, args, priority, flag,
41 prpl_id, func, helpstr, data); 41 prpl_id, func, helpstr, data);
42 OUTPUT: 42 OUTPUT:
43 RETVAL 43 RETVAL
44 44
45 void 45 void
46 gaim_cmd_unregister(id) 46 purple_cmd_unregister(id)
47 Gaim::Cmd::Id id 47 Purple::Cmd::Id id
48 CODE: 48 CODE:
49 gaim_perl_cmd_unregister(id); 49 purple_perl_cmd_unregister(id);

mercurial