Mercurial > pidgin
comparison plugins/simple.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 | 428f86e1fd27 |
comparison
equal
deleted
inserted
replaced
| 11255:1b1d63602d77 | 11256:bb0d7b719af2 |
|---|---|
| 4 #include "version.h" | 4 #include "version.h" |
| 5 | 5 |
| 6 static gboolean | 6 static gboolean |
| 7 plugin_load(GaimPlugin *plugin) | 7 plugin_load(GaimPlugin *plugin) |
| 8 { | 8 { |
| 9 gaim_debug_register_category("simple"); | |
| 10 | |
| 11 gaim_debug(GAIM_DEBUG_INFO, "simple", "simple plugin loaded.\n"); | 9 gaim_debug(GAIM_DEBUG_INFO, "simple", "simple plugin loaded.\n"); |
| 12 | 10 |
| 13 return TRUE; | 11 return TRUE; |
| 14 } | 12 } |
| 15 | 13 |
| 16 static gboolean | 14 static gboolean |
| 17 plugin_unload(GaimPlugin *plugin) | 15 plugin_unload(GaimPlugin *plugin) |
| 18 { | 16 { |
| 19 gaim_debug(GAIM_DEBUG_INFO, "simple", "simple plugin unloaded.\n"); | 17 gaim_debug(GAIM_DEBUG_INFO, "simple", "simple plugin unloaded.\n"); |
| 20 | |
| 21 gaim_debug_unregister_category("simple"); | |
| 22 | 18 |
| 23 return TRUE; | 19 return TRUE; |
| 24 } | 20 } |
| 25 | 21 |
| 26 static GaimPluginInfo info = | 22 static GaimPluginInfo info = |
