plugins/perl/common/Conversation_Chat.xs

changeset 7120
83dba78f8518
parent 6618
dc8e64c0f2f1
equal deleted inserted replaced
7119:4a2b0f251cfa 7120:83dba78f8518
1 #include "module.h" 1 #include "module.h"
2 2
3 MODULE = Gaim::Conversation::Chat PACKAGE = Gaim::Conversation::Chat PREFIX = gaim_chat_ 3 MODULE = Gaim::Conversation::Chat PACKAGE = Gaim::Conversation::Chat PREFIX = gaim_conv_chat_
4 PROTOTYPES: ENABLE 4 PROTOTYPES: ENABLE
5 5
6 Gaim::Conversation::Chat 6 Gaim::Conversation::Chat
7 new(account, name) 7 new(account, name)
8 Gaim::Account account 8 Gaim::Account account
9 const char *name 9 const char *name
10 CODE: 10 CODE:
11 RETVAL = GAIM_CHAT(gaim_conversation_new(GAIM_CONV_CHAT, account, name)); 11 RETVAL = GAIM_CONV_CHAT(gaim_conversation_new(GAIM_CONV_CHAT, account, name));
12 OUTPUT: 12 OUTPUT:
13 RETVAL 13 RETVAL
14 14
15 void 15 void
16 DESTROY(chat) 16 DESTROY(chat)
17 Gaim::Conversation::Chat chat 17 Gaim::Conversation::Chat chat
18 CODE: 18 CODE:
19 gaim_conversation_destroy(gaim_chat_get_conversation(chat)); 19 gaim_conversation_destroy(gaim_conv_chat_get_conversation(chat));
20 20
21 21
22 Gaim::Conversation 22 Gaim::Conversation
23 gaim_chat_get_conversation(chat) 23 gaim_conv_chat_get_conversation(chat)
24 Gaim::Conversation::Chat chat 24 Gaim::Conversation::Chat chat
25 25
26 void 26 void
27 users(chat) 27 users(chat)
28 Gaim::Conversation::Chat chat 28 Gaim::Conversation::Chat chat
29 PREINIT: 29 PREINIT:
30 GList *l; 30 GList *l;
31 PPCODE: 31 PPCODE:
32 for (l = gaim_chat_get_users(chat); l != NULL; l = l->next) 32 for (l = gaim_conv_chat_get_users(chat); l != NULL; l = l->next)
33 { 33 {
34 XPUSHs(sv_2mortal(newSVpv(l->data, 0))); 34 XPUSHs(sv_2mortal(newSVpv(l->data, 0)));
35 } 35 }
36 36
37 void 37 void
38 gaim_chat_ignore(chat, name) 38 gaim_conv_chat_ignore(chat, name)
39 Gaim::Conversation::Chat chat 39 Gaim::Conversation::Chat chat
40 const char *name 40 const char *name
41 41
42 void 42 void
43 gaim_chat_unignore(chat, name) 43 gaim_conv_chat_unignore(chat, name)
44 Gaim::Conversation::Chat chat 44 Gaim::Conversation::Chat chat
45 const char *name 45 const char *name
46 46
47 void 47 void
48 ignored_users(chat) 48 ignored_users(chat)
49 Gaim::Conversation::Chat chat 49 Gaim::Conversation::Chat chat
50 PREINIT: 50 PREINIT:
51 GList *l; 51 GList *l;
52 PPCODE: 52 PPCODE:
53 for (l = gaim_chat_get_ignored(chat); l != NULL; l = l->next) 53 for (l = gaim_conv_chat_get_ignored(chat); l != NULL; l = l->next)
54 { 54 {
55 XPUSHs(sv_2mortal(newSVpv(l->data, 0))); 55 XPUSHs(sv_2mortal(newSVpv(l->data, 0)));
56 } 56 }
57 57
58 gboolean 58 gboolean
59 gaim_chat_is_user_ignored(chat, user) 59 gaim_conv_chat_is_user_ignored(chat, user)
60 Gaim::Conversation::Chat chat 60 Gaim::Conversation::Chat chat
61 const char *user 61 const char *user
62 62
63 void 63 void
64 gaim_chat_set_topic(chat, who, topic) 64 gaim_conv_chat_set_topic(chat, who, topic)
65 Gaim::Conversation::Chat chat 65 Gaim::Conversation::Chat chat
66 const char *who 66 const char *who
67 const char *topic 67 const char *topic
68 68
69 const char * 69 const char *
70 gaim_chat_get_topic(chat) 70 gaim_conv_chat_get_topic(chat)
71 Gaim::Conversation::Chat chat 71 Gaim::Conversation::Chat chat
72 72
73 int 73 int
74 gaim_chat_get_id(chat) 74 gaim_conv_chat_get_id(chat)
75 Gaim::Conversation::Chat chat 75 Gaim::Conversation::Chat chat
76 76
77 void 77 void
78 write(chat, who, message, flags) 78 write(chat, who, message, flags)
79 Gaim::Conversation::Chat chat 79 Gaim::Conversation::Chat chat
80 const char *who 80 const char *who
81 const char *message 81 const char *message
82 int flags 82 int flags
83 CODE: 83 CODE:
84 gaim_chat_write(chat, who, message, flags, time(NULL)); 84 gaim_conv_chat_write(chat, who, message, flags, time(NULL));
85 85
86 void 86 void
87 gaim_chat_send(chat, message) 87 gaim_conv_chat_send(chat, message)
88 Gaim::Conversation::Chat chat 88 Gaim::Conversation::Chat chat
89 const char *message 89 const char *message
90 90
91 91
92 MODULE = Gaim::Conversation::Chat PACKAGE = Gaim PREFIX = gaim_ 92 MODULE = Gaim::Conversation::Chat PACKAGE = Gaim PREFIX = gaim_

mercurial