GNOME Bugzilla – Bug 587417
allow getting log categories
Last modified: 2009-07-06 23:23:52 UTC
Patch adds a new macro GST_DEBUG_CATEGORY_GET to get a log category by name. This allows plugins to use e.g. core categories like PERFORMANCE or CLOCK.
Created attachment 137612 [details] [review] allow getting other log categories
Created attachment 137626 [details] [review] xvimagesink: use core performance log category
commit 2cb16ad7aa773c7b1415cd599524727ad874c4b8 Author: Stefan Kost <ensonic@users.sf.net> Date: Tue Jun 30 11:26:34 2009 +0300 info: allow getting other log categories. Fixes #587417 Add a new macro GST_DEBUG_CATEGORY_GET to get a log category by name. This allows plugins to use e.g. core categories like PERFORMANCE or CLOCK. API: GST_DEBUG_CATEGORY_GET commit 8e5a0000dc905e20e99bc2ab99868c5f1a072ed8 Author: Stefan Kost <ensonic@users.sf.net> Date: Tue Jun 30 17:19:50 2009 +0300 xvimagesink: use core performance log category
Wouldn't it be better to just export the categories we intend plugins/apps to use?
I belive accessing variables accross libraries is not portable. Or do you mean limitting which log categories can be looked up? It's a debug helper after all, if someone misusses it and does lookups of other plugins log-categories and that breaks one day, its not our fault.