gstpoll: Make the new GST_POLL debug completely private
authorJan Schmidt <thaytan@noraisin.net>
Mon, 12 Oct 2009 13:24:04 +0000 (14:24 +0100)
committerJan Schmidt <thaytan@noraisin.net>
Mon, 12 Oct 2009 13:24:53 +0000 (14:24 +0100)
Make the GST_POLL debug category symbol private to libgstreamer, as
there should be no external users of it.

gst/gst_private.h
gst/gstinfo.c

index 1db8c54..fbc592c 100644 (file)
@@ -157,7 +157,11 @@ GST_EXPORT GstDebugCategory *GST_CAT_PROBE;
 GST_EXPORT GstDebugCategory *GST_CAT_REGISTRY;
 GST_EXPORT GstDebugCategory *GST_CAT_QOS;
 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
 
index fde26f4..2909c26 100644 (file)
@@ -165,7 +165,7 @@ GstDebugCategory *GST_CAT_SIGNAL = NULL;
 GstDebugCategory *GST_CAT_PROBE = NULL;
 GstDebugCategory *GST_CAT_REGISTRY = 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) */
@@ -397,7 +397,7 @@ _gst_debug_init (void)
       GST_DEBUG_BOLD | GST_DEBUG_FG_GREEN, "pad probes");
   GST_CAT_REGISTRY = _gst_debug_category_new ("GST_REGISTRY", 0, "registry");
   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 */