summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@noraisin.net>2009-10-12 14:24:04 +0100
committerJan Schmidt <thaytan@noraisin.net>2009-10-12 14:24:53 +0100
commit2ddf0285035e43d7bb8bf57f6c18a857bfccff14 (patch)
tree5878708fb443c6855ebc2436eeaa2f89c7e024c4
parent2d4795cd17b7adae08bfa949a6f31b4b9c8b2e68 (diff)
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.
-rw-r--r--gst/gst_private.h6
-rw-r--r--gst/gstinfo.c4
2 files changed, 7 insertions, 3 deletions
diff --git a/gst/gst_private.h b/gst/gst_private.h
index 1db8c54698..fbc592c02c 100644
--- a/gst/gst_private.h
+++ b/gst/gst_private.h
@@ -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
diff --git a/gst/gstinfo.c b/gst/gstinfo.c
index fde26f42f2..2909c266ea 100644
--- a/gst/gstinfo.c
+++ b/gst/gstinfo.c
@@ -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 */