comparison plugins/ciphertest.c @ 11033:50224ac8184d

[gaim-migrate @ 12919] Ok, this is debug window filtering. Sadrul was going to do this with a text entry, but I like this better, feel free to disagree with me. It's not the prettiest in a couple places, most notable gtkmain.c where a bunch of categories that don't currently have a home get registered. I added some plugin_(un)load functions to some plugins to place the (un)register functions. Though I didn't do that for the prpls. Comments and cleanups welcome. (Oh, I've been seeing some crashes on quit, but I haven't been able to get it to happen reliably so I'm not sure if it's my code or some transient HEAD oscar/other crash.) committer: Tailor Script <tailor@pidgin.im>
author Etan Reisner <pidgin@unreliablesource.net>
date Tue, 28 Jun 2005 06:13:07 +0000
parents b256ce6b85b8
children 8dca96cbcd64
comparison
equal deleted inserted replaced
11032:31c1c48daba1 11033:50224ac8184d
177 /************************************************************************** 177 /**************************************************************************
178 * Plugin stuff 178 * Plugin stuff
179 **************************************************************************/ 179 **************************************************************************/
180 static gboolean 180 static gboolean
181 plugin_load(GaimPlugin *plugin) { 181 plugin_load(GaimPlugin *plugin) {
182 gaim_debug_register_category("cipher-test");
183
182 cipher_test_md5(); 184 cipher_test_md5();
183 cipher_test_sha1(); 185 cipher_test_sha1();
186
187 return TRUE;
188 }
189
190 static gboolean
191 plugin_unload(GaimPlugin *plugin) {
192 gaim_debug_unregister_category("cipher-test");
184 193
185 return TRUE; 194 return TRUE;
186 } 195 }
187 196
188 static GaimPluginInfo info = 197 static GaimPluginInfo info =
205 N_("Tests the ciphers that ship with gaim."), 214 N_("Tests the ciphers that ship with gaim."),
206 "Gary Kramlich <amc_grim@users.sf.net>", /**< author */ 215 "Gary Kramlich <amc_grim@users.sf.net>", /**< author */
207 GAIM_WEBSITE, /**< homepage */ 216 GAIM_WEBSITE, /**< homepage */
208 217
209 plugin_load, /**< load */ 218 plugin_load, /**< load */
210 NULL, /**< unload */ 219 plugin_unload, /**< unload */
211 NULL, /**< destroy */ 220 NULL, /**< destroy */
212 221
213 NULL, /**< ui_info */ 222 NULL, /**< ui_info */
214 NULL, /**< extra_info */ 223 NULL, /**< extra_info */
215 NULL, 224 NULL,