Mercurial > pidgin.yaz
annotate plugins/perl/common/Gaim.xs @ 6588:7f5f57dd5cac
[gaim-migrate @ 7110]
I'm breaking debug. I cannot for the life of me figure out the enum stuff
in perl XSUB. Everything is ending up 0 (in other words, it's probably
not finding them). So, people can use debug_info and such.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 24 Aug 2003 01:08:32 +0000 |
parents | 6deef41364bd |
children | d25ae4b5a204 |
rev | line source |
---|---|
6508 | 1 #include "module.h" |
6520
2e2593d95121
[gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents:
6508
diff
changeset
|
2 #include "../perl-handlers.h" |
6508 | 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 | 7 PROTOTYPES: ENABLE |
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 | 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 | 54 const char *string |
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 PREINIT: |
2e2593d95121
[gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents:
6508
diff
changeset
|
82 GList *l; |
2e2593d95121
[gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents:
6508
diff
changeset
|
83 CODE: |
2e2593d95121
[gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents:
6508
diff
changeset
|
84 gaim_perl_timeout_clear(); |
2e2593d95121
[gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents:
6508
diff
changeset
|
85 |
6508 | 86 |
87 BOOT: | |
88 GAIM_PERL_BOOT(Account); | |
6542
fe0294504602
[gaim-migrate @ 7064]
Christian Hammond <chipx86@chipx86.com>
parents:
6539
diff
changeset
|
89 GAIM_PERL_BOOT(BuddyList); |
fe0294504602
[gaim-migrate @ 7064]
Christian Hammond <chipx86@chipx86.com>
parents:
6539
diff
changeset
|
90 GAIM_PERL_BOOT(BuddyList__Group); |
fe0294504602
[gaim-migrate @ 7064]
Christian Hammond <chipx86@chipx86.com>
parents:
6539
diff
changeset
|
91 GAIM_PERL_BOOT(BuddyList__Buddy); |
fe0294504602
[gaim-migrate @ 7064]
Christian Hammond <chipx86@chipx86.com>
parents:
6539
diff
changeset
|
92 GAIM_PERL_BOOT(BuddyList__Chat); |
6584
6deef41364bd
[gaim-migrate @ 7106]
Christian Hammond <chipx86@chipx86.com>
parents:
6568
diff
changeset
|
93 GAIM_PERL_BOOT(Connection); |
6520
2e2593d95121
[gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents:
6508
diff
changeset
|
94 |