annotate plugins/perl/common/Gaim.xs @ 6873:155645d0f0aa

[gaim-migrate @ 7419] In oscar.c, replaced some calls to g_show_info_text() with calls to gaim_notify_formatted(). notify.stuff is rockin'. Also fixed a nice little bug when receiving an IM image. Thanks to Nathan for pointing that out. ...slipped me notes under the desk, while I was thinking about her dress... committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 17 Sep 2003 04:16:05 +0000
parents b0913ab92893
children d4b53b3d20eb
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"
6508
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
3
6588
7f5f57dd5cac [gaim-migrate @ 7110]
Christian Hammond <chipx86@chipx86.com>
parents: 6584
diff changeset
4 #include "const-c.inc"
7f5f57dd5cac [gaim-migrate @ 7110]
Christian Hammond <chipx86@chipx86.com>
parents: 6584
diff changeset
5
7f5f57dd5cac [gaim-migrate @ 7110]
Christian Hammond <chipx86@chipx86.com>
parents: 6584
diff changeset
6 MODULE = Gaim PACKAGE = Gaim PREFIX = gaim_
6508
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
7 PROTOTYPES: ENABLE
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
8
6588
7f5f57dd5cac [gaim-migrate @ 7110]
Christian Hammond <chipx86@chipx86.com>
parents: 6584
diff changeset
9 INCLUDE: const-xs.inc
7f5f57dd5cac [gaim-migrate @ 7110]
Christian Hammond <chipx86@chipx86.com>
parents: 6584
diff changeset
10
6508
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
11 void
6568
33486b749aa9 [gaim-migrate @ 7090]
Christian Hammond <chipx86@chipx86.com>
parents: 6567
diff changeset
12 timeout_add(plugin, seconds, callback, data)
6520
2e2593d95121 [gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
13 Gaim::Plugin plugin
2e2593d95121 [gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
14 int seconds
6568
33486b749aa9 [gaim-migrate @ 7090]
Christian Hammond <chipx86@chipx86.com>
parents: 6567
diff changeset
15 SV *callback
6552
65dc4d34f280 [gaim-migrate @ 7074]
Christian Hammond <chipx86@chipx86.com>
parents: 6550
diff changeset
16 SV *data
6520
2e2593d95121 [gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
17 CODE:
6568
33486b749aa9 [gaim-migrate @ 7090]
Christian Hammond <chipx86@chipx86.com>
parents: 6567
diff changeset
18 gaim_perl_timeout_add(plugin, seconds, callback, data);
6520
2e2593d95121 [gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
19
2e2593d95121 [gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
20 void
6567
6e25e1e08ffb [gaim-migrate @ 7089]
Christian Hammond <chipx86@chipx86.com>
parents: 6554
diff changeset
21 signal_connect(instance, signal, plugin, callback, data)
6554
28b38803d0bb [gaim-migrate @ 7076]
Christian Hammond <chipx86@chipx86.com>
parents: 6552
diff changeset
22 void *instance
28b38803d0bb [gaim-migrate @ 7076]
Christian Hammond <chipx86@chipx86.com>
parents: 6552
diff changeset
23 const char *signal
28b38803d0bb [gaim-migrate @ 7076]
Christian Hammond <chipx86@chipx86.com>
parents: 6552
diff changeset
24 Gaim::Plugin plugin
6567
6e25e1e08ffb [gaim-migrate @ 7089]
Christian Hammond <chipx86@chipx86.com>
parents: 6554
diff changeset
25 SV *callback
6554
28b38803d0bb [gaim-migrate @ 7076]
Christian Hammond <chipx86@chipx86.com>
parents: 6552
diff changeset
26 SV *data
28b38803d0bb [gaim-migrate @ 7076]
Christian Hammond <chipx86@chipx86.com>
parents: 6552
diff changeset
27 CODE:
6567
6e25e1e08ffb [gaim-migrate @ 7089]
Christian Hammond <chipx86@chipx86.com>
parents: 6554
diff changeset
28 gaim_perl_signal_connect(plugin, instance, signal, callback, data);
6554
28b38803d0bb [gaim-migrate @ 7076]
Christian Hammond <chipx86@chipx86.com>
parents: 6552
diff changeset
29
28b38803d0bb [gaim-migrate @ 7076]
Christian Hammond <chipx86@chipx86.com>
parents: 6552
diff changeset
30 void
6567
6e25e1e08ffb [gaim-migrate @ 7089]
Christian Hammond <chipx86@chipx86.com>
parents: 6554
diff changeset
31 signal_disconnect(instance, signal, plugin)
6554
28b38803d0bb [gaim-migrate @ 7076]
Christian Hammond <chipx86@chipx86.com>
parents: 6552
diff changeset
32 void *instance
28b38803d0bb [gaim-migrate @ 7076]
Christian Hammond <chipx86@chipx86.com>
parents: 6552
diff changeset
33 const char *signal
28b38803d0bb [gaim-migrate @ 7076]
Christian Hammond <chipx86@chipx86.com>
parents: 6552
diff changeset
34 Gaim::Plugin plugin
28b38803d0bb [gaim-migrate @ 7076]
Christian Hammond <chipx86@chipx86.com>
parents: 6552
diff changeset
35 CODE:
6567
6e25e1e08ffb [gaim-migrate @ 7089]
Christian Hammond <chipx86@chipx86.com>
parents: 6554
diff changeset
36 gaim_perl_signal_disconnect(plugin, instance, signal);
6554
28b38803d0bb [gaim-migrate @ 7076]
Christian Hammond <chipx86@chipx86.com>
parents: 6552
diff changeset
37
28b38803d0bb [gaim-migrate @ 7076]
Christian Hammond <chipx86@chipx86.com>
parents: 6552
diff changeset
38 void
6588
7f5f57dd5cac [gaim-migrate @ 7110]
Christian Hammond <chipx86@chipx86.com>
parents: 6584
diff changeset
39 gaim_debug(level, category, string)
7f5f57dd5cac [gaim-migrate @ 7110]
Christian Hammond <chipx86@chipx86.com>
parents: 6584
diff changeset
40 Gaim::DebugLevel level
6539
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
41 const char *category
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
42 const char *string
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
43
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
44 void
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
45 debug_misc(category, string)
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
46 const char *category
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
47 const char *string
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
48 CODE:
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
49 gaim_debug(GAIM_DEBUG_MISC, category, string);
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
50
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
51 void
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
52 debug_info(category, string)
6520
2e2593d95121 [gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
53 const char *category
6508
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
54 const char *string
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
55 CODE:
6520
2e2593d95121 [gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
56 gaim_debug(GAIM_DEBUG_INFO, category, string);
2e2593d95121 [gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
57
2e2593d95121 [gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
58 void
6539
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
59 debug_warning(category, string)
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
60 const char *category
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
61 const char *string
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
62 CODE:
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
63 gaim_debug(GAIM_DEBUG_WARNING, category, string);
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
64
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
65 void
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
66 debug_error(category, string)
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
67 const char *category
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
68 const char *string
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
69 CODE:
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
70 gaim_debug(GAIM_DEBUG_ERROR, category, string);
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
71
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
72 void
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
73 debug_fatal(category, string)
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
74 const char *category
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
75 const char *string
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
76 CODE:
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
77 gaim_debug(GAIM_DEBUG_FATAL, category, string);
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
78
1690791f0c70 [gaim-migrate @ 7057]
Christian Hammond <chipx86@chipx86.com>
parents: 6528
diff changeset
79 void
6520
2e2593d95121 [gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
80 deinit()
2e2593d95121 [gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
81 CODE:
2e2593d95121 [gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
82 gaim_perl_timeout_clear();
2e2593d95121 [gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
83
6508
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
84
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
85 BOOT:
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
86 GAIM_PERL_BOOT(Account);
6542
fe0294504602 [gaim-migrate @ 7064]
Christian Hammond <chipx86@chipx86.com>
parents: 6539
diff changeset
87 GAIM_PERL_BOOT(BuddyList);
fe0294504602 [gaim-migrate @ 7064]
Christian Hammond <chipx86@chipx86.com>
parents: 6539
diff changeset
88 GAIM_PERL_BOOT(BuddyList__Group);
fe0294504602 [gaim-migrate @ 7064]
Christian Hammond <chipx86@chipx86.com>
parents: 6539
diff changeset
89 GAIM_PERL_BOOT(BuddyList__Buddy);
fe0294504602 [gaim-migrate @ 7064]
Christian Hammond <chipx86@chipx86.com>
parents: 6539
diff changeset
90 GAIM_PERL_BOOT(BuddyList__Chat);
6584
6deef41364bd [gaim-migrate @ 7106]
Christian Hammond <chipx86@chipx86.com>
parents: 6568
diff changeset
91 GAIM_PERL_BOOT(Connection);
6591
d25ae4b5a204 [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents: 6588
diff changeset
92 GAIM_PERL_BOOT(Conversation);
d25ae4b5a204 [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents: 6588
diff changeset
93 GAIM_PERL_BOOT(Conversation__Chat);
d25ae4b5a204 [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents: 6588
diff changeset
94 GAIM_PERL_BOOT(Conversation__IM);
d25ae4b5a204 [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents: 6588
diff changeset
95 GAIM_PERL_BOOT(ConvWindow);
6520
2e2593d95121 [gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
96