Mercurial > pidgin
comparison plugins/ipc-test-client.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 |
|---|---|
| 29 plugin_load(GaimPlugin *plugin) | 29 plugin_load(GaimPlugin *plugin) |
| 30 { | 30 { |
| 31 GaimPlugin *server_plugin; | 31 GaimPlugin *server_plugin; |
| 32 gboolean ok; | 32 gboolean ok; |
| 33 int result; | 33 int result; |
| 34 | |
| 35 gaim_debug_register_category("ipc-test-client"); | |
| 36 | 34 |
| 37 server_plugin = gaim_plugins_find_with_id("core-ipc-test-server"); | 35 server_plugin = gaim_plugins_find_with_id("core-ipc-test-server"); |
| 38 | 36 |
| 39 if (server_plugin == NULL) | 37 if (server_plugin == NULL) |
| 40 { | 38 { |
| 72 gaim_debug_info("ipc-test-client", "50 - 8 = %d\n", result); | 70 gaim_debug_info("ipc-test-client", "50 - 8 = %d\n", result); |
| 73 | 71 |
| 74 return TRUE; | 72 return TRUE; |
| 75 } | 73 } |
| 76 | 74 |
| 77 static gboolean | |
| 78 plugin_unload(GaimPlugin *plugin) | |
| 79 { | |
| 80 gaim_debug_unregister_category("ipc-test-client"); | |
| 81 } | |
| 82 | |
| 83 static GaimPluginInfo info = | 75 static GaimPluginInfo info = |
| 84 { | 76 { |
| 85 GAIM_PLUGIN_MAGIC, | 77 GAIM_PLUGIN_MAGIC, |
| 86 GAIM_MAJOR_VERSION, | 78 GAIM_MAJOR_VERSION, |
| 87 GAIM_MINOR_VERSION, | 79 GAIM_MINOR_VERSION, |
| 101 "plugin and calls the commands registered."), | 93 "plugin and calls the commands registered."), |
| 102 "Christian Hammond <chipx86@gnupdate.org>", /**< author */ | 94 "Christian Hammond <chipx86@gnupdate.org>", /**< author */ |
| 103 GAIM_WEBSITE, /**< homepage */ | 95 GAIM_WEBSITE, /**< homepage */ |
| 104 | 96 |
| 105 plugin_load, /**< load */ | 97 plugin_load, /**< load */ |
| 106 plugin_unload, /**< unload */ | 98 NULL, /**< unload */ |
| 107 NULL, /**< destroy */ | 99 NULL, /**< destroy */ |
| 108 | 100 |
| 109 NULL, /**< ui_info */ | 101 NULL, /**< ui_info */ |
| 110 NULL, /**< extra_info */ | 102 NULL, /**< extra_info */ |
| 111 NULL, | 103 NULL, |
