mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 21:21:12 +00:00
cleanup
Original commit message from CVS: cleanup
This commit is contained in:
parent
0b685fac13
commit
c309ad76fb
2 changed files with 67 additions and 56 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-07-09 Thomas Vander Stichele <thomas (at) apestaart (dot) org>
|
||||
|
||||
* gst/gstinfo.h:
|
||||
clean up layout a little.
|
||||
|
||||
2004-07-09 Thomas Vander Stichele <thomas (at) apestaart (dot) org>
|
||||
|
||||
* configure.ac:
|
||||
|
|
|
@ -50,12 +50,14 @@ typedef enum {
|
|||
GST_LEVEL_COUNT
|
||||
} GstDebugLevel;
|
||||
|
||||
/* we can now override this to be more general in maintainer builds or cvs checkouts */
|
||||
/* we can now override this to be more general in maintainer builds
|
||||
* or cvs checkouts */
|
||||
#ifndef GST_LEVEL_DEFAULT
|
||||
#define GST_LEVEL_DEFAULT GST_LEVEL_NONE
|
||||
#endif
|
||||
|
||||
/* defines for format (colors etc) - don't change them around, it uses terminal layout
|
||||
/* defines for format (colors etc)
|
||||
* don't change them around, it uses terminal layout
|
||||
* Terminal color strings:
|
||||
* 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
|
||||
* Text color codes:
|
||||
|
@ -252,7 +254,7 @@ GstDebugCategory *_gst_debug_category_new (gchar * name,
|
|||
* </para>
|
||||
* </note>
|
||||
*/
|
||||
#define GST_DEBUG_CATEGORY_INIT(cat,name,color,description) G_STMT_START{ \
|
||||
#define GST_DEBUG_CATEGORY_INIT(cat,name,color,description) G_STMT_START{\
|
||||
if (cat == NULL) \
|
||||
cat = _gst_debug_category_new (name,color,description); \
|
||||
}G_STMT_END
|
||||
|
@ -260,14 +262,16 @@ GstDebugCategory *_gst_debug_category_new (gchar * name,
|
|||
void gst_debug_category_free (GstDebugCategory * category);
|
||||
void gst_debug_category_set_threshold (GstDebugCategory * category,
|
||||
GstDebugLevel level);
|
||||
void gst_debug_category_reset_threshold (GstDebugCategory * category);
|
||||
GstDebugLevel gst_debug_category_get_threshold (GstDebugCategory * category);
|
||||
void gst_debug_category_reset_threshold(GstDebugCategory * category);
|
||||
GstDebugLevel
|
||||
gst_debug_category_get_threshold (GstDebugCategory * category);
|
||||
G_CONST_RETURN gchar *
|
||||
gst_debug_category_get_name (GstDebugCategory * category);
|
||||
guint gst_debug_category_get_color (GstDebugCategory * category);
|
||||
G_CONST_RETURN gchar *
|
||||
gst_debug_category_get_description (GstDebugCategory * category);
|
||||
GSList * gst_debug_get_all_categories (void);
|
||||
GSList *
|
||||
gst_debug_get_all_categories (void);
|
||||
|
||||
gchar * gst_debug_construct_term_color (guint colorinfo);
|
||||
|
||||
|
@ -279,14 +283,16 @@ extern gboolean __gst_debug_enabled;
|
|||
#ifdef G_HAVE_ISO_VARARGS
|
||||
#define GST_CAT_LEVEL_LOG(cat,level,object,...) G_STMT_START{ \
|
||||
if (__gst_debug_enabled) { \
|
||||
gst_debug_log ((cat), (level), __FILE__, GST_FUNCTION, __LINE__, (GObject *) (object), __VA_ARGS__); \
|
||||
gst_debug_log ((cat), (level), __FILE__, GST_FUNCTION, __LINE__, \
|
||||
(GObject *) (object), __VA_ARGS__); \
|
||||
} \
|
||||
}G_STMT_END
|
||||
#else /* G_HAVE_GNUC_VARARGS */
|
||||
#ifdef G_HAVE_GNUC_VARARGS
|
||||
#define GST_CAT_LEVEL_LOG(cat,level,object,args...) G_STMT_START{ \
|
||||
if (__gst_debug_enabled) { \
|
||||
gst_debug_log ((cat), (level), __FILE__, GST_FUNCTION, __LINE__, (GObject *) (object), ##args ); \
|
||||
gst_debug_log ((cat), (level), __FILE__, GST_FUNCTION, __LINE__, \
|
||||
(GObject *) (object), ##args ); \
|
||||
} \
|
||||
}G_STMT_END
|
||||
#else /* no variadic macros, use inline */
|
||||
|
@ -587,9 +593,9 @@ GST_LOG (const char *format, ...)
|
|||
|
||||
|
||||
/********** function pointer stuff **********/
|
||||
void* _gst_debug_register_funcptr (void * ptr,
|
||||
void * _gst_debug_register_funcptr (void * ptr,
|
||||
gchar * ptrname);
|
||||
G_CONST_RETURN gchar*
|
||||
G_CONST_RETURN gchar *
|
||||
_gst_debug_nameof_funcptr (void * ptr);
|
||||
|
||||
#define GST_DEBUG_FUNCPTR(ptr) (_gst_debug_register_funcptr((void *)(ptr), #ptr) , ptr)
|
||||
|
|
Loading…
Reference in a new issue