Mercurial > pidgin.yaz
annotate plugins/signals-test.c @ 11202:ff4884029708
[gaim-migrate @ 13330]
Some compile warning fixes. It's very possible the perl warnings
were caused by some of my changes to the core last week
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Mon, 08 Aug 2005 02:21:57 +0000 |
| parents | e4459e8ccfb5 |
| children | bb0d7b719af2 |
| 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" | |
|
10684
72a5babfa8b4
[gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents:
10104
diff
changeset
|
26 #include "cipher.h" |
| 6485 | 27 #include "connection.h" |
| 28 #include "conversation.h" | |
| 29 #include "core.h" | |
| 30 #include "debug.h" | |
| 31 #include "signals.h" | |
| 9954 | 32 #include "version.h" |
| 6485 | 33 |
| 34 /************************************************************************** | |
| 35 * Account subsystem signal callbacks | |
| 36 **************************************************************************/ | |
| 37 static void | |
| 38 account_connecting_cb(GaimAccount *account, void *data) | |
| 39 { | |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
40 gaim_debug_misc("signals test", "account-connecting (%s)\n", |
|
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
41 gaim_account_get_username(account)); |
| 6485 | 42 } |
| 43 | |
| 44 static void | |
| 45 account_away_cb(GaimAccount *account, const char *state, | |
| 46 const char *message, void *data) | |
| 47 { | |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
48 gaim_debug_misc("signals test", "account-away (%s, %s, %s)\n", |
|
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
49 gaim_account_get_username(account), state, message); |
| 6485 | 50 } |
| 51 | |
| 52 static void | |
| 53 account_setting_info_cb(GaimAccount *account, const char *info, void *data) | |
| 54 { | |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
55 gaim_debug_misc("signals test", "account-setting-info (%s, %s)\n", |
|
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
56 gaim_account_get_username(account), info); |
| 6485 | 57 } |
| 58 | |
| 59 static void | |
| 60 account_set_info_cb(GaimAccount *account, const char *info, void *data) | |
| 61 { | |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
62 gaim_debug_misc("signals test", "account-set-info (%s, %s)\n", |
|
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
63 gaim_account_get_username(account), info); |
| 6485 | 64 } |
| 65 | |
| 66 static void | |
| 67 account_warned_cb(GaimAccount *account, const char *warner, int level, | |
| 68 void *data) | |
| 69 { | |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
70 gaim_debug_misc("signals test", "account-warned (%s, %s, %d)\n", |
|
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
71 gaim_account_get_username(account), warner, level); |
| 6485 | 72 } |
| 73 | |
| 74 /************************************************************************** | |
| 10934 | 75 * Buddy Icons signal callbacks |
| 76 **************************************************************************/ | |
| 77 static void | |
| 78 buddy_icon_cached_cb(GaimBuddyIcon *icon, GaimBuddy *buddy, | |
| 79 const char *filename, const char *old_icon) | |
| 80 { | |
| 81 gaim_debug_misc("signals test", "buddy icon cached (%s, %s, %s)\n", | |
| 82 gaim_buddy_get_name(buddy), filename, old_icon); | |
| 83 } | |
| 84 | |
| 85 /************************************************************************** | |
| 6485 | 86 * Buddy List subsystem signal callbacks |
| 87 **************************************************************************/ | |
| 88 static void | |
|
7009
d77e99c55b40
[gaim-migrate @ 7568]
Christian Hammond <chipx86@chipx86.com>
parents:
6509
diff
changeset
|
89 buddy_away_cb(GaimBuddy *buddy, void *data) |
| 6485 | 90 { |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
91 gaim_debug_misc("signals test", "buddy-away (%s)\n", buddy->name); |
| 6485 | 92 } |
| 93 | |
| 94 static void | |
|
7009
d77e99c55b40
[gaim-migrate @ 7568]
Christian Hammond <chipx86@chipx86.com>
parents:
6509
diff
changeset
|
95 buddy_back_cb(GaimBuddy *buddy, void *data) |
| 6485 | 96 { |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
97 gaim_debug_misc("signals test", "buddy-back (%s)\n", buddy->name); |
| 6485 | 98 } |
| 99 | |
| 100 static void | |
|
7009
d77e99c55b40
[gaim-migrate @ 7568]
Christian Hammond <chipx86@chipx86.com>
parents:
6509
diff
changeset
|
101 buddy_idle_cb(GaimBuddy *buddy, void *data) |
| 6485 | 102 { |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
103 gaim_debug_misc("signals test", "buddy-idle (%s)\n", buddy->name); |
| 6485 | 104 } |
| 105 | |
| 106 static void | |
|
7009
d77e99c55b40
[gaim-migrate @ 7568]
Christian Hammond <chipx86@chipx86.com>
parents:
6509
diff
changeset
|
107 buddy_unidle_cb(GaimBuddy *buddy, void *data) |
| 6485 | 108 { |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
109 gaim_debug_misc("signals test", "buddy-unidle (%s)\n", buddy->name); |
| 6485 | 110 } |
| 111 | |
| 112 static void | |
|
7009
d77e99c55b40
[gaim-migrate @ 7568]
Christian Hammond <chipx86@chipx86.com>
parents:
6509
diff
changeset
|
113 buddy_signed_on_cb(GaimBuddy *buddy, void *data) |
| 6485 | 114 { |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
115 gaim_debug_misc("signals test", "buddy-signed-on (%s)\n", buddy->name); |
| 6485 | 116 } |
| 117 | |
| 118 static void | |
|
7009
d77e99c55b40
[gaim-migrate @ 7568]
Christian Hammond <chipx86@chipx86.com>
parents:
6509
diff
changeset
|
119 buddy_signed_off_cb(GaimBuddy *buddy, void *data) |
| 6485 | 120 { |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
121 gaim_debug_misc("signals test", "buddy-signed-off (%s)\n", buddy->name); |
| 6485 | 122 } |
| 123 | |
| 8999 | 124 static void |
| 9051 | 125 blist_node_extended_menu_cb(GaimBlistNode *node, void *data) |
| 8999 | 126 { |
| 9051 | 127 GaimContact *p = (GaimContact *)node; |
| 128 GaimBuddy *b = (GaimBuddy *)node; | |
| 129 GaimChat *c = (GaimChat *)node; | |
| 130 GaimGroup *g = (GaimGroup *)node; | |
| 8999 | 131 |
| 9051 | 132 if (GAIM_BLIST_NODE_IS_CONTACT(node)) |
| 133 gaim_debug_misc("signals test", "blist-node-extended-menu (Contact: %s)\n", p->alias); | |
| 134 else if (GAIM_BLIST_NODE_IS_BUDDY(node)) | |
| 135 gaim_debug_misc("signals test", "blist-node-extended-menu (Buddy: %s)\n", b->name); | |
| 136 else if (GAIM_BLIST_NODE_IS_CHAT(node)) | |
| 137 gaim_debug_misc("signals test", "blist-node-extended-menu (Chat: %s)\n", c->alias); | |
| 138 else if (GAIM_BLIST_NODE_IS_GROUP(node)) | |
| 139 gaim_debug_misc("signals test", "blist-node-extended-menu (Group: %s)\n", g->name); | |
| 140 else | |
| 141 gaim_debug_misc("signals test", "blist-node-extended-menu (UNKNOWN: %d)\n", node->type); | |
| 142 | |
| 8999 | 143 } |
| 144 | |
| 145 | |
| 6485 | 146 /************************************************************************** |
| 147 * Connection subsystem signal callbacks | |
| 148 **************************************************************************/ | |
| 149 static void | |
| 150 signing_on_cb(GaimConnection *gc, void *data) | |
| 151 { | |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
152 gaim_debug_misc("signals test", "signing-on (%s)\n", |
|
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
153 gaim_account_get_username(gaim_connection_get_account(gc))); |
| 6485 | 154 } |
| 155 | |
| 156 static void | |
| 157 signed_on_cb(GaimConnection *gc, void *data) | |
| 158 { | |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
159 gaim_debug_misc("signals test", "signed-on (%s)\n", |
|
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
160 gaim_account_get_username(gaim_connection_get_account(gc))); |
| 6485 | 161 } |
| 162 | |
| 163 static void | |
| 164 signing_off_cb(GaimConnection *gc, void *data) | |
| 165 { | |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
166 gaim_debug_misc("signals test", "signing-off (%s)\n", |
|
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
167 gaim_account_get_username(gaim_connection_get_account(gc))); |
| 6485 | 168 } |
| 169 | |
| 170 static void | |
| 171 signed_off_cb(GaimConnection *gc, void *data) | |
| 172 { | |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
173 gaim_debug_misc("signals test", "signed-off (%s)\n", |
|
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
174 gaim_account_get_username(gaim_connection_get_account(gc))); |
| 6485 | 175 } |
| 176 | |
| 177 /************************************************************************** | |
| 178 * Conversation subsystem signal callbacks | |
| 179 **************************************************************************/ | |
| 180 static gboolean | |
| 7503 | 181 displaying_im_msg_cb(GaimAccount *account, GaimConversation *conv, |
| 182 char **buffer, void *data) | |
| 6485 | 183 { |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
184 gaim_debug_misc("signals test", "displaying-im-msg (%s, %s)\n", |
|
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
185 gaim_conversation_get_name(conv), *buffer); |
| 6485 | 186 |
| 187 return FALSE; | |
| 188 } | |
| 189 | |
| 190 static void | |
| 9051 | 191 displayed_im_msg_cb(GaimAccount *account, GaimConversation *conv, const char *buffer, void *data) |
| 6485 | 192 { |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
193 gaim_debug_misc("signals test", "displayed-im-msg (%s, %s)\n", |
|
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
194 gaim_conversation_get_name(conv), buffer); |
| 6485 | 195 } |
| 196 | |
| 9051 | 197 static gboolean |
| 198 writing_im_msg_cb(GaimAccount *account, GaimConversation *conv, char **buffer, void *data) | |
| 199 { | |
| 200 gaim_debug_misc("signals test", "writing-im-msg (%s, %s, %s)\n", | |
| 201 gaim_account_get_username(account), gaim_conversation_get_name(conv), *buffer); | |
| 202 | |
| 203 return FALSE; | |
| 204 | |
| 205 } | |
| 206 | |
| 207 static void | |
| 208 wrote_im_msg_cb(GaimAccount *account, GaimConversation *conv, const char *buffer, void *data) | |
| 209 { | |
| 210 gaim_debug_misc("signals test", "wrote-im-msg (%s, %s, %s)\n", | |
| 211 gaim_account_get_username(account), gaim_conversation_get_name(conv), buffer); | |
| 212 } | |
| 213 | |
| 7503 | 214 static void |
| 6509 | 215 sending_im_msg_cb(GaimAccount *account, char *recipient, char **buffer, void *data) |
| 6485 | 216 { |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
217 gaim_debug_misc("signals test", "sending-im-msg (%s, %s, %s)\n", |
|
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
218 gaim_account_get_username(account), recipient, *buffer); |
| 6485 | 219 |
| 220 } | |
| 221 | |
| 222 static void | |
| 6509 | 223 sent_im_msg_cb(GaimAccount *account, const char *recipient, const char *buffer, void *data) |
| 6485 | 224 { |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
225 gaim_debug_misc("signals test", "sent-im-msg (%s, %s, %s)\n", |
|
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
226 gaim_account_get_username(account), recipient, buffer); |
| 6485 | 227 } |
| 228 | |
| 229 static gboolean | |
| 8999 | 230 receiving_im_msg_cb(GaimAccount *account, char **sender, char **buffer, |
| 10104 | 231 GaimConversation *conv, int *flags, void *data) |
| 6485 | 232 { |
| 10104 | 233 gaim_debug_misc("signals test", "receiving-im-msg (%s, %s, %s, %s, %d)\n", |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
234 gaim_account_get_username(account), *sender, *buffer, |
| 10104 | 235 gaim_conversation_get_name(conv), *flags); |
| 6485 | 236 |
| 237 return FALSE; | |
| 238 } | |
| 239 | |
| 8999 | 240 static void |
| 241 received_im_msg_cb(GaimAccount *account, char *sender, char *buffer, | |
| 10104 | 242 GaimConversation *conv, int flags, void *data) |
| 8999 | 243 { |
| 10104 | 244 gaim_debug_misc("signals test", "received-im-msg (%s, %s, %s, %s, %d)\n", |
| 8999 | 245 gaim_account_get_username(account), sender, buffer, |
| 10104 | 246 gaim_conversation_get_name(conv), flags); |
| 8999 | 247 } |
| 248 | |
| 6485 | 249 static gboolean |
| 7503 | 250 displaying_chat_msg_cb(GaimAccount *account, GaimConversation *conv, |
| 251 char **buffer, void *data) | |
| 6485 | 252 { |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
253 gaim_debug_misc("signals test", "displaying-chat-msg (%s, %s)\n", |
|
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
254 gaim_conversation_get_name(conv), *buffer); |
| 6485 | 255 |
|
6486
fab81e4b885c
[gaim-migrate @ 7000]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
256 return FALSE; |
| 6485 | 257 } |
| 258 | |
| 259 static void | |
| 9051 | 260 displayed_chat_msg_cb(GaimAccount *account, GaimConversation *conv, const char *buffer, void *data) |
| 6485 | 261 { |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
262 gaim_debug_misc("signals test", "displayed-chat-msg (%s, %s)\n", |
|
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
263 gaim_conversation_get_name(conv), buffer); |
| 6485 | 264 } |
| 265 | |
| 266 static gboolean | |
| 9051 | 267 writing_chat_msg_cb(GaimAccount *account, GaimConversation *conv, |
| 268 char **buffer, void *data) | |
| 269 { | |
| 270 gaim_debug_misc("signals test", "writing-chat-msg (%s, %s)\n", | |
| 271 gaim_conversation_get_name(conv), *buffer); | |
| 272 | |
| 273 return FALSE; | |
| 274 } | |
| 275 | |
| 276 static void | |
| 277 wrote_chat_msg_cb(GaimAccount *account, GaimConversation *conv, const char *buffer, void *data) | |
| 278 { | |
| 279 gaim_debug_misc("signals test", "wrote-chat-msg (%s, %s)\n", | |
| 280 gaim_conversation_get_name(conv), buffer); | |
| 281 } | |
| 282 | |
| 283 static gboolean | |
| 6509 | 284 sending_chat_msg_cb(GaimAccount *account, char **buffer, int id, void *data) |
| 6485 | 285 { |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
286 gaim_debug_misc("signals test", "sending-chat-msg (%s, %s, %d)\n", |
|
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
287 gaim_account_get_username(account), *buffer, id); |
| 6485 | 288 |
| 289 return FALSE; | |
| 290 } | |
| 291 | |
| 292 static void | |
| 6509 | 293 sent_chat_msg_cb(GaimAccount *account, const char *buffer, int id, void *data) |
| 6485 | 294 { |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
295 gaim_debug_misc("signals test", "sent-chat-msg (%s, %s, %d)\n", |
|
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
296 gaim_account_get_username(account), buffer, id); |
| 6485 | 297 } |
| 298 | |
| 299 static gboolean | |
| 8999 | 300 receiving_chat_msg_cb(GaimAccount *account, char **sender, char **buffer, |
| 10104 | 301 GaimConversation *chat, int *flags, void *data) |
| 6485 | 302 { |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
303 gaim_debug_misc("signals test", |
| 10104 | 304 "receiving-chat-msg (%s, %s, %s, %s, %d)\n", |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
305 gaim_account_get_username(account), *sender, *buffer, |
| 10104 | 306 gaim_conversation_get_name(chat), *flags); |
| 6485 | 307 |
| 308 return FALSE; | |
| 309 } | |
| 310 | |
| 311 static void | |
| 8999 | 312 received_chat_msg_cb(GaimAccount *account, char *sender, char *buffer, |
| 10104 | 313 GaimConversation *chat, int flags, void *data) |
| 8999 | 314 { |
| 315 gaim_debug_misc("signals test", | |
| 10104 | 316 "received-chat-msg (%s, %s, %s, %s, %d)\n", |
| 8999 | 317 gaim_account_get_username(account), sender, buffer, |
| 10104 | 318 gaim_conversation_get_name(chat), flags); |
| 8999 | 319 } |
| 320 | |
| 321 static void | |
| 6485 | 322 conversation_switching_cb(GaimConversation *old_conv, |
| 323 GaimConversation *new_conv, void *data) | |
| 324 { | |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
325 gaim_debug_misc("signals test", "conversation-switching (%s, %s)\n", |
|
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
326 gaim_conversation_get_name(old_conv), |
|
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
327 gaim_conversation_get_name(new_conv)); |
| 6485 | 328 } |
| 329 | |
| 330 static void | |
| 331 conversation_switched_cb(GaimConversation *old_conv, | |
| 332 GaimConversation *new_conv, void *data) | |
| 333 { | |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
334 gaim_debug_misc("signals test", "conversation-switched (%s, %s)\n", |
|
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
335 gaim_conversation_get_name(old_conv), |
|
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
336 gaim_conversation_get_name(new_conv)); |
| 6485 | 337 } |
| 338 | |
| 339 static void | |
| 340 conversation_created_cb(GaimConversation *conv, void *data) | |
| 341 { | |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
342 gaim_debug_misc("signals test", "conversation-created (%s)\n", |
|
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
343 gaim_conversation_get_name(conv)); |
| 6485 | 344 } |
| 345 | |
| 346 static void | |
| 347 deleting_conversation_cb(GaimConversation *conv, void *data) | |
| 348 { | |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
349 gaim_debug_misc("signals test", "deleting-conversation (%s)\n", |
|
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
350 gaim_conversation_get_name(conv)); |
| 6485 | 351 } |
| 352 | |
| 353 static void | |
| 354 buddy_typing_cb(GaimConversation *conv, void *data) | |
| 355 { | |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
356 gaim_debug_misc("signals test", "buddy-typing (%s)\n", |
|
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
357 gaim_conversation_get_name(conv)); |
| 6485 | 358 } |
| 359 | |
| 9587 | 360 static gboolean |
| 9554 | 361 chat_buddy_joining_cb(GaimConversation *conv, const char *user, |
| 362 GaimConvChatBuddyFlags flags, void *data) | |
| 6485 | 363 { |
| 9554 | 364 gaim_debug_misc("signals test", "chat-buddy-joining (%s, %s, %d)\n", |
| 365 gaim_conversation_get_name(conv), user, flags); | |
| 9587 | 366 |
| 367 return FALSE; | |
| 6485 | 368 } |
| 369 | |
| 370 static void | |
| 9554 | 371 chat_buddy_joined_cb(GaimConversation *conv, const char *user, |
| 372 GaimConvChatBuddyFlags flags, void *data) | |
| 6485 | 373 { |
| 9554 | 374 gaim_debug_misc("signals test", "chat-buddy-joined (%s, %s, %d)\n", |
| 375 gaim_conversation_get_name(conv), user, flags); | |
| 376 } | |
| 377 | |
| 378 static void | |
| 379 chat_buddy_flags_cb(GaimConversation *conv, const char *user, | |
| 380 GaimConvChatBuddyFlags oldflags, GaimConvChatBuddyFlags newflags, void *data) | |
| 381 { | |
| 382 gaim_debug_misc("signals test", "chat-buddy-flags (%s, %s, %d, %d)\n", | |
| 383 gaim_conversation_get_name(conv), user, oldflags, newflags); | |
| 6485 | 384 } |
| 385 | |
| 9587 | 386 static gboolean |
| 6485 | 387 chat_buddy_leaving_cb(GaimConversation *conv, const char *user, |
| 388 const char *reason, void *data) | |
| 389 { | |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
390 gaim_debug_misc("signals test", "chat-buddy-leaving (%s, %s, %s)\n", |
|
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
391 gaim_conversation_get_name(conv), user, reason); |
| 9587 | 392 |
| 393 return FALSE; | |
| 6485 | 394 } |
| 395 | |
| 396 static void | |
| 397 chat_buddy_left_cb(GaimConversation *conv, const char *user, | |
| 398 const char *reason, void *data) | |
| 399 { | |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
400 gaim_debug_misc("signals test", "chat-buddy-left (%s, %s, %s)\n", |
|
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
401 gaim_conversation_get_name(conv), user, reason); |
| 6485 | 402 } |
| 403 | |
| 404 static void | |
| 405 chat_inviting_user_cb(GaimConversation *conv, const char *name, | |
| 9554 | 406 char **reason, void *data) |
| 6485 | 407 { |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
408 gaim_debug_misc("signals test", "chat-inviting-user (%s, %s, %s)\n", |
| 9554 | 409 gaim_conversation_get_name(conv), name, *reason); |
| 6485 | 410 } |
| 411 | |
| 412 static void | |
| 413 chat_invited_user_cb(GaimConversation *conv, const char *name, | |
| 414 const char *reason, void *data) | |
| 415 { | |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
416 gaim_debug_misc("signals test", "chat-invited-user (%s, %s, %s)\n", |
|
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
417 gaim_conversation_get_name(conv), name, reason); |
| 6485 | 418 } |
| 419 | |
|
11064
e4459e8ccfb5
[gaim-migrate @ 13035]
Richard Laager <rlaager@wiktel.com>
parents:
11033
diff
changeset
|
420 static gint |
| 6485 | 421 chat_invited_cb(GaimAccount *account, const char *inviter, |
| 9514 | 422 const char *room_name, const char *message, |
| 423 const GHashTable *components, void *data) | |
| 6485 | 424 { |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
425 gaim_debug_misc("signals test", "chat-invited (%s, %s, %s, %s)\n", |
|
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
426 gaim_account_get_username(account), inviter, |
|
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
427 room_name, message); |
|
11064
e4459e8ccfb5
[gaim-migrate @ 13035]
Richard Laager <rlaager@wiktel.com>
parents:
11033
diff
changeset
|
428 |
|
e4459e8ccfb5
[gaim-migrate @ 13035]
Richard Laager <rlaager@wiktel.com>
parents:
11033
diff
changeset
|
429 return 0; |
| 6485 | 430 } |
| 431 | |
| 432 static void | |
| 433 chat_joined_cb(GaimConversation *conv, void *data) | |
| 434 { | |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
435 gaim_debug_misc("signals test", "chat-joined (%s)\n", |
|
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
436 gaim_conversation_get_name(conv)); |
| 6485 | 437 } |
| 438 | |
| 439 static void | |
| 440 chat_left_cb(GaimConversation *conv, void *data) | |
| 441 { | |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
442 gaim_debug_misc("signals test", "chat-left (%s)\n", |
|
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
443 gaim_conversation_get_name(conv)); |
| 6485 | 444 } |
| 445 | |
| 9517 | 446 static void |
| 447 chat_topic_changed_cb(GaimConversation *conv, const char *who, | |
| 448 const char *topic, void *data) | |
| 449 { | |
| 450 gaim_debug_misc("signals test", | |
| 451 "chat-topic-changed (%s topic changed to: \"%s\" by %s)\n", | |
| 452 gaim_conversation_get_name(conv), topic, | |
| 453 (who) ? who : "unknown"); | |
| 454 } | |
| 6485 | 455 /************************************************************************** |
|
10684
72a5babfa8b4
[gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents:
10104
diff
changeset
|
456 * Ciphers signal callbacks |
|
72a5babfa8b4
[gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents:
10104
diff
changeset
|
457 **************************************************************************/ |
|
72a5babfa8b4
[gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents:
10104
diff
changeset
|
458 static void |
|
72a5babfa8b4
[gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents:
10104
diff
changeset
|
459 cipher_added_cb(GaimCipher *cipher, void *data) { |
|
72a5babfa8b4
[gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents:
10104
diff
changeset
|
460 gaim_debug_misc("signals test", "cipher %s added\n", |
|
72a5babfa8b4
[gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents:
10104
diff
changeset
|
461 gaim_cipher_get_name(cipher)); |
|
72a5babfa8b4
[gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents:
10104
diff
changeset
|
462 } |
|
72a5babfa8b4
[gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents:
10104
diff
changeset
|
463 |
|
72a5babfa8b4
[gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents:
10104
diff
changeset
|
464 static void |
|
72a5babfa8b4
[gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents:
10104
diff
changeset
|
465 cipher_removed_cb(GaimCipher *cipher, void *data) { |
|
72a5babfa8b4
[gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents:
10104
diff
changeset
|
466 gaim_debug_misc("signals test", "cipher %s removed\n", |
|
72a5babfa8b4
[gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents:
10104
diff
changeset
|
467 gaim_cipher_get_name(cipher)); |
|
72a5babfa8b4
[gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents:
10104
diff
changeset
|
468 } |
|
72a5babfa8b4
[gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents:
10104
diff
changeset
|
469 |
|
72a5babfa8b4
[gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents:
10104
diff
changeset
|
470 /************************************************************************** |
| 6485 | 471 * Core signal callbacks |
| 472 **************************************************************************/ | |
| 473 static void | |
| 474 quitting_cb(void *data) | |
| 475 { | |
|
7517
767d3db53e17
[gaim-migrate @ 8130]
Christian Hammond <chipx86@chipx86.com>
parents:
7516
diff
changeset
|
476 gaim_debug_misc("signals test", "quitting ()\n"); |
| 6485 | 477 } |
| 478 | |
| 479 /************************************************************************** | |
| 480 * Plugin stuff | |
| 481 **************************************************************************/ | |
| 482 static gboolean | |
| 483 plugin_load(GaimPlugin *plugin) | |
| 484 { | |
| 485 void *core_handle = gaim_get_core(); | |
| 486 void *blist_handle = gaim_blist_get_handle(); | |
| 487 void *conn_handle = gaim_connections_get_handle(); | |
| 488 void *conv_handle = gaim_conversations_get_handle(); | |
| 489 void *accounts_handle = gaim_accounts_get_handle(); | |
|
10684
72a5babfa8b4
[gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents:
10104
diff
changeset
|
490 void *ciphers_handle = gaim_ciphers_get_handle(); |
| 10934 | 491 void *buddy_icons_handle = gaim_buddy_icons_get_handle(); |
| 6485 | 492 |
|
11033
50224ac8184d
[gaim-migrate @ 12919]
Etan Reisner <pidgin@unreliablesource.net>
parents:
10934
diff
changeset
|
493 gaim_debug_register_category("signals-test"); |
|
50224ac8184d
[gaim-migrate @ 12919]
Etan Reisner <pidgin@unreliablesource.net>
parents:
10934
diff
changeset
|
494 |
| 6485 | 495 /* Accounts subsystem signals */ |
| 496 gaim_signal_connect(accounts_handle, "account-connecting", | |
| 497 plugin, GAIM_CALLBACK(account_connecting_cb), NULL); | |
| 498 gaim_signal_connect(accounts_handle, "account-away", | |
| 499 plugin, GAIM_CALLBACK(account_away_cb), NULL); | |
| 500 gaim_signal_connect(accounts_handle, "account-setting-info", | |
| 501 plugin, GAIM_CALLBACK(account_setting_info_cb), NULL); | |
| 502 gaim_signal_connect(accounts_handle, "account-set-info", | |
| 503 plugin, GAIM_CALLBACK(account_set_info_cb), NULL); | |
| 504 gaim_signal_connect(accounts_handle, "account-warned", | |
| 505 plugin, GAIM_CALLBACK(account_warned_cb), NULL); | |
| 506 | |
| 10934 | 507 /* Buddy Icon subsystem signals */ |
| 508 gaim_signal_connect(buddy_icons_handle, "buddy-icon-cached", | |
| 509 plugin, GAIM_CALLBACK(buddy_icon_cached_cb), NULL); | |
| 510 | |
| 6485 | 511 /* Buddy List subsystem signals */ |
| 512 gaim_signal_connect(blist_handle, "buddy-away", | |
| 513 plugin, GAIM_CALLBACK(buddy_away_cb), NULL); | |
| 514 gaim_signal_connect(blist_handle, "buddy-back", | |
| 515 plugin, GAIM_CALLBACK(buddy_back_cb), NULL); | |
| 516 gaim_signal_connect(blist_handle, "buddy-idle", | |
| 517 plugin, GAIM_CALLBACK(buddy_idle_cb), NULL); | |
| 518 gaim_signal_connect(blist_handle, "buddy-unidle", | |
| 519 plugin, GAIM_CALLBACK(buddy_unidle_cb), NULL); | |
| 520 gaim_signal_connect(blist_handle, "buddy-signed-on", | |
| 521 plugin, GAIM_CALLBACK(buddy_signed_on_cb), NULL); | |
| 522 gaim_signal_connect(blist_handle, "buddy-signed-off", | |
| 523 plugin, GAIM_CALLBACK(buddy_signed_off_cb), NULL); | |
| 9051 | 524 gaim_signal_connect(blist_handle, "blist-node-extended-menu", |
| 525 plugin, GAIM_CALLBACK(blist_node_extended_menu_cb), NULL); | |
| 6485 | 526 |
| 527 /* Connection subsystem signals */ | |
| 528 gaim_signal_connect(conn_handle, "signing-on", | |
| 529 plugin, GAIM_CALLBACK(signing_on_cb), NULL); | |
| 530 gaim_signal_connect(conn_handle, "signed-on", | |
| 531 plugin, GAIM_CALLBACK(signed_on_cb), NULL); | |
| 532 gaim_signal_connect(conn_handle, "signing-off", | |
| 533 plugin, GAIM_CALLBACK(signing_off_cb), NULL); | |
| 534 gaim_signal_connect(conn_handle, "signed-off", | |
| 535 plugin, GAIM_CALLBACK(signed_off_cb), NULL); | |
| 536 | |
| 537 /* Conversations subsystem signals */ | |
| 538 gaim_signal_connect(conv_handle, "displaying-im-msg", | |
| 539 plugin, GAIM_CALLBACK(displaying_im_msg_cb), NULL); | |
| 6489 | 540 gaim_signal_connect(conv_handle, "displayed-im-msg", |
| 6485 | 541 plugin, GAIM_CALLBACK(displayed_im_msg_cb), NULL); |
| 9051 | 542 gaim_signal_connect(conv_handle, "writing-im-msg", |
| 543 plugin, GAIM_CALLBACK(writing_im_msg_cb), NULL); | |
| 544 gaim_signal_connect(conv_handle, "wrote-im-msg", | |
| 545 plugin, GAIM_CALLBACK(wrote_im_msg_cb), NULL); | |
| 6485 | 546 gaim_signal_connect(conv_handle, "sending-im-msg", |
| 547 plugin, GAIM_CALLBACK(sending_im_msg_cb), NULL); | |
| 548 gaim_signal_connect(conv_handle, "sent-im-msg", | |
| 549 plugin, GAIM_CALLBACK(sent_im_msg_cb), NULL); | |
| 8999 | 550 gaim_signal_connect(conv_handle, "receiving-im-msg", |
| 551 plugin, GAIM_CALLBACK(receiving_im_msg_cb), NULL); | |
| 6485 | 552 gaim_signal_connect(conv_handle, "received-im-msg", |
| 553 plugin, GAIM_CALLBACK(received_im_msg_cb), NULL); | |
| 554 gaim_signal_connect(conv_handle, "displaying-chat-msg", | |
| 555 plugin, GAIM_CALLBACK(displaying_chat_msg_cb), NULL); | |
| 556 gaim_signal_connect(conv_handle, "displayed-chat-msg", | |
| 557 plugin, GAIM_CALLBACK(displayed_chat_msg_cb), NULL); | |
| 9051 | 558 gaim_signal_connect(conv_handle, "writing-chat-msg", |
| 559 plugin, GAIM_CALLBACK(writing_chat_msg_cb), NULL); | |
| 560 gaim_signal_connect(conv_handle, "wrote-chat-msg", | |
| 561 plugin, GAIM_CALLBACK(wrote_chat_msg_cb), NULL); | |
| 6485 | 562 gaim_signal_connect(conv_handle, "sending-chat-msg", |
| 563 plugin, GAIM_CALLBACK(sending_chat_msg_cb), NULL); | |
| 564 gaim_signal_connect(conv_handle, "sent-chat-msg", | |
| 565 plugin, GAIM_CALLBACK(sent_chat_msg_cb), NULL); | |
| 8999 | 566 gaim_signal_connect(conv_handle, "receiving-chat-msg", |
| 567 plugin, GAIM_CALLBACK(receiving_chat_msg_cb), NULL); | |
| 6485 | 568 gaim_signal_connect(conv_handle, "received-chat-msg", |
| 569 plugin, GAIM_CALLBACK(received_chat_msg_cb), NULL); | |
| 570 gaim_signal_connect(conv_handle, "conversation-switching", | |
| 571 plugin, GAIM_CALLBACK(conversation_switching_cb), NULL); | |
| 572 gaim_signal_connect(conv_handle, "conversation-switched", | |
| 573 plugin, GAIM_CALLBACK(conversation_switched_cb), NULL); | |
| 574 gaim_signal_connect(conv_handle, "conversation-created", | |
| 575 plugin, GAIM_CALLBACK(conversation_created_cb), NULL); | |
| 576 gaim_signal_connect(conv_handle, "deleting-conversation", | |
| 577 plugin, GAIM_CALLBACK(deleting_conversation_cb), NULL); | |
| 578 gaim_signal_connect(conv_handle, "buddy-typing", | |
| 579 plugin, GAIM_CALLBACK(buddy_typing_cb), NULL); | |
| 580 gaim_signal_connect(conv_handle, "chat-buddy-joining", | |
| 581 plugin, GAIM_CALLBACK(chat_buddy_joining_cb), NULL); | |
| 582 gaim_signal_connect(conv_handle, "chat-buddy-joined", | |
| 583 plugin, GAIM_CALLBACK(chat_buddy_joined_cb), NULL); | |
| 9554 | 584 gaim_signal_connect(conv_handle, "chat-buddy-flags", |
| 585 plugin, GAIM_CALLBACK(chat_buddy_flags_cb), NULL); | |
| 6485 | 586 gaim_signal_connect(conv_handle, "chat-buddy-leaving", |
| 587 plugin, GAIM_CALLBACK(chat_buddy_leaving_cb), NULL); | |
| 588 gaim_signal_connect(conv_handle, "chat-buddy-left", | |
| 589 plugin, GAIM_CALLBACK(chat_buddy_left_cb), NULL); | |
| 590 gaim_signal_connect(conv_handle, "chat-inviting-user", | |
| 591 plugin, GAIM_CALLBACK(chat_inviting_user_cb), NULL); | |
| 592 gaim_signal_connect(conv_handle, "chat-invited-user", | |
| 593 plugin, GAIM_CALLBACK(chat_invited_user_cb), NULL); | |
| 594 gaim_signal_connect(conv_handle, "chat-invited", | |
| 595 plugin, GAIM_CALLBACK(chat_invited_cb), NULL); | |
| 596 gaim_signal_connect(conv_handle, "chat-joined", | |
| 597 plugin, GAIM_CALLBACK(chat_joined_cb), NULL); | |
| 598 gaim_signal_connect(conv_handle, "chat-left", | |
| 599 plugin, GAIM_CALLBACK(chat_left_cb), NULL); | |
| 9517 | 600 gaim_signal_connect(conv_handle, "chat-topic-changed", |
| 601 plugin, GAIM_CALLBACK(chat_topic_changed_cb), NULL); | |
| 6485 | 602 |
|
10684
72a5babfa8b4
[gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents:
10104
diff
changeset
|
603 /* Ciphers signals */ |
|
72a5babfa8b4
[gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents:
10104
diff
changeset
|
604 gaim_signal_connect(ciphers_handle, "cipher-added", |
|
72a5babfa8b4
[gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents:
10104
diff
changeset
|
605 plugin, GAIM_CALLBACK(cipher_added_cb), NULL); |
|
72a5babfa8b4
[gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents:
10104
diff
changeset
|
606 gaim_signal_connect(ciphers_handle, "cipher-removed", |
|
72a5babfa8b4
[gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents:
10104
diff
changeset
|
607 plugin, GAIM_CALLBACK(cipher_removed_cb), NULL); |
|
72a5babfa8b4
[gaim-migrate @ 12231]
Luke Schierer <lschiere@pidgin.im>
parents:
10104
diff
changeset
|
608 |
| 6485 | 609 /* Core signals */ |
| 610 gaim_signal_connect(core_handle, "quitting", | |
| 611 plugin, GAIM_CALLBACK(quitting_cb), NULL); | |
| 612 | |
| 613 return TRUE; | |
| 614 } | |
| 615 | |
|
11033
50224ac8184d
[gaim-migrate @ 12919]
Etan Reisner <pidgin@unreliablesource.net>
parents:
10934
diff
changeset
|
616 static gboolean |
|
50224ac8184d
[gaim-migrate @ 12919]
Etan Reisner <pidgin@unreliablesource.net>
parents:
10934
diff
changeset
|
617 plugin_unload(GaimPlugin *plugin) |
|
50224ac8184d
[gaim-migrate @ 12919]
Etan Reisner <pidgin@unreliablesource.net>
parents:
10934
diff
changeset
|
618 { |
|
50224ac8184d
[gaim-migrate @ 12919]
Etan Reisner <pidgin@unreliablesource.net>
parents:
10934
diff
changeset
|
619 gaim_debug_unregister_category("signals-test"); |
|
50224ac8184d
[gaim-migrate @ 12919]
Etan Reisner <pidgin@unreliablesource.net>
parents:
10934
diff
changeset
|
620 } |
|
50224ac8184d
[gaim-migrate @ 12919]
Etan Reisner <pidgin@unreliablesource.net>
parents:
10934
diff
changeset
|
621 |
| 6485 | 622 static GaimPluginInfo info = |
| 623 { | |
| 9954 | 624 GAIM_PLUGIN_MAGIC, |
| 625 GAIM_MAJOR_VERSION, | |
| 626 GAIM_MINOR_VERSION, | |
| 6485 | 627 GAIM_PLUGIN_STANDARD, /**< type */ |
| 628 NULL, /**< ui_requirement */ | |
| 629 0, /**< flags */ | |
| 630 NULL, /**< dependencies */ | |
| 631 GAIM_PRIORITY_DEFAULT, /**< priority */ | |
| 632 | |
| 633 SIGNAL_TEST_PLUGIN_ID, /**< id */ | |
| 634 N_("Signals Test"), /**< name */ | |
| 635 VERSION, /**< version */ | |
| 636 /** summary */ | |
| 637 N_("Test to see that all signals are working properly."), | |
| 638 /** description */ | |
| 639 N_("Test to see that all signals are working properly."), | |
| 640 "Christian Hammond <chipx86@gnupdate.org>", /**< author */ | |
| 641 GAIM_WEBSITE, /**< homepage */ | |
| 642 | |
| 643 plugin_load, /**< load */ | |
|
11033
50224ac8184d
[gaim-migrate @ 12919]
Etan Reisner <pidgin@unreliablesource.net>
parents:
10934
diff
changeset
|
644 plugin_unload, /**< unload */ |
| 6485 | 645 NULL, /**< destroy */ |
| 646 | |
| 647 NULL, /**< ui_info */ | |
| 8993 | 648 NULL, /**< extra_info */ |
| 649 NULL, | |
| 650 NULL | |
| 6485 | 651 }; |
| 652 | |
| 653 static void | |
| 654 init_plugin(GaimPlugin *plugin) | |
| 655 { | |
| 656 } | |
| 657 | |
| 658 GAIM_INIT_PLUGIN(signalstest, init_plugin, info) |
