/* GStreamer * Copyright (C) 1999,2000 Erik Walthinsen * 2000 Wim Taymans * * gstinfo.h: * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ #ifndef __GSTINFO_H__ #define __GSTINFO_H__ #include #include #include #ifdef HAVE_CONFIG_H #include #endif #include "cothreads.h" /********************************************************************** * DEBUG system **********************************************************************/ extern guint32 _gst_debug_categories; /* for include files that make too much noise normally */ #ifdef GST_DEBUG_FORCE_DISABLE #undef GST_DEBUG_ENABLED #endif /* for applications that really really want all the noise */ #ifdef GST_DEBUG_FORCE_ENABLE #define GST_DEBUG_ENABLED #endif //#ifdef GST_DEBUG_ENABLED #define GST_DEBUG_ENABLE_CATEGORIES 0xffffffff //#else //#define GST_DEBUG_ENABLE_CATEGORIES 0x00000000 //#endif /* fallback, this should probably be a 'weak' symbol or something */ G_GNUC_UNUSED static gchar *_debug_string = NULL; #define GST_DEBUG_PREFIX(format,args...) \ "DEBUG(%d:%d)" __PRETTY_FUNCTION__ ":%d" format , getpid() , cothread_getcurrent() , __LINE__ , ## args #ifdef GST_DEBUG_ENABLED #define GST_DEBUG(cat,format,args...) G_STMT_START{ \ if (((1<