Mercurial > pidgin
comparison plugins/ipc-test-server.c @ 11256:bb0d7b719af2
[gaim-migrate @ 13430]
I give you regex filtering in the debug window.
We keep a buffer of all the text, so when unpausing all the messages that were output when paused will be displayed, as well as when you change the filter.
This _should_ be alright on systems that don't have regex.h but I haven't gotten anyone to test it recently, if it's busted, just #ifdef HAVE_REGEX_H it.
committer: Tailor Script <tailor@pidgin.im>
| author | Gary Kramlich <grim@reaperworld.com> |
|---|---|
| date | Sat, 13 Aug 2005 22:09:34 +0000 |
| parents | 50224ac8184d |
| children |
comparison
equal
deleted
inserted
replaced
| 11255:1b1d63602d77 | 11256:bb0d7b719af2 |
|---|---|
| 42 } | 42 } |
| 43 | 43 |
| 44 static gboolean | 44 static gboolean |
| 45 plugin_load(GaimPlugin *plugin) | 45 plugin_load(GaimPlugin *plugin) |
| 46 { | 46 { |
| 47 gaim_debug_register_category("ipc-test-server"); | |
| 48 | |
| 49 gaim_plugin_ipc_register(plugin, "add", GAIM_CALLBACK(add_func), | 47 gaim_plugin_ipc_register(plugin, "add", GAIM_CALLBACK(add_func), |
| 50 gaim_marshal_INT__INT_INT, | 48 gaim_marshal_INT__INT_INT, |
| 51 gaim_value_new(GAIM_TYPE_INT), 2, | 49 gaim_value_new(GAIM_TYPE_INT), 2, |
| 52 gaim_value_new(GAIM_TYPE_INT), | 50 gaim_value_new(GAIM_TYPE_INT), |
| 53 gaim_value_new(GAIM_TYPE_INT)); | 51 gaim_value_new(GAIM_TYPE_INT)); |
| 57 gaim_value_new(GAIM_TYPE_INT), 2, | 55 gaim_value_new(GAIM_TYPE_INT), 2, |
| 58 gaim_value_new(GAIM_TYPE_INT), | 56 gaim_value_new(GAIM_TYPE_INT), |
| 59 gaim_value_new(GAIM_TYPE_INT)); | 57 gaim_value_new(GAIM_TYPE_INT)); |
| 60 | 58 |
| 61 return TRUE; | 59 return TRUE; |
| 62 } | |
| 63 | |
| 64 static gboolean | |
| 65 plugin_unload(GaimPlugin *plugin) | |
| 66 { | |
| 67 gaim_debug_unregister_category("ipc-test-server"); | |
| 68 } | 60 } |
| 69 | 61 |
| 70 static GaimPluginInfo info = | 62 static GaimPluginInfo info = |
| 71 { | 63 { |
| 72 GAIM_PLUGIN_MAGIC, | 64 GAIM_PLUGIN_MAGIC, |
| 88 "commands."), | 80 "commands."), |
| 89 "Christian Hammond <chipx86@gnupdate.org>", /**< author */ | 81 "Christian Hammond <chipx86@gnupdate.org>", /**< author */ |
| 90 GAIM_WEBSITE, /**< homepage */ | 82 GAIM_WEBSITE, /**< homepage */ |
| 91 | 83 |
| 92 plugin_load, /**< load */ | 84 plugin_load, /**< load */ |
| 93 plugin_unload, /**< unload */ | 85 NULL, /**< unload */ |
| 94 NULL, /**< destroy */ | 86 NULL, /**< destroy */ |
| 95 | 87 |
| 96 NULL, /**< ui_info */ | 88 NULL, /**< ui_info */ |
| 97 NULL, /**< extra_info */ | 89 NULL, /**< extra_info */ |
| 98 NULL, | 90 NULL, |
