/* disabled by default, as soon as some threshold is set > NONE,
* it becomes enabled. */
-gboolean __gst_debug_enabled = FALSE;
-GstDebugLevel __gst_debug_min = GST_LEVEL_NONE;
+gboolean _gst_debug_enabled = FALSE;
+GstDebugLevel _gst_debug_min = GST_LEVEL_NONE;
GstDebugCategory *GST_CAT_DEFAULT = NULL;
void
gst_debug_set_active (gboolean active)
{
- __gst_debug_enabled = active;
+ _gst_debug_enabled = active;
if (active)
- __gst_debug_min = GST_LEVEL_COUNT;
+ _gst_debug_min = GST_LEVEL_COUNT;
else
- __gst_debug_min = GST_LEVEL_NONE;
+ _gst_debug_min = GST_LEVEL_NONE;
}
/**
gboolean
gst_debug_is_active (void)
{
- return __gst_debug_enabled;
+ return _gst_debug_enabled;
}
/**
{
g_return_if_fail (category != NULL);
- if (level > __gst_debug_min) {
- __gst_debug_enabled = TRUE;
- __gst_debug_min = level;
+ if (level > _gst_debug_min) {
+ _gst_debug_enabled = TRUE;
+ _gst_debug_min = level;
}
g_atomic_int_set (&category->threshold, level);
*/
GST_EXPORT GstDebugCategory * GST_CAT_DEFAULT;
/* this symbol may not be used */
-extern gboolean __gst_debug_enabled;
+extern gboolean _gst_debug_enabled;
/* since 0.10.7, the min debug level, used for quickly discarding debug
* messages that fall under the threshold. */
-GST_EXPORT GstDebugLevel __gst_debug_min;
+GST_EXPORT GstDebugLevel _gst_debug_min;
/**
* GST_CAT_LEVEL_LOG:
*/
#ifdef G_HAVE_ISO_VARARGS
#define GST_CAT_LEVEL_LOG(cat,level,object,...) G_STMT_START{ \
- if (G_UNLIKELY (level <= __gst_debug_min)) { \
+ if (G_UNLIKELY (level <= _gst_debug_min)) { \
gst_debug_log ((cat), (level), __FILE__, GST_FUNCTION, __LINE__, \
(GObject *) (object), __VA_ARGS__); \
} \
#else /* G_HAVE_GNUC_VARARGS */
#ifdef G_HAVE_GNUC_VARARGS
#define GST_CAT_LEVEL_LOG(cat,level,object,args...) G_STMT_START{ \
- if (G_UNLIKELY (level <= __gst_debug_min)) { \
+ if (G_UNLIKELY (level <= _gst_debug_min)) { \
gst_debug_log ((cat), (level), __FILE__, GST_FUNCTION, __LINE__, \
(GObject *) (object), ##args ); \
} \
GST_CAT_LEVEL_LOG_valist (GstDebugCategory * cat,
GstDebugLevel level, gpointer object, const char *format, va_list varargs)
{
- if (G_UNLIKELY (level <= __gst_debug_min)) {
+ if (G_UNLIKELY (level <= _gst_debug_min)) {
gst_debug_log_valist (cat, level, "", "", 0, (GObject *) object, format,
varargs);
}
* other macros and hence in a separate block right here. Docs chunks are
* with the other doc chunks below though. */
#define __GST_CAT_MEMDUMP_LOG(cat,object,msg,data,length) G_STMT_START{ \
- if (G_UNLIKELY (GST_LEVEL_MEMDUMP <= __gst_debug_min)) { \
+ if (G_UNLIKELY (GST_LEVEL_MEMDUMP <= _gst_debug_min)) { \
_gst_debug_dump_mem ((cat), __FILE__, GST_FUNCTION, __LINE__, \
(GObject *) (object), (msg), (data), (length)); \
} \
# pragma GCC poison _gst_debug_category_new
#endif
-#define __gst_debug_min GST_LEVEL_NONE
+#define _gst_debug_min GST_LEVEL_NONE
#define _gst_debug_init() G_STMT_START{ }G_STMT_END