annotate plugins/perl/common/Gaim.xs @ 12340:11d14efe7be2

[gaim-migrate @ 14644] sf patch #1373208, from Will Thompson "In Perl, we have Gaim::Conversation objects. However, all the functions that take Gaim::Conversations as the first argument are in the Gaim::Conv package. This makes the following not work: my $conv = Gaim::Conv::new(); $conv->get_features(); Instead, one has to do the following: my $conv = Gaim::Conv::new(); Gaim::Conv::get_features($conv);" committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 05 Dec 2005 03:53:00 +0000
parents b284c703d398
children 6fd82071a7b8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6508
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
1 #include "module.h"
6520
2e2593d95121 [gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
2 #include "../perl-handlers.h"
6588
7f5f57dd5cac [gaim-migrate @ 7110]
Christian Hammond <chipx86@chipx86.com>
parents: 6584
diff changeset
3 #include "const-c.inc"
7f5f57dd5cac [gaim-migrate @ 7110]
Christian Hammond <chipx86@chipx86.com>
parents: 6584
diff changeset
4
7f5f57dd5cac [gaim-migrate @ 7110]
Christian Hammond <chipx86@chipx86.com>
parents: 6584
diff changeset
5 MODULE = Gaim PACKAGE = Gaim PREFIX = gaim_
6508
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
6 PROTOTYPES: ENABLE
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
7
6588
7f5f57dd5cac [gaim-migrate @ 7110]
Christian Hammond <chipx86@chipx86.com>
parents: 6584
diff changeset
8 INCLUDE: const-xs.inc
7f5f57dd5cac [gaim-migrate @ 7110]
Christian Hammond <chipx86@chipx86.com>
parents: 6584
diff changeset
9
6508
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
10 void
6918
d4b53b3d20eb [gaim-migrate @ 7465]
Christian Hammond <chipx86@chipx86.com>
parents: 6735
diff changeset
11 timeout_add(plugin, seconds, callback, data = 0)
6520
2e2593d95121 [gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
12 Gaim::Plugin plugin
2e2593d95121 [gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
13 int seconds
6568
33486b749aa9 [gaim-migrate @ 7090]
Christian Hammond <chipx86@chipx86.com>
parents: 6567
diff changeset
14 SV *callback
6552
65dc4d34f280 [gaim-migrate @ 7074]
Christian Hammond <chipx86@chipx86.com>
parents: 6550
diff changeset
15 SV *data
6520
2e2593d95121 [gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
16 CODE:
6568
33486b749aa9 [gaim-migrate @ 7090]
Christian Hammond <chipx86@chipx86.com>
parents: 6567
diff changeset
17 gaim_perl_timeout_add(plugin, seconds, callback, data);
6520
2e2593d95121 [gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
18
2e2593d95121 [gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
19 void
6918
d4b53b3d20eb [gaim-migrate @ 7465]
Christian Hammond <chipx86@chipx86.com>
parents: 6735
diff changeset
20 signal_connect(instance, signal, plugin, callback, data = 0)
6554
28b38803d0bb [gaim-migrate @ 7076]
Christian Hammond <chipx86@chipx86.com>
parents: 6552
diff changeset
21 void *instance
28b38803d0bb [gaim-migrate @ 7076]
Christian Hammond <chipx86@chipx86.com>
parents: 6552
diff changeset
22 const char *signal
28b38803d0bb [gaim-migrate @ 7076]
Christian Hammond <chipx86@chipx86.com>
parents: 6552
diff changeset
23 Gaim::Plugin plugin
6567
6e25e1e08ffb [gaim-migrate @ 7089]
Christian Hammond <chipx86@chipx86.com>
parents: 6554
diff changeset
24 SV *callback
6554
28b38803d0bb [gaim-migrate @ 7076]
Christian Hammond <chipx86@chipx86.com>
parents: 6552
diff changeset
25 SV *data
28b38803d0bb [gaim-migrate @ 7076]
Christian Hammond <chipx86@chipx86.com>
parents: 6552
diff changeset
26 CODE:
6567
6e25e1e08ffb [gaim-migrate @ 7089]
Christian Hammond <chipx86@chipx86.com>
parents: 6554
diff changeset
27 gaim_perl_signal_connect(plugin, instance, signal, callback, data);
6554
28b38803d0bb [gaim-migrate @ 7076]
Christian Hammond <chipx86@chipx86.com>
parents: 6552
diff changeset
28
28b38803d0bb [gaim-migrate @ 7076]
Christian Hammond <chipx86@chipx86.com>
parents: 6552
diff changeset
29 void
6567
6e25e1e08ffb [gaim-migrate @ 7089]
Christian Hammond <chipx86@chipx86.com>
parents: 6554
diff changeset
30 signal_disconnect(instance, signal, plugin)
6554
28b38803d0bb [gaim-migrate @ 7076]
Christian Hammond <chipx86@chipx86.com>
parents: 6552
diff changeset
31 void *instance
28b38803d0bb [gaim-migrate @ 7076]
Christian Hammond <chipx86@chipx86.com>
parents: 6552
diff changeset
32 const char *signal
28b38803d0bb [gaim-migrate @ 7076]
Christian Hammond <chipx86@chipx86.com>
parents: 6552
diff changeset
33 Gaim::Plugin plugin
28b38803d0bb [gaim-migrate @ 7076]
Christian Hammond <chipx86@chipx86.com>
parents: 6552
diff changeset
34 CODE:
6567
6e25e1e08ffb [gaim-migrate @ 7089]
Christian Hammond <chipx86@chipx86.com>
parents: 6554
diff changeset
35 gaim_perl_signal_disconnect(plugin, instance, signal);
6554
28b38803d0bb [gaim-migrate @ 7076]
Christian Hammond <chipx86@chipx86.com>
parents: 6552
diff changeset
36
28b38803d0bb [gaim-migrate @ 7076]
Christian Hammond <chipx86@chipx86.com>
parents: 6552
diff changeset
37 void
6588
7f5f57dd5cac [gaim-migrate @ 7110]
Christian Hammond <chipx86@chipx86.com>
parents: 6584
diff changeset
38 gaim_debug(level, category, string)
7f5f57dd5cac [gaim-migrate @ 7110]
Christian Hammond <chipx86@chipx86.com>
parents: 6584
diff changeset
39 Gaim::DebugLevel level
6539
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
40 const char *category
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
41 const char *string
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
42
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
43 void
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
44 debug_misc(category, string)
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
45 const char *category
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
46 const char *string
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
47 CODE:
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
48 gaim_debug(GAIM_DEBUG_MISC, category, string);
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
49
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
50 void
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
51 debug_info(category, string)
6520
2e2593d95121 [gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
52 const char *category
6508
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
53 const char *string
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
54 CODE:
6520
2e2593d95121 [gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
55 gaim_debug(GAIM_DEBUG_INFO, category, string);
2e2593d95121 [gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
56
2e2593d95121 [gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
57 void
6539
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
58 debug_warning(category, string)
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
59 const char *category
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
60 const char *string
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
61 CODE:
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
62 gaim_debug(GAIM_DEBUG_WARNING, category, string);
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
63
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
64 void
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
65 debug_error(category, string)
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
66 const char *category
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
67 const char *string
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
68 CODE:
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
69 gaim_debug(GAIM_DEBUG_ERROR, category, string);
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
70
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
71 void
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
72 debug_fatal(category, string)
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
73 const char *category
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
74 const char *string
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
75 CODE:
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
76 gaim_debug(GAIM_DEBUG_FATAL, category, string);
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
77
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
78 void
6520
2e2593d95121 [gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
79 deinit()
2e2593d95121 [gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
80 CODE:
2e2593d95121 [gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
81 gaim_perl_timeout_clear();
2e2593d95121 [gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
82
6508
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
83
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
84 BOOT:
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
85 GAIM_PERL_BOOT(Account);
11118
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents: 6918
diff changeset
86 GAIM_PERL_BOOT(Account__Option);
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents: 6918
diff changeset
87 GAIM_PERL_BOOT(Buddy__Icon);
11290
b284c703d398 [gaim-migrate @ 13490]
John H. Kelm <johnkelm@gmail.com>
parents: 11124
diff changeset
88 GAIM_PERL_BOOT(BuddyList);
11118
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents: 6918
diff changeset
89 GAIM_PERL_BOOT(Cipher);
11290
b284c703d398 [gaim-migrate @ 13490]
John H. Kelm <johnkelm@gmail.com>
parents: 11124
diff changeset
90 GAIM_PERL_BOOT(Cmds);
6584
6deef41364bd [gaim-migrate @ 7106]
Christian Hammond <chipx86@chipx86.com>
parents: 6568
diff changeset
91 GAIM_PERL_BOOT(Connection);
12340
11d14efe7be2 [gaim-migrate @ 14644]
Mark Doliner <mark@kingant.net>
parents: 11290
diff changeset
92 GAIM_PERL_BOOT(Conversation);
11118
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents: 6918
diff changeset
93 GAIM_PERL_BOOT(Xfer);
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents: 6918
diff changeset
94 GAIM_PERL_BOOT(ImgStore);
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents: 6918
diff changeset
95 GAIM_PERL_BOOT(Log);
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents: 6918
diff changeset
96 GAIM_PERL_BOOT(Network);
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents: 6918
diff changeset
97 GAIM_PERL_BOOT(Notify);
11290
b284c703d398 [gaim-migrate @ 13490]
John H. Kelm <johnkelm@gmail.com>
parents: 11124
diff changeset
98 GAIM_PERL_BOOT(Plugin);
b284c703d398 [gaim-migrate @ 13490]
John H. Kelm <johnkelm@gmail.com>
parents: 11124
diff changeset
99 GAIM_PERL_BOOT(Pref);
11118
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents: 6918
diff changeset
100 GAIM_PERL_BOOT(Pounce);
11290
b284c703d398 [gaim-migrate @ 13490]
John H. Kelm <johnkelm@gmail.com>
parents: 11124
diff changeset
101 GAIM_PERL_BOOT(Prefs);
11118
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents: 6918
diff changeset
102 GAIM_PERL_BOOT(Privacy);
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents: 6918
diff changeset
103 GAIM_PERL_BOOT(Proxy);
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents: 6918
diff changeset
104 GAIM_PERL_BOOT(Prpl);
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents: 6918
diff changeset
105 GAIM_PERL_BOOT(Request);
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents: 6918
diff changeset
106 GAIM_PERL_BOOT(Roomlist);
11290
b284c703d398 [gaim-migrate @ 13490]
John H. Kelm <johnkelm@gmail.com>
parents: 11124
diff changeset
107 GAIM_PERL_BOOT(SSL);
11118
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents: 6918
diff changeset
108 GAIM_PERL_BOOT(SavedStatus);
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents: 6918
diff changeset
109 GAIM_PERL_BOOT(Sound);
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents: 6918
diff changeset
110 GAIM_PERL_BOOT(Status);
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents: 6918
diff changeset
111 GAIM_PERL_BOOT(Stringref);
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents: 6918
diff changeset
112 GAIM_PERL_BOOT(Util);
134d0001983d [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents: 6918
diff changeset
113 GAIM_PERL_BOOT(XMLNode);