gstpoll: Make the new GST_POLL debug completely private

Make the GST_POLL debug category symbol private to libgstreamer, as
there should be no external users of it.
This commit is contained in:
Jan Schmidt 2009-10-12 14:24:04 +01:00
parent 2d4795cd17
commit 2ddf028503
2 changed files with 7 additions and 3 deletions

View file

@ -157,7 +157,11 @@ GST_EXPORT GstDebugCategory *GST_CAT_PROBE;
GST_EXPORT GstDebugCategory *GST_CAT_REGISTRY; GST_EXPORT GstDebugCategory *GST_CAT_REGISTRY;
GST_EXPORT GstDebugCategory *GST_CAT_QOS; GST_EXPORT GstDebugCategory *GST_CAT_QOS;
GST_EXPORT GstDebugCategory *GST_CAT_TYPES; /* FIXME 0.11: remove? */ GST_EXPORT GstDebugCategory *GST_CAT_TYPES; /* FIXME 0.11: remove? */
GST_EXPORT GstDebugCategory *GST_CAT_POLL;
/* Categories that should be completely private to
* libgstreamer should be done like this: */
#define GST_CAT_POLL _priv_GST_CAT_POLL
GstDebugCategory *_priv_GST_CAT_POLL;
#else #else

View file

@ -165,7 +165,7 @@ GstDebugCategory *GST_CAT_SIGNAL = NULL;
GstDebugCategory *GST_CAT_PROBE = NULL; GstDebugCategory *GST_CAT_PROBE = NULL;
GstDebugCategory *GST_CAT_REGISTRY = NULL; GstDebugCategory *GST_CAT_REGISTRY = NULL;
GstDebugCategory *GST_CAT_QOS = NULL; GstDebugCategory *GST_CAT_QOS = NULL;
GstDebugCategory *GST_CAT_POLL = NULL; GstDebugCategory *_priv_GST_CAT_POLL = NULL;
#endif /* !defined(GST_DISABLE_GST_DEBUG) || !defined(GST_REMOVE_DISABLED) */ #endif /* !defined(GST_DISABLE_GST_DEBUG) || !defined(GST_REMOVE_DISABLED) */
@ -397,7 +397,7 @@ _gst_debug_init (void)
GST_DEBUG_BOLD | GST_DEBUG_FG_GREEN, "pad probes"); GST_DEBUG_BOLD | GST_DEBUG_FG_GREEN, "pad probes");
GST_CAT_REGISTRY = _gst_debug_category_new ("GST_REGISTRY", 0, "registry"); GST_CAT_REGISTRY = _gst_debug_category_new ("GST_REGISTRY", 0, "registry");
GST_CAT_QOS = _gst_debug_category_new ("GST_QOS", 0, "QoS"); GST_CAT_QOS = _gst_debug_category_new ("GST_QOS", 0, "QoS");
GST_CAT_POLL = _gst_debug_category_new ("GST_POLL", 0, "poll"); _priv_GST_CAT_POLL = _gst_debug_category_new ("GST_POLL", 0, "poll");
/* print out the valgrind message if we're in valgrind */ /* print out the valgrind message if we're in valgrind */