Mercurial > pidgin
annotate libgaim/plugins/perl/common/Gaim.xs @ 15030:b598a78c4550
[gaim-migrate @ 17813]
Don't crash when getting info on someone on jabber with no resource name
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Wed, 22 Nov 2006 20:10:01 +0000 |
parents | 5e07a6f8eb33 |
children |
rev | line source |
---|---|
14192 | 1 #include "module.h" |
2 #include "../perl-handlers.h" | |
3 #include "const-c.inc" | |
4 | |
5 /* Prototypes for the BOOT section below. */ | |
6 GAIM_PERL_BOOT_PROTO(Account); | |
7 GAIM_PERL_BOOT_PROTO(Account__Option); | |
8 GAIM_PERL_BOOT_PROTO(Buddy__Icon); | |
9 GAIM_PERL_BOOT_PROTO(BuddyList); | |
10 GAIM_PERL_BOOT_PROTO(Cipher); | |
11 GAIM_PERL_BOOT_PROTO(Cmd); | |
12 GAIM_PERL_BOOT_PROTO(Connection); | |
13 GAIM_PERL_BOOT_PROTO(Conversation); | |
15004
5e07a6f8eb33
[gaim-migrate @ 17784]
Richard Laager <rlaager@wiktel.com>
parents:
14192
diff
changeset
|
14 GAIM_PERL_BOOT_PROTO(Core); |
14192 | 15 GAIM_PERL_BOOT_PROTO(Debug); |
16 GAIM_PERL_BOOT_PROTO(Xfer); | |
17 GAIM_PERL_BOOT_PROTO(ImgStore); | |
18 GAIM_PERL_BOOT_PROTO(Log); | |
19 GAIM_PERL_BOOT_PROTO(Network); | |
20 GAIM_PERL_BOOT_PROTO(Notify); | |
21 GAIM_PERL_BOOT_PROTO(Plugin); | |
22 GAIM_PERL_BOOT_PROTO(PluginPref); | |
23 GAIM_PERL_BOOT_PROTO(Pounce); | |
24 GAIM_PERL_BOOT_PROTO(Prefs); | |
25 GAIM_PERL_BOOT_PROTO(Privacy); | |
26 GAIM_PERL_BOOT_PROTO(Proxy); | |
27 GAIM_PERL_BOOT_PROTO(Prpl); | |
28 GAIM_PERL_BOOT_PROTO(Request); | |
29 GAIM_PERL_BOOT_PROTO(Roomlist); | |
30 GAIM_PERL_BOOT_PROTO(SSL); | |
31 GAIM_PERL_BOOT_PROTO(SavedStatus); | |
32 GAIM_PERL_BOOT_PROTO(Serv); | |
33 GAIM_PERL_BOOT_PROTO(Signal); | |
34 GAIM_PERL_BOOT_PROTO(Sound); | |
35 GAIM_PERL_BOOT_PROTO(Status); | |
36 GAIM_PERL_BOOT_PROTO(Stringref); | |
37 GAIM_PERL_BOOT_PROTO(Util); | |
38 GAIM_PERL_BOOT_PROTO(XMLNode); | |
39 | |
40 MODULE = Gaim PACKAGE = Gaim PREFIX = gaim_ | |
41 PROTOTYPES: ENABLE | |
42 | |
43 INCLUDE: const-xs.inc | |
44 | |
45 BOOT: | |
46 GAIM_PERL_BOOT(Account); | |
47 GAIM_PERL_BOOT(Account__Option); | |
48 GAIM_PERL_BOOT(Buddy__Icon); | |
49 GAIM_PERL_BOOT(BuddyList); | |
50 GAIM_PERL_BOOT(Cipher); | |
51 GAIM_PERL_BOOT(Cmd); | |
52 GAIM_PERL_BOOT(Connection); | |
53 GAIM_PERL_BOOT(Conversation); | |
15004
5e07a6f8eb33
[gaim-migrate @ 17784]
Richard Laager <rlaager@wiktel.com>
parents:
14192
diff
changeset
|
54 GAIM_PERL_BOOT(Core); |
14192 | 55 GAIM_PERL_BOOT(Debug); |
56 GAIM_PERL_BOOT(Xfer); | |
57 GAIM_PERL_BOOT(ImgStore); | |
58 GAIM_PERL_BOOT(Log); | |
59 GAIM_PERL_BOOT(Network); | |
60 GAIM_PERL_BOOT(Notify); | |
61 GAIM_PERL_BOOT(Plugin); | |
62 GAIM_PERL_BOOT(PluginPref); | |
63 GAIM_PERL_BOOT(Pounce); | |
64 GAIM_PERL_BOOT(Prefs); | |
65 GAIM_PERL_BOOT(Privacy); | |
66 GAIM_PERL_BOOT(Proxy); | |
67 GAIM_PERL_BOOT(Prpl); | |
68 GAIM_PERL_BOOT(Request); | |
69 GAIM_PERL_BOOT(Roomlist); | |
70 GAIM_PERL_BOOT(SSL); | |
71 GAIM_PERL_BOOT(SavedStatus); | |
72 GAIM_PERL_BOOT(Serv); | |
73 GAIM_PERL_BOOT(Signal); | |
74 GAIM_PERL_BOOT(Sound); | |
75 GAIM_PERL_BOOT(Status); | |
76 GAIM_PERL_BOOT(Stringref); | |
77 GAIM_PERL_BOOT(Util); | |
78 GAIM_PERL_BOOT(XMLNode); | |
79 | |
80 void | |
81 timeout_add(plugin, seconds, callback, data = 0) | |
82 Gaim::Plugin plugin | |
83 int seconds | |
84 SV *callback | |
85 SV *data | |
86 CODE: | |
87 gaim_perl_timeout_add(plugin, seconds, callback, data); | |
88 | |
89 void | |
90 deinit() | |
91 CODE: | |
92 gaim_perl_timeout_clear(); | |
15004
5e07a6f8eb33
[gaim-migrate @ 17784]
Richard Laager <rlaager@wiktel.com>
parents:
14192
diff
changeset
|
93 |
5e07a6f8eb33
[gaim-migrate @ 17784]
Richard Laager <rlaager@wiktel.com>
parents:
14192
diff
changeset
|
94 |
5e07a6f8eb33
[gaim-migrate @ 17784]
Richard Laager <rlaager@wiktel.com>
parents:
14192
diff
changeset
|
95 MODULE = Gaim PACKAGE = Gaim PREFIX = gaim_ |
5e07a6f8eb33
[gaim-migrate @ 17784]
Richard Laager <rlaager@wiktel.com>
parents:
14192
diff
changeset
|
96 PROTOTYPES: ENABLE |
5e07a6f8eb33
[gaim-migrate @ 17784]
Richard Laager <rlaager@wiktel.com>
parents:
14192
diff
changeset
|
97 |
5e07a6f8eb33
[gaim-migrate @ 17784]
Richard Laager <rlaager@wiktel.com>
parents:
14192
diff
changeset
|
98 Gaim::Core |
5e07a6f8eb33
[gaim-migrate @ 17784]
Richard Laager <rlaager@wiktel.com>
parents:
14192
diff
changeset
|
99 gaim_get_core() |