Mercurial > pidgin.yaz
annotate plugins/perl/common/Conversation_IM.xs @ 9808:db5dddc4dd5e
[gaim-migrate @ 10676]
A bit of ChangeLog rearranging
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 21 Aug 2004 22:48:02 +0000 |
parents | b14a7bc189b8 |
children |
rev | line source |
---|---|
6591 | 1 #include "module.h" |
2 | |
7120
b14a7bc189b8
[gaim-migrate @ 7687]
Christian Hammond <chipx86@chipx86.com>
parents:
6982
diff
changeset
|
3 MODULE = Gaim::Conversation::IM PACKAGE = Gaim::Conversation::IM PREFIX = gaim_conv_im_ |
6591 | 4 PROTOTYPES: ENABLE |
5 | |
6 Gaim::Conversation::IM | |
7 new(account, name) | |
8 Gaim::Account account | |
9 const char *name | |
10 CODE: | |
7120
b14a7bc189b8
[gaim-migrate @ 7687]
Christian Hammond <chipx86@chipx86.com>
parents:
6982
diff
changeset
|
11 RETVAL = GAIM_CONV_IM(gaim_conversation_new(GAIM_CONV_IM, account, name)); |
6591 | 12 OUTPUT: |
13 RETVAL | |
14 | |
15 void | |
16 DESTROY(im) | |
17 Gaim::Conversation::IM im | |
18 CODE: | |
7120
b14a7bc189b8
[gaim-migrate @ 7687]
Christian Hammond <chipx86@chipx86.com>
parents:
6982
diff
changeset
|
19 gaim_conversation_destroy(gaim_conv_im_get_conversation(im)); |
6591 | 20 |
21 | |
22 Gaim::Conversation | |
7120
b14a7bc189b8
[gaim-migrate @ 7687]
Christian Hammond <chipx86@chipx86.com>
parents:
6982
diff
changeset
|
23 gaim_conv_im_get_conversation(im) |
6591 | 24 Gaim::Conversation::IM im |
25 | |
26 void | |
7120
b14a7bc189b8
[gaim-migrate @ 7687]
Christian Hammond <chipx86@chipx86.com>
parents:
6982
diff
changeset
|
27 gaim_conv_im_write(im, who, message, flags) |
6591 | 28 Gaim::Conversation::IM im |
29 const char *who | |
30 const char *message | |
31 int flags | |
32 CODE: | |
7120
b14a7bc189b8
[gaim-migrate @ 7687]
Christian Hammond <chipx86@chipx86.com>
parents:
6982
diff
changeset
|
33 gaim_conv_im_write(im, who, message, flags, time(NULL)); |
6591 | 34 |
35 void | |
7120
b14a7bc189b8
[gaim-migrate @ 7687]
Christian Hammond <chipx86@chipx86.com>
parents:
6982
diff
changeset
|
36 gaim_conv_im_send(im, message) |
6591 | 37 Gaim::Conversation::IM im |
38 const char *message | |
39 | |
40 | |
41 MODULE = Gaim::Conversation::IM PACKAGE = Gaim PREFIX = gaim_ | |
42 PROTOTYPES: ENABLE | |
43 | |
44 void | |
45 ims() | |
46 PREINIT: | |
47 GList *l; | |
48 PPCODE: | |
49 for (l = gaim_get_ims(); l != NULL; l = l->next) | |
50 { | |
7120
b14a7bc189b8
[gaim-migrate @ 7687]
Christian Hammond <chipx86@chipx86.com>
parents:
6982
diff
changeset
|
51 XPUSHs(sv_2mortal(gaim_perl_bless_object(GAIM_CONV_IM(l->data), |
6591 | 52 "Gaim::Conversation"))); |
53 } |