plugins/perl/common/Conversation.xs

changeset 12819
50f53c5e6657
parent 12364
42b44fed7423
child 12871
3584d93ae63c
equal deleted inserted replaced
12818:c627896d5b1e 12819:50f53c5e6657
1 #include "module.h" 1 #include "module.h"
2 2
3 MODULE = Gaim::Conversation PACKAGE = Gaim::Conversation PREFIX = gaim_conversation_ 3 MODULE = Gaim::Conversation PACKAGE = Gaim PREFIX = gaim_
4 PROTOTYPES: ENABLE
5
6 void
7 gaim_get_ims()
8 PREINIT:
9 GList *l;
10 PPCODE:
11 for (l = gaim_get_ims(); l != NULL; l = l->next) {
12 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::Conversation")));
13 }
14
15 void
16 gaim_get_conversations()
17 PREINIT:
18 GList *l;
19 PPCODE:
20 for (l = gaim_get_conversations(); l != NULL; l = l->next) {
21 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::Conversation")));
22 }
23
24 void
25 gaim_get_chats()
26 PREINIT:
27 GList *l;
28 PPCODE:
29 for (l = gaim_get_chats(); l != NULL; l = l->next) {
30 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::Conversation")));
31 }
32
33 MODULE = Gaim::Conversation PACKAGE = Gaim::Conversations PREFIX = gaim_conversations_
4 PROTOTYPES: ENABLE 34 PROTOTYPES: ENABLE
5 35
6 void * 36 void *
7 gaim_conversations_get_handle() 37 gaim_conversations_get_handle()
8 38
10 gaim_conversations_init() 40 gaim_conversations_init()
11 41
12 void 42 void
13 gaim_conversations_uninit() 43 gaim_conversations_uninit()
14 44
15 void 45 MODULE = Gaim::Conversation PACKAGE = Gaim::Conversation PREFIX = gaim_conversation_
16 get_ims() 46 PROTOTYPES: ENABLE
17 PREINIT:
18 GList *l;
19 PPCODE:
20 for (l = gaim_get_ims(); l != NULL; l = l->next) {
21 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry")));
22 }
23
24 void
25 get_conversations()
26 PREINIT:
27 GList *l;
28 PPCODE:
29 for (l = gaim_get_conversations(); l != NULL; l = l->next) {
30 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry")));
31 }
32
33 void
34 get_chats()
35 PREINIT:
36 GList *l;
37 PPCODE:
38 for (l = gaim_get_chats(); l != NULL; l = l->next) {
39 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry")));
40 }
41 47
42 void 48 void
43 gaim_conversation_get_send_history(conv) 49 gaim_conversation_get_send_history(conv)
44 Gaim::Conversation conv 50 Gaim::Conversation conv
45 PREINIT: 51 PREINIT:
134 void 140 void
135 gaim_conversation_set_account(conv, account); 141 gaim_conversation_set_account(conv, account);
136 Gaim::Conversation conv 142 Gaim::Conversation conv
137 Gaim::Account account 143 Gaim::Account account
138 144
139
140
141 MODULE = Gaim::Conversation PACKAGE = Gaim::Conversation::IM PREFIX = gaim_conv_im_ 145 MODULE = Gaim::Conversation PACKAGE = Gaim::Conversation::IM PREFIX = gaim_conv_im_
142 PROTOTYPES: ENABLE 146 PROTOTYPES: ENABLE
143 147
144 Gaim::Conversation 148 Gaim::Conversation
145 gaim_conv_im_get_conversation(im) 149 gaim_conv_im_get_conversation(im)
222 226
223 gboolean 227 gboolean
224 gaim_conv_present_error(who, account, what) 228 gaim_conv_present_error(who, account, what)
225 const char *who 229 const char *who
226 Gaim::Account account 230 Gaim::Account account
227 const char *what 231 const char *what
228 232
229 void 233 void
230 gaim_conv_custom_smiley_close(conv, smile) 234 gaim_conv_custom_smiley_close(conv, smile)
231 Gaim::Conversation conv 235 Gaim::Conversation conv
232 const char *smile 236 const char *smile
233
234
235
236
237
238 237
239 MODULE = Gaim::Conversation PACKAGE = Gaim::Conversation::Chat PREFIX = gaim_conv_chat_ 238 MODULE = Gaim::Conversation PACKAGE = Gaim::Conversation::Chat PREFIX = gaim_conv_chat_
240 PROTOTYPES: ENABLE 239 PROTOTYPES: ENABLE
241 240
242 Gaim::Conversation 241 Gaim::Conversation
314 } 313 }
315 314
316 const char * 315 const char *
317 gaim_conv_chat_get_topic(chat) 316 gaim_conv_chat_get_topic(chat)
318 Gaim::Conversation::Chat chat 317 Gaim::Conversation::Chat chat
319
320
321 318
322 void 319 void
323 gaim_conv_chat_set_id(chat, id) 320 gaim_conv_chat_set_id(chat, id)
324 Gaim::Conversation::Chat chat 321 Gaim::Conversation::Chat chat
325 int id 322 int id

mercurial