11118
|
1 #include "module.h"
|
|
2
|
|
3 MODULE = Gaim::Serv PACKAGE = Gaim::Serv PREFIX = serv_
|
|
4 PROTOTYPES: ENABLE
|
|
5
|
|
6
|
|
7 void
|
|
8 serv_add_deny(con, a)
|
|
9 Gaim::Connection con
|
|
10 const char * a
|
|
11
|
|
12 void
|
|
13 serv_add_permit(a, b)
|
|
14 Gaim::Connection a
|
|
15 const char * b
|
|
16
|
|
17 void
|
|
18 serv_alias_buddy(buddy)
|
|
19 Gaim::BuddyList::Buddy buddy
|
|
20
|
|
21 void
|
|
22 serv_chat_invite(con, a, b, c)
|
|
23 Gaim::Connection con
|
|
24 int a
|
|
25 const char * b
|
|
26 const char * c
|
|
27
|
|
28 void
|
|
29 serv_chat_leave(a, b)
|
|
30 Gaim::Connection a
|
|
31 int b
|
|
32
|
|
33 int
|
|
34 serv_chat_send(con, a, b)
|
|
35 Gaim::Connection con
|
|
36 int a
|
|
37 const char * b
|
|
38
|
|
39 void
|
|
40 serv_chat_whisper(con, a, b, c)
|
|
41 Gaim::Connection con
|
|
42 int a
|
|
43 const char * b
|
|
44 const char * c
|
|
45
|
|
46 void
|
|
47 serv_get_info(con, a)
|
|
48 Gaim::Connection con
|
|
49 const char * a
|
|
50
|
|
51 void
|
|
52 serv_got_alias(gc, who, alias)
|
|
53 Gaim::Connection gc
|
|
54 const char *who
|
|
55 const char *alias
|
|
56
|
|
57 void
|
|
58 serv_got_chat_in(g, id, who, chatflags, message, mtime)
|
|
59 Gaim::Connection g
|
|
60 int id
|
|
61 const char *who
|
|
62 Gaim::ConvChatFlags chatflags
|
|
63 const char *message
|
|
64 time_t mtime
|
|
65
|
|
66 void
|
|
67 serv_got_chat_invite(gc, name, who, message, components)
|
|
68 Gaim::Connection gc
|
|
69 const char *name
|
|
70 const char *who
|
|
71 const char *message
|
|
72 SV * components
|
|
73 INIT:
|
|
74 HV * t_HV;
|
|
75 HE * t_HE;
|
|
76 SV * t_SV;
|
|
77 GHashTable * t_GHash;
|
|
78 I32 len;
|
|
79 char *t_key, *t_value;
|
|
80 CODE:
|
|
81 t_HV = (HV *)SvRV(components);
|
|
82 t_GHash = g_hash_table_new(NULL, NULL);
|
|
83
|
|
84 for (t_HE = hv_iternext(t_HV); t_HE != NULL; t_HE = hv_iternext(t_HV) ) {
|
|
85 t_key = hv_iterkey(t_HE, &len);
|
|
86 t_SV = *hv_fetch(t_HV, t_key, len, 0);
|
|
87 t_value = SvPV(t_SV, PL_na);
|
|
88
|
|
89 g_hash_table_insert(t_GHash, t_key, t_value);
|
|
90 }
|
|
91 serv_got_chat_invite(gc, name, who, message, t_GHash);
|
|
92
|
|
93 void
|
|
94 serv_got_chat_left(g, id)
|
|
95 Gaim::Connection g
|
|
96 int id
|
|
97
|
|
98 void
|
|
99 serv_got_im(gc, who, msg, imflags, mtime)
|
|
100 Gaim::Connection gc
|
|
101 const char *who
|
|
102 const char *msg
|
|
103 Gaim::ConvImFlags imflags
|
|
104 time_t mtime
|
|
105
|
|
106 Gaim::Conversation
|
|
107 serv_got_joined_chat(gc, id, name)
|
|
108 Gaim::Connection gc
|
|
109 int id
|
|
110 const char *name
|
|
111
|
|
112 void
|
|
113 serv_got_typing(gc, name, timeout, state)
|
|
114 Gaim::Connection gc
|
|
115 const char *name
|
|
116 int timeout
|
|
117 Gaim::TypingState state
|
|
118
|
|
119 void
|
|
120 serv_got_typing_stopped(gc, name)
|
|
121 Gaim::Connection gc
|
|
122 const char *name
|
|
123
|
|
124 void
|
|
125 serv_join_chat(con, components)
|
|
126 Gaim::Connection con
|
|
127 SV * components
|
|
128 INIT:
|
|
129 HV * t_HV;
|
|
130 HE * t_HE;
|
|
131 SV * t_SV;
|
|
132 GHashTable * t_GHash;
|
|
133 I32 len;
|
|
134 char *t_key, *t_value;
|
|
135 CODE:
|
|
136 t_HV = (HV *)SvRV(components);
|
|
137 t_GHash = g_hash_table_new(NULL, NULL);
|
|
138
|
|
139 for (t_HE = hv_iternext(t_HV); t_HE != NULL; t_HE = hv_iternext(t_HV) ) {
|
|
140 t_key = hv_iterkey(t_HE, &len);
|
|
141 t_SV = *hv_fetch(t_HV, t_key, len, 0);
|
|
142 t_value = SvPV(t_SV, PL_na);
|
|
143
|
|
144 g_hash_table_insert(t_GHash, t_key, t_value);
|
|
145 }
|
|
146 serv_join_chat(con, t_GHash);
|
|
147
|
|
148 void
|
|
149 serv_move_buddy(buddy, group1, group2)
|
|
150 Gaim::BuddyList::Buddy buddy
|
|
151 Gaim::BuddyList::Group group1
|
|
152 Gaim::BuddyList::Group group2
|
|
153
|
|
154 void
|
|
155 serv_reject_chat(con, components)
|
|
156 Gaim::Connection con
|
|
157 SV * components
|
|
158 INIT:
|
|
159 HV * t_HV;
|
|
160 HE * t_HE;
|
|
161 SV * t_SV;
|
|
162 GHashTable * t_GHash;
|
|
163 I32 len;
|
|
164 char *t_key, *t_value;
|
|
165 CODE:
|
|
166 t_HV = (HV *)SvRV(components);
|
|
167 t_GHash = g_hash_table_new(NULL, NULL);
|
|
168
|
|
169 for (t_HE = hv_iternext(t_HV); t_HE != NULL; t_HE = hv_iternext(t_HV) ) {
|
|
170 t_key = hv_iterkey(t_HE, &len);
|
|
171 t_SV = *hv_fetch(t_HV, t_key, len, 0);
|
|
172 t_value = SvPV(t_SV, PL_na);
|
|
173
|
|
174 g_hash_table_insert(t_GHash, t_key, t_value);
|
|
175 }
|
|
176 serv_reject_chat(con, t_GHash);
|
|
177
|
|
178 void
|
|
179 serv_rem_deny(con, a)
|
|
180 Gaim::Connection con
|
|
181 const char * a
|
|
182
|
|
183 void
|
|
184 serv_rem_permit(con, a)
|
|
185 Gaim::Connection con
|
11643
|
186 const char * a
|
11118
|
187
|
|
188 void
|
|
189 serv_send_file(gc, who, file)
|
|
190 Gaim::Connection gc
|
|
191 const char *who
|
|
192 const char *file
|
|
193
|
|
194 int
|
|
195 serv_send_im(con, a, b, flags )
|
|
196 Gaim::Connection con
|
|
197 const char * a
|
|
198 const char * b
|
|
199 Gaim::ConvImFlags flags
|
|
200
|
|
201 int
|
|
202 serv_send_typing(con, a, b)
|
|
203 Gaim::Connection con
|
|
204 const char * a
|
|
205 int b
|
|
206
|
|
207 void
|
|
208 serv_set_buddyicon(gc, filename)
|
|
209 Gaim::Connection gc
|
|
210 const char *filename
|
|
211
|
|
212 void
|
|
213 serv_set_idle(con, a)
|
|
214 Gaim::Connection con
|
|
215 int a
|
|
216
|
|
217 void
|
|
218 serv_set_info(con, a)
|
|
219 Gaim::Connection con
|
|
220 const char * a
|
|
221
|
|
222 void
|
|
223 serv_set_permit_deny(con)
|
|
224 Gaim::Connection con
|
|
225
|
|
226 void
|
|
227 serv_touch_idle(con)
|
|
228 Gaim::Connection con
|
|
229
|