Mercurial > pidgin.yaz
annotate plugins/signals-test.c @ 7516:4749299f199a
[gaim-migrate @ 8129]
Update signals-test.c for the changes in received-chat-msg.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sat, 15 Nov 2003 08:28:36 +0000 |
parents | 798e5dbb072f |
children | 767d3db53e17 |
rev | line source |
---|---|
6485 | 1 /* |
2 * Signals test plugin. | |
3 * | |
4 * Copyright (C) 2003 Christian Hammond. | |
5 * | |
6 * This program is free software; you can redistribute it and/or | |
7 * modify it under the terms of the GNU General Public License as | |
8 * published by the Free Software Foundation; either version 2 of the | |
9 * License, or (at your option) any later version. | |
10 * | |
11 * This program is distributed in the hope that it will be useful, but | |
12 * WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 * General Public License for more details. | |
15 * | |
16 * You should have received a copy of the GNU General Public License | |
17 * along with this program; if not, write to the Free Software | |
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
19 * 02111-1307, USA. | |
20 */ | |
21 #define SIGNAL_TEST_PLUGIN_ID "core-signals-test" | |
22 | |
23 #include <stdio.h> | |
24 | |
25 #include "internal.h" | |
26 #include "connection.h" | |
27 #include "conversation.h" | |
28 #include "core.h" | |
29 #include "debug.h" | |
30 #include "signals.h" | |
31 | |
32 /************************************************************************** | |
33 * Account subsystem signal callbacks | |
34 **************************************************************************/ | |
35 static void | |
36 account_connecting_cb(GaimAccount *account, void *data) | |
37 { | |
38 gaim_debug(GAIM_DEBUG_MISC, "signals test", "account-connecting (%s)\n", | |
39 gaim_account_get_username(account)); | |
40 } | |
41 | |
42 static void | |
43 account_away_cb(GaimAccount *account, const char *state, | |
44 const char *message, void *data) | |
45 { | |
46 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
47 "account-away (%s, %s, %s)\n", | |
48 gaim_account_get_username(account), state, message); | |
49 } | |
50 | |
51 static void | |
52 account_setting_info_cb(GaimAccount *account, const char *info, void *data) | |
53 { | |
54 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
55 "account-setting-info (%s, %s)\n", | |
56 gaim_account_get_username(account), info); | |
57 } | |
58 | |
59 static void | |
60 account_set_info_cb(GaimAccount *account, const char *info, void *data) | |
61 { | |
62 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
63 "account-set-info (%s, %s)\n", | |
64 gaim_account_get_username(account), info); | |
65 } | |
66 | |
67 static void | |
68 account_warned_cb(GaimAccount *account, const char *warner, int level, | |
69 void *data) | |
70 { | |
71 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
72 "account-warned (%s, %s, %d)\n", | |
73 gaim_account_get_username(account), warner, level); | |
74 } | |
75 | |
76 /************************************************************************** | |
77 * Buddy List subsystem signal callbacks | |
78 **************************************************************************/ | |
79 static void | |
7009
d77e99c55b40
[gaim-migrate @ 7568]
Christian Hammond <chipx86@chipx86.com>
parents:
6509
diff
changeset
|
80 buddy_away_cb(GaimBuddy *buddy, void *data) |
6485 | 81 { |
82 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
83 "buddy-away (%s)\n", buddy->name); | |
84 } | |
85 | |
86 static void | |
7009
d77e99c55b40
[gaim-migrate @ 7568]
Christian Hammond <chipx86@chipx86.com>
parents:
6509
diff
changeset
|
87 buddy_back_cb(GaimBuddy *buddy, void *data) |
6485 | 88 { |
89 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
90 "buddy-back (%s)\n", buddy->name); | |
91 } | |
92 | |
93 static void | |
7009
d77e99c55b40
[gaim-migrate @ 7568]
Christian Hammond <chipx86@chipx86.com>
parents:
6509
diff
changeset
|
94 buddy_idle_cb(GaimBuddy *buddy, void *data) |
6485 | 95 { |
96 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
97 "buddy-idle (%s)\n", buddy->name); | |
98 } | |
99 | |
100 static void | |
7009
d77e99c55b40
[gaim-migrate @ 7568]
Christian Hammond <chipx86@chipx86.com>
parents:
6509
diff
changeset
|
101 buddy_unidle_cb(GaimBuddy *buddy, void *data) |
6485 | 102 { |
103 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
104 "buddy-unidle (%s)\n", buddy->name); | |
105 } | |
106 | |
107 static void | |
7009
d77e99c55b40
[gaim-migrate @ 7568]
Christian Hammond <chipx86@chipx86.com>
parents:
6509
diff
changeset
|
108 buddy_signed_on_cb(GaimBuddy *buddy, void *data) |
6485 | 109 { |
110 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
111 "buddy-signed-on (%s)\n", buddy->name); | |
112 } | |
113 | |
114 static void | |
7009
d77e99c55b40
[gaim-migrate @ 7568]
Christian Hammond <chipx86@chipx86.com>
parents:
6509
diff
changeset
|
115 buddy_signed_off_cb(GaimBuddy *buddy, void *data) |
6485 | 116 { |
117 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
118 "buddy-signed-off (%s)\n", buddy->name); | |
119 } | |
120 | |
121 /************************************************************************** | |
122 * Connection subsystem signal callbacks | |
123 **************************************************************************/ | |
124 static void | |
125 signing_on_cb(GaimConnection *gc, void *data) | |
126 { | |
127 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
128 "signing-on (%s)\n", | |
129 gaim_account_get_username(gaim_connection_get_account(gc))); | |
130 } | |
131 | |
132 static void | |
133 signed_on_cb(GaimConnection *gc, void *data) | |
134 { | |
135 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
136 "signed-on (%s)\n", | |
137 gaim_account_get_username(gaim_connection_get_account(gc))); | |
138 } | |
139 | |
140 static void | |
141 signing_off_cb(GaimConnection *gc, void *data) | |
142 { | |
143 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
144 "signing-off (%s)\n", | |
145 gaim_account_get_username(gaim_connection_get_account(gc))); | |
146 } | |
147 | |
148 static void | |
149 signed_off_cb(GaimConnection *gc, void *data) | |
150 { | |
151 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
152 "signed-off (%s)\n", | |
153 gaim_account_get_username(gaim_connection_get_account(gc))); | |
154 } | |
155 | |
156 /************************************************************************** | |
157 * Conversation subsystem signal callbacks | |
158 **************************************************************************/ | |
159 static gboolean | |
7503 | 160 displaying_im_msg_cb(GaimAccount *account, GaimConversation *conv, |
161 char **buffer, void *data) | |
6485 | 162 { |
163 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
164 "displaying-im-msg (%s, %s)\n", | |
165 gaim_conversation_get_name(conv), *buffer); | |
166 | |
167 return FALSE; | |
168 } | |
169 | |
170 static void | |
171 displayed_im_msg_cb(GaimConversation *conv, const char *buffer, void *data) | |
172 { | |
173 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
174 "displayed-im-msg (%s, %s)\n", | |
175 gaim_conversation_get_name(conv), buffer); | |
176 } | |
177 | |
7503 | 178 static void |
6509 | 179 sending_im_msg_cb(GaimAccount *account, char *recipient, char **buffer, void *data) |
6485 | 180 { |
181 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
6509 | 182 "sending-im-msg (%s, %s, %s)\n", |
183 gaim_account_get_username(account), recipient, | |
184 *buffer); | |
6485 | 185 |
186 } | |
187 | |
188 static void | |
6509 | 189 sent_im_msg_cb(GaimAccount *account, const char *recipient, const char *buffer, void *data) |
6485 | 190 { |
191 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
6509 | 192 "sent-im-msg (%s, %s, %s)\n", |
193 gaim_account_get_username(account), | |
194 recipient, buffer); | |
6485 | 195 } |
196 | |
197 static gboolean | |
6509 | 198 received_im_msg_cb(GaimAccount *account, char **sender, char **buffer, |
199 int *flags, void *data) | |
6485 | 200 { |
201 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
6509 | 202 "received-im-msg (%s, %s, %s, %d)\n", |
203 gaim_account_get_username(account), *sender, *buffer, *flags); | |
6485 | 204 |
205 return FALSE; | |
206 } | |
207 | |
208 static gboolean | |
7503 | 209 displaying_chat_msg_cb(GaimAccount *account, GaimConversation *conv, |
210 char **buffer, void *data) | |
6485 | 211 { |
212 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
213 "displaying-chat-msg (%s, %s)\n", | |
214 gaim_conversation_get_name(conv), *buffer); | |
215 | |
6486
fab81e4b885c
[gaim-migrate @ 7000]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
216 return FALSE; |
6485 | 217 } |
218 | |
219 static void | |
220 displayed_chat_msg_cb(GaimConversation *conv, const char *buffer, void *data) | |
221 { | |
222 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
223 "displayed-chat-msg (%s, %s)\n", | |
224 gaim_conversation_get_name(conv), buffer); | |
225 } | |
226 | |
227 static gboolean | |
6509 | 228 sending_chat_msg_cb(GaimAccount *account, char **buffer, int id, void *data) |
6485 | 229 { |
230 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
6509 | 231 "sending-chat-msg (%s, %s, %d)\n", |
232 gaim_account_get_username(account), *buffer, id); | |
6485 | 233 |
234 return FALSE; | |
235 } | |
236 | |
237 static void | |
6509 | 238 sent_chat_msg_cb(GaimAccount *account, const char *buffer, int id, void *data) |
6485 | 239 { |
240 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
6509 | 241 "sent-chat-msg (%s, %s, %d)\n", |
242 gaim_account_get_username(account), buffer, id); | |
6485 | 243 } |
244 | |
245 static gboolean | |
6509 | 246 received_chat_msg_cb(GaimAccount *account, char **sender, char **buffer, |
7516
4749299f199a
[gaim-migrate @ 8129]
Christian Hammond <chipx86@chipx86.com>
parents:
7503
diff
changeset
|
247 GaimConversation *chat, void *data) |
6485 | 248 { |
249 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
7516
4749299f199a
[gaim-migrate @ 8129]
Christian Hammond <chipx86@chipx86.com>
parents:
7503
diff
changeset
|
250 "received-chat-msg (%s, %s, %s, %s, %s)\n", |
4749299f199a
[gaim-migrate @ 8129]
Christian Hammond <chipx86@chipx86.com>
parents:
7503
diff
changeset
|
251 gaim_account_get_username(account), *sender, *buffer, |
4749299f199a
[gaim-migrate @ 8129]
Christian Hammond <chipx86@chipx86.com>
parents:
7503
diff
changeset
|
252 gaim_conversation_get_name(chat)); |
6485 | 253 |
254 return FALSE; | |
255 } | |
256 | |
257 static void | |
258 conversation_switching_cb(GaimConversation *old_conv, | |
259 GaimConversation *new_conv, void *data) | |
260 { | |
261 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
262 "conversation-switching (%s, %s)\n", | |
263 gaim_conversation_get_name(old_conv), | |
264 gaim_conversation_get_name(new_conv)); | |
265 } | |
266 | |
267 static void | |
268 conversation_switched_cb(GaimConversation *old_conv, | |
269 GaimConversation *new_conv, void *data) | |
270 { | |
271 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
272 "conversation-switched (%s, %s)\n", | |
273 gaim_conversation_get_name(old_conv), | |
274 gaim_conversation_get_name(new_conv)); | |
275 } | |
276 | |
277 static void | |
278 conversation_created_cb(GaimConversation *conv, void *data) | |
279 { | |
280 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
281 "conversation-created (%s)\n", | |
282 gaim_conversation_get_name(conv)); | |
283 } | |
284 | |
285 static void | |
286 deleting_conversation_cb(GaimConversation *conv, void *data) | |
287 { | |
288 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
289 "deleting-conversation (%s)\n", | |
290 gaim_conversation_get_name(conv)); | |
291 } | |
292 | |
293 static void | |
294 buddy_typing_cb(GaimConversation *conv, void *data) | |
295 { | |
296 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
297 "buddy-typing (%s)\n", | |
298 gaim_conversation_get_name(conv)); | |
299 } | |
300 | |
301 static void | |
302 chat_buddy_joining_cb(GaimConversation *conv, const char *user, void *data) | |
303 { | |
304 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
305 "chat-buddy-joining (%s, %s)\n", | |
306 gaim_conversation_get_name(conv), user); | |
307 } | |
308 | |
309 static void | |
310 chat_buddy_joined_cb(GaimConversation *conv, const char *user, void *data) | |
311 { | |
312 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
313 "chat-buddy-joined (%s, %s)\n", | |
314 gaim_conversation_get_name(conv), user); | |
315 } | |
316 | |
317 static void | |
318 chat_buddy_leaving_cb(GaimConversation *conv, const char *user, | |
319 const char *reason, void *data) | |
320 { | |
321 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
322 "chat-buddy-leaving (%s, %s, %s)\n", | |
323 gaim_conversation_get_name(conv), user, reason); | |
324 } | |
325 | |
326 static void | |
327 chat_buddy_left_cb(GaimConversation *conv, const char *user, | |
328 const char *reason, void *data) | |
329 { | |
330 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
331 "chat-buddy-left (%s, %s, %s)\n", | |
332 gaim_conversation_get_name(conv), user, reason); | |
333 } | |
334 | |
335 static void | |
336 chat_inviting_user_cb(GaimConversation *conv, const char *name, | |
337 const char *reason, void *data) | |
338 { | |
339 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
340 "chat-inviting-user (%s, %s, %s)\n", | |
341 gaim_conversation_get_name(conv), name, reason); | |
342 } | |
343 | |
344 static void | |
345 chat_invited_user_cb(GaimConversation *conv, const char *name, | |
346 const char *reason, void *data) | |
347 { | |
348 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
349 "chat-invited-user (%s, %s, %s)\n", | |
350 gaim_conversation_get_name(conv), name, reason); | |
351 } | |
352 | |
353 static void | |
354 chat_invited_cb(GaimAccount *account, const char *inviter, | |
355 const char *room_name, const char *message, void *data) | |
356 { | |
357 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
358 "chat-invited (%s, %s, %s, %s)\n", | |
359 gaim_account_get_username(account), inviter, | |
360 room_name, message); | |
361 } | |
362 | |
363 static void | |
364 chat_joined_cb(GaimConversation *conv, void *data) | |
365 { | |
366 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
367 "chat-joined (%s)\n", | |
368 gaim_conversation_get_name(conv)); | |
369 } | |
370 | |
371 static void | |
372 chat_left_cb(GaimConversation *conv, void *data) | |
373 { | |
374 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
375 "chat-left (%s)\n", | |
376 gaim_conversation_get_name(conv)); | |
377 } | |
378 | |
379 /************************************************************************** | |
380 * Core signal callbacks | |
381 **************************************************************************/ | |
382 static void | |
383 quitting_cb(void *data) | |
384 { | |
385 gaim_debug(GAIM_DEBUG_MISC, "signals test", | |
386 "quitting ()\n"); | |
387 } | |
388 | |
389 /************************************************************************** | |
390 * Plugin stuff | |
391 **************************************************************************/ | |
392 static gboolean | |
393 plugin_load(GaimPlugin *plugin) | |
394 { | |
395 void *core_handle = gaim_get_core(); | |
396 void *blist_handle = gaim_blist_get_handle(); | |
397 void *conn_handle = gaim_connections_get_handle(); | |
398 void *conv_handle = gaim_conversations_get_handle(); | |
399 void *accounts_handle = gaim_accounts_get_handle(); | |
400 | |
401 /* Accounts subsystem signals */ | |
402 gaim_signal_connect(accounts_handle, "account-connecting", | |
403 plugin, GAIM_CALLBACK(account_connecting_cb), NULL); | |
404 gaim_signal_connect(accounts_handle, "account-away", | |
405 plugin, GAIM_CALLBACK(account_away_cb), NULL); | |
406 gaim_signal_connect(accounts_handle, "account-setting-info", | |
407 plugin, GAIM_CALLBACK(account_setting_info_cb), NULL); | |
408 gaim_signal_connect(accounts_handle, "account-set-info", | |
409 plugin, GAIM_CALLBACK(account_set_info_cb), NULL); | |
410 gaim_signal_connect(accounts_handle, "account-warned", | |
411 plugin, GAIM_CALLBACK(account_warned_cb), NULL); | |
412 | |
413 /* Buddy List subsystem signals */ | |
414 gaim_signal_connect(blist_handle, "buddy-away", | |
415 plugin, GAIM_CALLBACK(buddy_away_cb), NULL); | |
416 gaim_signal_connect(blist_handle, "buddy-back", | |
417 plugin, GAIM_CALLBACK(buddy_back_cb), NULL); | |
418 gaim_signal_connect(blist_handle, "buddy-idle", | |
419 plugin, GAIM_CALLBACK(buddy_idle_cb), NULL); | |
420 gaim_signal_connect(blist_handle, "buddy-unidle", | |
421 plugin, GAIM_CALLBACK(buddy_unidle_cb), NULL); | |
422 gaim_signal_connect(blist_handle, "buddy-signed-on", | |
423 plugin, GAIM_CALLBACK(buddy_signed_on_cb), NULL); | |
424 gaim_signal_connect(blist_handle, "buddy-signed-off", | |
425 plugin, GAIM_CALLBACK(buddy_signed_off_cb), NULL); | |
426 | |
427 /* Connection subsystem signals */ | |
428 gaim_signal_connect(conn_handle, "signing-on", | |
429 plugin, GAIM_CALLBACK(signing_on_cb), NULL); | |
430 gaim_signal_connect(conn_handle, "signed-on", | |
431 plugin, GAIM_CALLBACK(signed_on_cb), NULL); | |
432 gaim_signal_connect(conn_handle, "signing-off", | |
433 plugin, GAIM_CALLBACK(signing_off_cb), NULL); | |
434 gaim_signal_connect(conn_handle, "signed-off", | |
435 plugin, GAIM_CALLBACK(signed_off_cb), NULL); | |
436 | |
437 /* Conversations subsystem signals */ | |
438 gaim_signal_connect(conv_handle, "displaying-im-msg", | |
439 plugin, GAIM_CALLBACK(displaying_im_msg_cb), NULL); | |
6489 | 440 gaim_signal_connect(conv_handle, "displayed-im-msg", |
6485 | 441 plugin, GAIM_CALLBACK(displayed_im_msg_cb), NULL); |
442 gaim_signal_connect(conv_handle, "sending-im-msg", | |
443 plugin, GAIM_CALLBACK(sending_im_msg_cb), NULL); | |
444 gaim_signal_connect(conv_handle, "sent-im-msg", | |
445 plugin, GAIM_CALLBACK(sent_im_msg_cb), NULL); | |
446 gaim_signal_connect(conv_handle, "received-im-msg", | |
447 plugin, GAIM_CALLBACK(received_im_msg_cb), NULL); | |
448 gaim_signal_connect(conv_handle, "displaying-chat-msg", | |
449 plugin, GAIM_CALLBACK(displaying_chat_msg_cb), NULL); | |
450 gaim_signal_connect(conv_handle, "displayed-chat-msg", | |
451 plugin, GAIM_CALLBACK(displayed_chat_msg_cb), NULL); | |
452 gaim_signal_connect(conv_handle, "sending-chat-msg", | |
453 plugin, GAIM_CALLBACK(sending_chat_msg_cb), NULL); | |
454 gaim_signal_connect(conv_handle, "sent-chat-msg", | |
455 plugin, GAIM_CALLBACK(sent_chat_msg_cb), NULL); | |
456 gaim_signal_connect(conv_handle, "received-chat-msg", | |
457 plugin, GAIM_CALLBACK(received_chat_msg_cb), NULL); | |
458 gaim_signal_connect(conv_handle, "conversation-switching", | |
459 plugin, GAIM_CALLBACK(conversation_switching_cb), NULL); | |
460 gaim_signal_connect(conv_handle, "conversation-switched", | |
461 plugin, GAIM_CALLBACK(conversation_switched_cb), NULL); | |
462 gaim_signal_connect(conv_handle, "conversation-created", | |
463 plugin, GAIM_CALLBACK(conversation_created_cb), NULL); | |
464 gaim_signal_connect(conv_handle, "deleting-conversation", | |
465 plugin, GAIM_CALLBACK(deleting_conversation_cb), NULL); | |
466 gaim_signal_connect(conv_handle, "buddy-typing", | |
467 plugin, GAIM_CALLBACK(buddy_typing_cb), NULL); | |
468 gaim_signal_connect(conv_handle, "chat-buddy-joining", | |
469 plugin, GAIM_CALLBACK(chat_buddy_joining_cb), NULL); | |
470 gaim_signal_connect(conv_handle, "chat-buddy-joined", | |
471 plugin, GAIM_CALLBACK(chat_buddy_joined_cb), NULL); | |
472 gaim_signal_connect(conv_handle, "chat-buddy-leaving", | |
473 plugin, GAIM_CALLBACK(chat_buddy_leaving_cb), NULL); | |
474 gaim_signal_connect(conv_handle, "chat-buddy-left", | |
475 plugin, GAIM_CALLBACK(chat_buddy_left_cb), NULL); | |
476 gaim_signal_connect(conv_handle, "chat-inviting-user", | |
477 plugin, GAIM_CALLBACK(chat_inviting_user_cb), NULL); | |
478 gaim_signal_connect(conv_handle, "chat-invited-user", | |
479 plugin, GAIM_CALLBACK(chat_invited_user_cb), NULL); | |
480 gaim_signal_connect(conv_handle, "chat-invited", | |
481 plugin, GAIM_CALLBACK(chat_invited_cb), NULL); | |
482 gaim_signal_connect(conv_handle, "chat-joined", | |
483 plugin, GAIM_CALLBACK(chat_joined_cb), NULL); | |
484 gaim_signal_connect(conv_handle, "chat-left", | |
485 plugin, GAIM_CALLBACK(chat_left_cb), NULL); | |
486 | |
487 /* Core signals */ | |
488 gaim_signal_connect(core_handle, "quitting", | |
489 plugin, GAIM_CALLBACK(quitting_cb), NULL); | |
490 | |
491 return TRUE; | |
492 } | |
493 | |
494 static GaimPluginInfo info = | |
495 { | |
496 2, /**< api_version */ | |
497 GAIM_PLUGIN_STANDARD, /**< type */ | |
498 NULL, /**< ui_requirement */ | |
499 0, /**< flags */ | |
500 NULL, /**< dependencies */ | |
501 GAIM_PRIORITY_DEFAULT, /**< priority */ | |
502 | |
503 SIGNAL_TEST_PLUGIN_ID, /**< id */ | |
504 N_("Signals Test"), /**< name */ | |
505 VERSION, /**< version */ | |
506 /** summary */ | |
507 N_("Test to see that all signals are working properly."), | |
508 /** description */ | |
509 N_("Test to see that all signals are working properly."), | |
510 "Christian Hammond <chipx86@gnupdate.org>", /**< author */ | |
511 GAIM_WEBSITE, /**< homepage */ | |
512 | |
513 plugin_load, /**< load */ | |
514 NULL, /**< unload */ | |
515 NULL, /**< destroy */ | |
516 | |
517 NULL, /**< ui_info */ | |
518 NULL /**< extra_info */ | |
519 }; | |
520 | |
521 static void | |
522 init_plugin(GaimPlugin *plugin) | |
523 { | |
524 } | |
525 | |
526 GAIM_INIT_PLUGIN(signalstest, init_plugin, info) |