gstinfo.h | gstinfo.h | |||
---|---|---|---|---|
skipping to change at line 31 | skipping to change at line 31 | |||
* Boston, MA 02111-1307, USA. | * Boston, MA 02111-1307, USA. | |||
*/ | */ | |||
#ifndef __GSTINFO_H__ | #ifndef __GSTINFO_H__ | |||
#define __GSTINFO_H__ | #define __GSTINFO_H__ | |||
#include <glib.h> | #include <glib.h> | |||
#include <glib-object.h> | #include <glib-object.h> | |||
#include <gst/gstconfig.h> | #include <gst/gstconfig.h> | |||
#ifndef M_PI | ||||
#define M_PI 3.14159265358979323846 | ||||
#endif | ||||
G_BEGIN_DECLS | G_BEGIN_DECLS | |||
/** | /** | |||
* GstDebugLevel: | * GstDebugLevel: | |||
* @GST_LEVEL_NONE: No debugging level specified or desired. Used to deacti vate | * @GST_LEVEL_NONE: No debugging level specified or desired. Used to deacti vate | |||
* debugging output. | * debugging output. | |||
* @GST_LEVEL_ERROR: Error messages are to be used only when an error occur ed | * @GST_LEVEL_ERROR: Error messages are to be used only when an error occur ed | |||
* that stops the application from keeping working correctly. | * that stops the application from keeping working correctly. | |||
* An examples is gst_element_error, which outputs a message with this pri ority. | * An examples is gst_element_error, which outputs a message with this pri ority. | |||
* It does not mean that the application is terminating as with g_errror. | * It does not mean that the application is terminating as with g_errror. | |||
* @GST_LEVEL_WARNING: Warning messages are to inform about abnormal behavi our | * @GST_LEVEL_WARNING: Warning messages are to inform about abnormal behavi our | |||
* that could lead to problems or weird behaviour later on. An example of this | * that could lead to problems or weird behaviour later on. An example of this | |||
* would be clocking issues ("your computer is pretty slow") or broken inp ut | * would be clocking issues ("your computer is pretty slow") or broken inp ut | |||
* data ("Can't synchronize to stream.") | * data ("Can't synchronize to stream.") | |||
* @GST_LEVEL_INFO: Informational messages should be used to keep the devel oper | * @GST_LEVEL_INFO: Informational messages should be used to keep the devel oper | |||
* updated about what is happening. | * updated about what is happening. | |||
* Examples where this should be used are when a typefind function has | * Examples where this should be used are when a typefind function has | |||
* successfully determined the type of the stream or when an mp3 plugin de tects | * successfully determined the type of the stream or when an mp3 plugin de tects | |||
* the format to be used. ("This file has mono sound.") | * the format to be used. ("This file has mono sound.") | |||
* @GST_LEVEL_DEBUG: Debugging messages should be used when something commo n | * @GST_LEVEL_DEBUG: Debugging messages should be used when something commo n | |||
* happens that is not the expected default behavior. | * happens that is not the expected default behavior, or something that's | |||
* An example would be notifications about state changes or receiving/send | * useful to know but doesn't happen all the time (ie. per loop iteration | |||
ing of | or | |||
* events. | * buffer processed or event handled). | |||
* An example would be notifications about state changes or receiving/send | ||||
ing | ||||
* of events. | ||||
* @GST_LEVEL_LOG: Log messages are messages that are very common but might be | * @GST_LEVEL_LOG: Log messages are messages that are very common but might be | |||
* useful to know. As a rule of thumb a pipeline that is iterating as expe cted | * useful to know. As a rule of thumb a pipeline that is iterating as expe cted | |||
* should never output anzthing else but LOG messages. | * should never output anything else but LOG messages. Use this log level | |||
* Examples for this are referencing/dereferencing of objects or cothread | to | |||
switches. | * log recurring information in chain functions and loop functions, for | |||
* example. | ||||
* @GST_LEVEL_FIXME: Fixme messages are messages that indicate that somethi ng | * @GST_LEVEL_FIXME: Fixme messages are messages that indicate that somethi ng | |||
* in the executed code path is not fully implemented or handled yet. Note | * in the executed code path is not fully implemented or handled yet. Note | |||
* that this does not replace proper error handling in any way, the purpos e | * that this does not replace proper error handling in any way, the purpos e | |||
* of this message is to make it easier to spot incomplete/unfinished piec es | * of this message is to make it easier to spot incomplete/unfinished piec es | |||
* of code when reading the debug log. (Since: 0.10.23) | * of code when reading the debug log. (Since: 0.10.23) | |||
* @GST_LEVEL_TRACE: Tracing-related messages (Since: 0.10.30) | ||||
* Examples for this are referencing/dereferencing of objects. | ||||
* @GST_LEVEL_MEMDUMP: memory dump messages are used to log (small) chunks of | * @GST_LEVEL_MEMDUMP: memory dump messages are used to log (small) chunks of | |||
* data as memory dumps in the log. They will be displayed as hexdump with | * data as memory dumps in the log. They will be displayed as hexdump with | |||
* ASCII characters. (Since: 0.10.23) | * ASCII characters. (Since: 0.10.23) | |||
* @GST_LEVEL_COUNT: The number of defined debugging levels. | * @GST_LEVEL_COUNT: The number of defined debugging levels. | |||
* | * | |||
* The level defines the importance of a debugging message. The more import ant a | * The level defines the importance of a debugging message. The more import ant a | |||
* message is, the greater the probability that the debugging system output s it. | * message is, the greater the probability that the debugging system output s it. | |||
*/ | */ | |||
typedef enum { | typedef enum { | |||
GST_LEVEL_NONE = 0, | GST_LEVEL_NONE = 0, | |||
GST_LEVEL_ERROR, | GST_LEVEL_ERROR, | |||
GST_LEVEL_WARNING, | GST_LEVEL_WARNING, | |||
GST_LEVEL_INFO, | GST_LEVEL_INFO, | |||
GST_LEVEL_DEBUG, | GST_LEVEL_DEBUG, | |||
GST_LEVEL_LOG, | GST_LEVEL_LOG, | |||
GST_LEVEL_FIXME = 6, | GST_LEVEL_FIXME = 6, | |||
GST_LEVEL_TRACE = 7, | ||||
/* add more */ | /* add more */ | |||
GST_LEVEL_MEMDUMP = 9, | GST_LEVEL_MEMDUMP = 9, | |||
/* add more */ | /* add more */ | |||
GST_LEVEL_COUNT | GST_LEVEL_COUNT | |||
} GstDebugLevel; | } GstDebugLevel; | |||
/** | /** | |||
* GST_LEVEL_DEFAULT: | * GST_LEVEL_DEFAULT: | |||
* | * | |||
* Defines the default debugging level to be used with GStreamer. It is nor mally | * Defines the default debugging level to be used with GStreamer. It is nor mally | |||
skipping to change at line 256 | skipping to change at line 258 | |||
*/ | */ | |||
typedef void (*GstLogFunction) (GstDebugCategory * category, | typedef void (*GstLogFunction) (GstDebugCategory * category, | |||
GstDebugLevel level, | GstDebugLevel level, | |||
const gchar * file, | const gchar * file, | |||
const gchar * function, | const gchar * function, | |||
gint line, | gint line, | |||
GObject * object, | GObject * object, | |||
GstDebugMessage * message, | GstDebugMessage * message, | |||
gpointer data); | gpointer data); | |||
#ifndef GST_DISABLE_GST_DEBUG | ||||
/* FIXME 0.11: move this into private headers */ | /* FIXME 0.11: move this into private headers */ | |||
void _gst_debug_init (void); | void _gst_debug_init (void); | |||
#ifdef GST_USING_PRINTF_EXTENSION | #ifdef GST_USING_PRINTF_EXTENSION | |||
/* not using G_GNUC_PRINTF, since gcc will choke on GST_PTR_FORMAT being %P */ | /* not using G_GNUC_PRINTF, since gcc will choke on GST_PTR_FORMAT being %P */ | |||
void gst_debug_log (GstDebugCategory * category, | void gst_debug_log (GstDebugCategory * category, | |||
GstDebugLevel level, | GstDebugLevel level, | |||
const gchar * file, | const gchar * file, | |||
const gchar * function, | const gchar * function, | |||
skipping to change at line 295 | skipping to change at line 295 | |||
void gst_debug_log_valist (GstDebugCategory * category, | void gst_debug_log_valist (GstDebugCategory * category, | |||
GstDebugLevel level, | GstDebugLevel level, | |||
const gchar * file, | const gchar * file, | |||
const gchar * function, | const gchar * function, | |||
gint line, | gint line, | |||
GObject * object, | GObject * object, | |||
const gchar * format, | const gchar * format, | |||
va_list args) G_GNUC_N O_INSTRUMENT; | va_list args) G_GNUC_N O_INSTRUMENT; | |||
/* do not use this function, use the GST_DEBUG_CATEGORY_INIT macro */ | ||||
GstDebugCategory *_gst_debug_category_new (const gchar * name, | ||||
guint color, | ||||
const gchar * description); | ||||
/* do not use this function, use the GST_DEBUG_CATEGORY_GET macro */ | ||||
GstDebugCategory *_gst_debug_get_category (const gchar *name); | ||||
/* do not use this function, use the GST_CAT_MEMDUMP_* macros */ | ||||
void _gst_debug_dump_mem (GstDebugCategory * cat, const gchar * file, | ||||
const gchar * func, gint line, GObject * obj, const gchar * msg, | ||||
const guint8 * data, guint length); | ||||
/* we define this to avoid a compiler warning regarding a cast from a funct | ||||
ion | ||||
* pointer to a void pointer | ||||
* (see https://bugzilla.gnome.org/show_bug.cgi?id=309253) | ||||
*/ | ||||
typedef void (* GstDebugFuncPtr) (void); | ||||
/* do no use these functions, use the GST_DEBUG*_FUNCPTR macros */ | ||||
void _gst_debug_register_funcptr (GstDebugFuncPtr func, | ||||
const gchar * ptrname); | ||||
G_CONST_RETURN gchar * | ||||
_gst_debug_nameof_funcptr (GstDebugFuncPtr func) G_GNUC | ||||
_NO_INSTRUMENT; | ||||
const gchar * gst_debug_message_get (GstDebugMessage * message); | const gchar * gst_debug_message_get (GstDebugMessage * message); | |||
void gst_debug_log_default (GstDebugCategory * category, | void gst_debug_log_default (GstDebugCategory * category, | |||
GstDebugLevel level, | GstDebugLevel level, | |||
const gchar * file, | const gchar * file, | |||
const gchar * function, | const gchar * function, | |||
gint line, | gint line, | |||
GObject * object, | GObject * object, | |||
GstDebugMessage * message, | GstDebugMessage * message, | |||
gpointer unused) G_GNUC _NO_INSTRUMENT; | gpointer unused) G_GNUC _NO_INSTRUMENT; | |||
skipping to change at line 320 | skipping to change at line 344 | |||
gpointer data) ; | gpointer data) ; | |||
guint gst_debug_remove_log_function (GstLogFunction func) ; | guint gst_debug_remove_log_function (GstLogFunction func) ; | |||
guint gst_debug_remove_log_function_by_data (gpointer data) ; | guint gst_debug_remove_log_function_by_data (gpointer data) ; | |||
void gst_debug_set_active (gboolean active); | void gst_debug_set_active (gboolean active); | |||
gboolean gst_debug_is_active (void); | gboolean gst_debug_is_active (void); | |||
void gst_debug_set_colored (gboolean colored); | void gst_debug_set_colored (gboolean colored); | |||
gboolean gst_debug_is_colored (void); | gboolean gst_debug_is_colored (void); | |||
void gst_debug_set_default_threshold (GstDebugLevel l | void gst_debug_set_default_threshold (GstDebugLevel level); | |||
evel); | GstDebugLevel gst_debug_get_default_threshold (void); | |||
GstDebugLevel gst_debug_get_default_threshold (void); | void gst_debug_set_threshold_for_name (const gchar * name, | |||
void gst_debug_set_threshold_for_name (const gchar * name, | GstDebugLevel level); | |||
GstDebugLevel level); | void gst_debug_unset_threshold_for_name (const gchar * name); | |||
void gst_debug_unset_threshold_for_name (const 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); | ||||
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); | ||||
gchar * gst_debug_construct_term_color (guint colorinfo); | ||||
gint gst_debug_construct_win_color (guint colorinfo); | ||||
#ifndef GST_DISABLE_GST_DEBUG | ||||
/** | /** | |||
* GST_DEBUG_CATEGORY: | * GST_DEBUG_CATEGORY: | |||
* @cat: the category | * @cat: the category | |||
* | * | |||
* Defines a GstDebugCategory variable. | * Defines a GstDebugCategory variable. | |||
* This macro expands to nothing if debugging is disabled. | * This macro expands to nothing if debugging is disabled. | |||
*/ | */ | |||
#define GST_DEBUG_CATEGORY(cat) GstDebugCategory *cat = NULL | #define GST_DEBUG_CATEGORY(cat) GstDebugCategory *cat = NULL | |||
/** | /** | |||
skipping to change at line 351 | skipping to change at line 392 | |||
#define GST_DEBUG_CATEGORY_EXTERN(cat) extern GstDebugCategory *cat | #define GST_DEBUG_CATEGORY_EXTERN(cat) extern GstDebugCategory *cat | |||
/** | /** | |||
* GST_DEBUG_CATEGORY_STATIC: | * GST_DEBUG_CATEGORY_STATIC: | |||
* @cat: the category | * @cat: the category | |||
* | * | |||
* Defines a static GstDebugCategory variable. | * Defines a static GstDebugCategory variable. | |||
* This macro expands to nothing if debugging is disabled. | * This macro expands to nothing if debugging is disabled. | |||
*/ | */ | |||
#define GST_DEBUG_CATEGORY_STATIC(cat) static GstDebugCategory *cat = NULL | #define GST_DEBUG_CATEGORY_STATIC(cat) static GstDebugCategory *cat = NULL | |||
/* do not use this function, use the macros below */ | ||||
GstDebugCategory *_gst_debug_category_new (const gchar * name, | ||||
guint color, | ||||
const gchar * description); | ||||
/** | /** | |||
* GST_DEBUG_CATEGORY_INIT: | * GST_DEBUG_CATEGORY_INIT: | |||
* @cat: the category to initialize. | * @cat: the category to initialize. | |||
* @name: the name of the category. | * @name: the name of the category. | |||
* @color: the colors to use for a color representation or 0 for no color. | * @color: the colors to use for a color representation or 0 for no color. | |||
* @description: optional description of the category. | * @description: optional description of the category. | |||
* | * | |||
* Initializes a new #GstDebugCategory with the given properties and set to | * Initializes a new #GstDebugCategory with the given properties and set to | |||
* the default threshold. | * the default threshold. | |||
* | * | |||
skipping to change at line 395 | skipping to change at line 433 | |||
* uses the GST prefix so GStreamer categories look like "GST_STATES". Be s ure | * uses the GST prefix so GStreamer categories look like "GST_STATES". Be s ure | |||
* to include uppercase letters. | * to include uppercase letters. | |||
* </para> | * </para> | |||
* </note> | * </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) \ | if (cat == NULL) \ | |||
cat = _gst_debug_category_new (name,color,description); \ | cat = _gst_debug_category_new (name,color,description); \ | |||
}G_STMT_END | }G_STMT_END | |||
void gst_debug_category_free (GstDebugCategory * category); | /** | |||
void gst_debug_category_set_threshold (GstDebugCategory * category, | * GST_DEBUG_CATEGORY_GET: | |||
GstDebugLevel level); | * @cat: the category to initialize. | |||
void gst_debug_category_reset_threshold(GstDebugCategory * category); | * @name: log category name | |||
GstDebugLevel | * | |||
gst_debug_category_get_threshold (GstDebugCategory * category); | * Looks up an existing #GstDebugCategory by its @name and sets @cat. If th | |||
G_CONST_RETURN gchar * | e | |||
gst_debug_category_get_name (GstDebugCategory * category); | * category is not found, but GST_CAT_DEFAULT is defined, that is assigned | |||
guint gst_debug_category_get_color (GstDebugCategory * category); | to | |||
G_CONST_RETURN gchar * | * @cat. Otherwise @cat will be NULL. | |||
gst_debug_category_get_description (GstDebugCategory * category); | * | |||
GSList * | * |[ | |||
gst_debug_get_all_categories (void); | * GST_DEBUG_CATEGORY_STATIC (gst_myplugin_debug); | |||
* #define GST_CAT_DEFAULT gst_myplugin_debug | ||||
gchar * gst_debug_construct_term_color (guint colorinfo); | * GST_DEBUG_CATEGORY_STATIC (GST_CAT_PERFORMANCE); | |||
gint gst_debug_construct_win_color (guint colorinfo); | * ... | |||
* GST_DEBUG_CATEGORY_INIT (gst_myplugin_debug, "myplugin", 0, "nice elemen | ||||
t"); | ||||
* GST_DEBUG_CATEGORY_GET (GST_CAT_PERFORMANCE, "GST_PERFORMANCE"); | ||||
* ]| | ||||
* | ||||
* Since: 0.10.24 | ||||
*/ | ||||
#ifdef GST_CAT_DEFAULT | ||||
#define GST_DEBUG_CATEGORY_GET(cat,name) G_STMT_START{\ | ||||
cat = _gst_debug_get_category (name); \ | ||||
if (!cat) { \ | ||||
cat = GST_CAT_DEFAULT; \ | ||||
} \ | ||||
}G_STMT_END | ||||
#else | ||||
#define GST_DEBUG_CATEGORY_GET(cat,name) G_STMT_START{\ | ||||
cat = _gst_debug_get_category (name); \ | ||||
}G_STMT_END | ||||
#endif | ||||
/** | /** | |||
* GST_CAT_DEFAULT: | * GST_CAT_DEFAULT: | |||
* | * | |||
* Default gstreamer core debug log category. Please define your own. | * Default gstreamer core debug log category. Please define your own. | |||
*/ | */ | |||
GST_EXPORT GstDebugCategory * GST_CAT_DEFAULT; | GST_EXPORT GstDebugCategory * GST_CAT_DEFAULT; | |||
/* this symbol may not be used */ | /* this symbol may not be used */ | |||
extern gboolean __gst_debug_enabled; | extern gboolean __gst_debug_enabled; | |||
skipping to change at line 475 | skipping to change at line 529 | |||
{ | { | |||
va_list varargs; | va_list varargs; | |||
va_start (varargs, format); | va_start (varargs, format); | |||
GST_CAT_LEVEL_LOG_valist (cat, level, object, format, varargs); | GST_CAT_LEVEL_LOG_valist (cat, level, object, format, varargs); | |||
va_end (varargs); | va_end (varargs); | |||
} | } | |||
#endif | #endif | |||
#endif /* G_HAVE_ISO_VARARGS */ | #endif /* G_HAVE_ISO_VARARGS */ | |||
/* private helper function */ | ||||
void _gst_debug_dump_mem (GstDebugCategory * cat, const gchar * file, | ||||
const gchar * func, gint line, GObject * obj, const gchar * msg, | ||||
const guint8 * data, guint length); | ||||
/* This one doesn't have varargs in the macro, so it's different than all t he | /* This one doesn't have varargs in the macro, so it's different than all t he | |||
* other macros and hence in a separate block right here. Docs chunks are | * other macros and hence in a separate block right here. Docs chunks are | |||
* with the other doc chunks below though. */ | * with the other doc chunks below though. */ | |||
#define __GST_CAT_MEMDUMP_LOG(cat,object,msg,data,length) G_STMT_START{ \ | #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__, \ | _gst_debug_dump_mem ((cat), __FILE__, GST_FUNCTION, __LINE__, \ | |||
(GObject *) (object), (msg), (data), (length)); \ | (GObject *) (object), (msg), (data), (length)); \ | |||
} \ | } \ | |||
}G_STMT_END | }G_STMT_END | |||
skipping to change at line 551 | skipping to change at line 600 | |||
* GST_CAT_FIXME_OBJECT: | * GST_CAT_FIXME_OBJECT: | |||
* @cat: category to use | * @cat: category to use | |||
* @obj: the #GObject the message belongs to | * @obj: the #GObject the message belongs to | |||
* @...: printf-style message to output | * @...: printf-style message to output | |||
* | * | |||
* Output a fixme message belonging to the given object in the given catego ry. | * Output a fixme message belonging to the given object in the given catego ry. | |||
* | * | |||
* Since: 0.10.23 | * Since: 0.10.23 | |||
*/ | */ | |||
/** | /** | |||
* GST_CAT_TRACE_OBJECT: | ||||
* @cat: category to use | ||||
* @obj: the #GObject the message belongs to | ||||
* @...: printf-style message to output | ||||
* | ||||
* Output a tracing message belonging to the given object in the given | ||||
* category. | ||||
* | ||||
* Since: 0.10.30 | ||||
*/ | ||||
/** | ||||
* GST_CAT_MEMDUMP_OBJECT: | * GST_CAT_MEMDUMP_OBJECT: | |||
* @cat: category to use | * @cat: category to use | |||
* @obj: the #GObject the message belongs to | * @obj: the #GObject the message belongs to | |||
* @msg: message string to log with the data | * @msg: message string to log with the data | |||
* @data: pointer to the data to output | * @data: pointer to the data to output | |||
* @length: length of the data to output | * @length: length of the data to output | |||
* | * | |||
* Output a hexdump of @data relating to the given object in the given | * Output a hexdump of @data relating to the given object in the given | |||
* category. | * category. | |||
* | * | |||
skipping to change at line 609 | skipping to change at line 669 | |||
/** | /** | |||
* GST_CAT_FIXME: | * GST_CAT_FIXME: | |||
* @cat: category to use | * @cat: category to use | |||
* @...: printf-style message to output | * @...: printf-style message to output | |||
* | * | |||
* Output an fixme message in the given category. | * Output an fixme message in the given category. | |||
* | * | |||
* Since: 0.10.23 | * Since: 0.10.23 | |||
*/ | */ | |||
/** | /** | |||
* GST_CAT_TRACE: | ||||
* @cat: category to use | ||||
* @...: printf-style message to output | ||||
* | ||||
* Output a tracing message in the given category. | ||||
* | ||||
* Since: 0.10.30 | ||||
*/ | ||||
/** | ||||
* GST_CAT_MEMDUMP: | * GST_CAT_MEMDUMP: | |||
* @cat: category to use | * @cat: category to use | |||
* @msg: message string to log with the data | * @msg: message string to log with the data | |||
* @data: pointer to the data to output | * @data: pointer to the data to output | |||
* @length: length of the data to output | * @length: length of the data to output | |||
* | * | |||
* Output a hexdump of @data in the given category. | * Output a hexdump of @data in the given category. | |||
* | * | |||
* Since: 0.10.23 | * Since: 0.10.23 | |||
*/ | */ | |||
skipping to change at line 662 | skipping to change at line 731 | |||
* @obj: the #GObject the message belongs to | * @obj: the #GObject the message belongs to | |||
* @...: printf-style message to output | * @...: printf-style message to output | |||
* | * | |||
* Output a logging message belonging to the given object in the default ca tegory. | * Output a logging message belonging to the given object in the default ca tegory. | |||
*/ | */ | |||
/** | /** | |||
* GST_FIXME_OBJECT: | * GST_FIXME_OBJECT: | |||
* @obj: the #GObject the message belongs to | * @obj: the #GObject the message belongs to | |||
* @...: printf-style message to output | * @...: printf-style message to output | |||
* | * | |||
* Output a logging message belonging to the given object in the default ca tegory. | * Output a fixme message belonging to the given object in the default cate gory. | |||
* | * | |||
* Since: 0.10.23 | * Since: 0.10.23 | |||
*/ | */ | |||
/** | /** | |||
* GST_TRACE_OBJECT: | ||||
* @obj: the #GObject the message belongs to | ||||
* @...: printf-style message to output | ||||
* | ||||
* Output a tracing message belonging to the given object in the default ca | ||||
tegory. | ||||
* | ||||
* Since: 0.10.30 | ||||
*/ | ||||
/** | ||||
* GST_MEMDUMP_OBJECT: | * GST_MEMDUMP_OBJECT: | |||
* @obj: the #GObject the message belongs to | * @obj: the #GObject the message belongs to | |||
* @msg: message string to log with the data | * @msg: message string to log with the data | |||
* @data: pointer to the data to output | * @data: pointer to the data to output | |||
* @length: length of the data to output | * @length: length of the data to output | |||
* | * | |||
* Output a logging message belonging to the given object in the default ca tegory. | * Output a logging message belonging to the given object in the default ca tegory. | |||
* | * | |||
* Since: 0.10.23 | * Since: 0.10.23 | |||
*/ | */ | |||
skipping to change at line 717 | skipping to change at line 795 | |||
*/ | */ | |||
/** | /** | |||
* GST_FIXME: | * GST_FIXME: | |||
* @...: printf-style message to output | * @...: printf-style message to output | |||
* | * | |||
* Output a fixme message in the default category. | * Output a fixme message in the default category. | |||
* | * | |||
* Since: 0.10.23 | * Since: 0.10.23 | |||
*/ | */ | |||
/** | /** | |||
* GST_TRACE: | ||||
* @...: printf-style message to output | ||||
* | ||||
* Output a tracing message in the default category. | ||||
* | ||||
* Since: 0.10.30 | ||||
*/ | ||||
/** | ||||
* GST_MEMDUMP: | * GST_MEMDUMP: | |||
* @msg: message string to log with the data | * @msg: message string to log with the data | |||
* @data: pointer to the data to output | * @data: pointer to the data to output | |||
* @length: length of the data to output | * @length: length of the data to output | |||
* | * | |||
* Output a hexdump of @data. | * Output a hexdump of @data. | |||
* | * | |||
* Since: 0.10.23 | * Since: 0.10.23 | |||
*/ | */ | |||
#ifdef G_HAVE_ISO_VARARGS | #ifdef G_HAVE_ISO_VARARGS | |||
#define GST_CAT_ERROR_OBJECT(cat,obj,...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_ERROR, obj, __VA_ARGS__) | #define GST_CAT_ERROR_OBJECT(cat,obj,...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_ERROR, obj, __VA_ARGS__) | |||
#define GST_CAT_WARNING_OBJECT(cat,obj,...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_WARNING, obj, __VA_ARGS__) | #define GST_CAT_WARNING_OBJECT(cat,obj,...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_WARNING, obj, __VA_ARGS__) | |||
#define GST_CAT_INFO_OBJECT(cat,obj,...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_INFO, obj, __VA_ARGS__) | #define GST_CAT_INFO_OBJECT(cat,obj,...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_INFO, obj, __VA_ARGS__) | |||
#define GST_CAT_DEBUG_OBJECT(cat,obj,...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_DEBUG, obj, __VA_ARGS__) | #define GST_CAT_DEBUG_OBJECT(cat,obj,...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_DEBUG, obj, __VA_ARGS__) | |||
#define GST_CAT_LOG_OBJECT(cat,obj,...) GST_CAT_LEVEL_LOG (c at, GST_LEVEL_LOG, obj, __VA_ARGS__) | #define GST_CAT_LOG_OBJECT(cat,obj,...) GST_CAT_LEVEL_LOG (c at, GST_LEVEL_LOG, obj, __VA_ARGS__) | |||
#define GST_CAT_FIXME_OBJECT(cat,obj,...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_FIXME, obj, __VA_ARGS__) | #define GST_CAT_FIXME_OBJECT(cat,obj,...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_FIXME, obj, __VA_ARGS__) | |||
#define GST_CAT_TRACE_OBJECT(cat,obj,...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_TRACE, obj, __VA_ARGS__) | ||||
#define GST_CAT_ERROR(cat,...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_ERROR, NULL, __VA_ARGS__) | #define GST_CAT_ERROR(cat,...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_ERROR, NULL, __VA_ARGS__) | |||
#define GST_CAT_WARNING(cat,...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_WARNING, NULL, __VA_ARGS__) | #define GST_CAT_WARNING(cat,...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_WARNING, NULL, __VA_ARGS__) | |||
#define GST_CAT_INFO(cat,...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_INFO, NULL, __VA_ARGS__) | #define GST_CAT_INFO(cat,...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_INFO, NULL, __VA_ARGS__) | |||
#define GST_CAT_DEBUG(cat,...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_DEBUG, NULL, __VA_ARGS__) | #define GST_CAT_DEBUG(cat,...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_DEBUG, NULL, __VA_ARGS__) | |||
#define GST_CAT_LOG(cat,...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_LOG, NULL, __VA_ARGS__) | #define GST_CAT_LOG(cat,...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_LOG, NULL, __VA_ARGS__) | |||
#define GST_CAT_FIXME(cat,...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_FIXME, NULL, __VA_ARGS__) | #define GST_CAT_FIXME(cat,...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_FIXME, NULL, __VA_ARGS__) | |||
#define GST_CAT_TRACE(cat,...) GST_CAT_LEVEL_LOG (cat, GST_LEVEL_TR ACE, NULL, __VA_ARGS__) | ||||
#define GST_ERROR_OBJECT(obj,...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_ERROR, obj, __VA_ARGS__) | #define GST_ERROR_OBJECT(obj,...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_ERROR, obj, __VA_ARGS__) | |||
#define GST_WARNING_OBJECT(obj,...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_WARNING, obj, __VA_ARGS__) | #define GST_WARNING_OBJECT(obj,...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_WARNING, obj, __VA_ARGS__) | |||
#define GST_INFO_OBJECT(obj,...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_INFO, obj, __VA_ARGS__) | #define GST_INFO_OBJECT(obj,...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_INFO, obj, __VA_ARGS__) | |||
#define GST_DEBUG_OBJECT(obj,...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_DEBUG, obj, __VA_ARGS__) | #define GST_DEBUG_OBJECT(obj,...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_DEBUG, obj, __VA_ARGS__) | |||
#define GST_LOG_OBJECT(obj,...) GST_CAT_LEVEL_LOG (GST_CAT_D EFAULT, GST_LEVEL_LOG, obj, __VA_ARGS__) | #define GST_LOG_OBJECT(obj,...) GST_CAT_LEVEL_LOG (GST_CAT_D EFAULT, GST_LEVEL_LOG, obj, __VA_ARGS__) | |||
#define GST_FIXME_OBJECT(obj,...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_FIXME, obj, __VA_ARGS__) | #define GST_FIXME_OBJECT(obj,...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_FIXME, obj, __VA_ARGS__) | |||
#define GST_TRACE_OBJECT(obj,...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_TRACE, obj, __VA_ARGS__) | ||||
#define GST_ERROR(...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_ERROR, NULL, __VA_ARGS__) | #define GST_ERROR(...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_ERROR, NULL, __VA_ARGS__) | |||
#define GST_WARNING(...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_WARNING, NULL, __VA_ARGS__) | #define GST_WARNING(...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_WARNING, NULL, __VA_ARGS__) | |||
#define GST_INFO(...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_INFO, NULL, __VA_ARGS__) | #define GST_INFO(...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_INFO, NULL, __VA_ARGS__) | |||
#define GST_DEBUG(...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_DEBUG, NULL, __VA_ARGS__) | #define GST_DEBUG(...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_DEBUG, NULL, __VA_ARGS__) | |||
#define GST_LOG(...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_LOG, NULL, __VA_ARGS__) | #define GST_LOG(...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_LOG, NULL, __VA_ARGS__) | |||
#define GST_FIXME(...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_FIXME, NULL, __VA_ARGS__) | #define GST_FIXME(...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_FIXME, NULL, __VA_ARGS__) | |||
#define GST_TRACE(...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVE L_TRACE, NULL, __VA_ARGS__) | ||||
#else | #else | |||
#ifdef G_HAVE_GNUC_VARARGS | #ifdef G_HAVE_GNUC_VARARGS | |||
#define GST_CAT_ERROR_OBJECT(cat,obj,args...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_ERROR, obj, ##args ) | #define GST_CAT_ERROR_OBJECT(cat,obj,args...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_ERROR, obj, ##args ) | |||
#define GST_CAT_WARNING_OBJECT(cat,obj,args...) GST_CAT_LEVEL_LOG (c at, GST_LEVEL_WARNING, obj, ##args ) | #define GST_CAT_WARNING_OBJECT(cat,obj,args...) GST_CAT_LEVEL_LOG (c at, GST_LEVEL_WARNING, obj, ##args ) | |||
#define GST_CAT_INFO_OBJECT(cat,obj,args...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_INFO, obj, ##args ) | #define GST_CAT_INFO_OBJECT(cat,obj,args...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_INFO, obj, ##args ) | |||
#define GST_CAT_DEBUG_OBJECT(cat,obj,args...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_DEBUG, obj, ##args ) | #define GST_CAT_DEBUG_OBJECT(cat,obj,args...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_DEBUG, obj, ##args ) | |||
#define GST_CAT_LOG_OBJECT(cat,obj,args...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_LOG, obj, ##args ) | #define GST_CAT_LOG_OBJECT(cat,obj,args...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_LOG, obj, ##args ) | |||
#define GST_CAT_FIXME_OBJECT(cat,obj,args...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_FIXME, obj, ##args ) | #define GST_CAT_FIXME_OBJECT(cat,obj,args...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_FIXME, obj, ##args ) | |||
#define GST_CAT_TRACE_OBJECT(cat,obj,args...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_TRACE, obj, ##args ) | ||||
#define GST_CAT_ERROR(cat,args...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_ERROR, NULL, ##args ) | #define GST_CAT_ERROR(cat,args...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_ERROR, NULL, ##args ) | |||
#define GST_CAT_WARNING(cat,args...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_WARNING, NULL, ##args ) | #define GST_CAT_WARNING(cat,args...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_WARNING, NULL, ##args ) | |||
#define GST_CAT_INFO(cat,args...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_INFO, NULL, ##args ) | #define GST_CAT_INFO(cat,args...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_INFO, NULL, ##args ) | |||
#define GST_CAT_DEBUG(cat,args...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_DEBUG, NULL, ##args ) | #define GST_CAT_DEBUG(cat,args...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_DEBUG, NULL, ##args ) | |||
#define GST_CAT_LOG(cat,args...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_LOG, NULL, ##args ) | #define GST_CAT_LOG(cat,args...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_LOG, NULL, ##args ) | |||
#define GST_CAT_FIXME(cat,args...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_FIXME, NULL, ##args ) | #define GST_CAT_FIXME(cat,args...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_FIXME, NULL, ##args ) | |||
#define GST_CAT_TRACE(cat,args...) GST_CAT_LEVEL_LOG (cat, GST_ LEVEL_TRACE, NULL, ##args ) | ||||
#define GST_ERROR_OBJECT(obj,args...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_ERROR, obj, ##args ) | #define GST_ERROR_OBJECT(obj,args...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_ERROR, obj, ##args ) | |||
#define GST_WARNING_OBJECT(obj,args...) GST_CAT_LEVEL_LOG (GST_CAT_D EFAULT, GST_LEVEL_WARNING, obj, ##args ) | #define GST_WARNING_OBJECT(obj,args...) GST_CAT_LEVEL_LOG (GST_CAT_D EFAULT, GST_LEVEL_WARNING, obj, ##args ) | |||
#define GST_INFO_OBJECT(obj,args...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_INFO, obj, ##args ) | #define GST_INFO_OBJECT(obj,args...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_INFO, obj, ##args ) | |||
#define GST_DEBUG_OBJECT(obj,args...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_DEBUG, obj, ##args ) | #define GST_DEBUG_OBJECT(obj,args...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_DEBUG, obj, ##args ) | |||
#define GST_LOG_OBJECT(obj,args...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_LOG, obj, ##args ) | #define GST_LOG_OBJECT(obj,args...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_LOG, obj, ##args ) | |||
#define GST_FIXME_OBJECT(obj,args...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_FIXME, obj, ##args ) | #define GST_FIXME_OBJECT(obj,args...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_FIXME, obj, ##args ) | |||
#define GST_TRACE_OBJECT(obj,args...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_TRACE, obj, ##args ) | ||||
#define GST_ERROR(args...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_ERROR, NULL, ##args ) | #define GST_ERROR(args...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_ERROR, NULL, ##args ) | |||
#define GST_WARNING(args...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_WARNING, NULL, ##args ) | #define GST_WARNING(args...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_WARNING, NULL, ##args ) | |||
#define GST_INFO(args...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_INFO, NULL, ##args ) | #define GST_INFO(args...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_INFO, NULL, ##args ) | |||
#define GST_DEBUG(args...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_DEBUG, NULL, ##args ) | #define GST_DEBUG(args...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_DEBUG, NULL, ##args ) | |||
#define GST_LOG(args...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_LOG, NULL, ##args ) | #define GST_LOG(args...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_LOG, NULL, ##args ) | |||
#define GST_FIXME(args...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_FIXME, NULL, ##args ) | #define GST_FIXME(args...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_FIXME, NULL, ##args ) | |||
#define GST_TRACE(args...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_TRACE, NULL, ##args ) | ||||
#else | #else | |||
/* no variadic macros, use inline */ | /* no variadic macros, use inline */ | |||
static inline void | static inline void | |||
GST_CAT_ERROR_OBJECT (GstDebugCategory * cat, gpointer obj, const char *for mat, | GST_CAT_ERROR_OBJECT (GstDebugCategory * cat, gpointer obj, const char *for mat, | |||
...) | ...) | |||
{ | { | |||
va_list varargs; | va_list varargs; | |||
va_start (varargs, format); | va_start (varargs, format); | |||
skipping to change at line 857 | skipping to change at line 951 | |||
...) | ...) | |||
{ | { | |||
va_list varargs; | va_list varargs; | |||
va_start (varargs, format); | va_start (varargs, format); | |||
GST_CAT_LEVEL_LOG_valist (cat, GST_LEVEL_FIXME, obj, format, varargs); | GST_CAT_LEVEL_LOG_valist (cat, GST_LEVEL_FIXME, obj, format, varargs); | |||
va_end (varargs); | va_end (varargs); | |||
} | } | |||
static inline void | static inline void | |||
GST_CAT_TRACE_OBJECT (GstDebugCategory * cat, gpointer obj, const char *for | ||||
mat, | ||||
...) | ||||
{ | ||||
va_list varargs; | ||||
va_start (varargs, format); | ||||
GST_CAT_LEVEL_LOG_valist (cat, GST_LEVEL_TRACE, obj, format, varargs); | ||||
va_end (varargs); | ||||
} | ||||
static inline void | ||||
GST_CAT_ERROR (GstDebugCategory * cat, const char *format, ...) | GST_CAT_ERROR (GstDebugCategory * cat, const char *format, ...) | |||
{ | { | |||
va_list varargs; | va_list varargs; | |||
va_start (varargs, format); | va_start (varargs, format); | |||
GST_CAT_LEVEL_LOG_valist (cat, GST_LEVEL_ERROR, NULL, format, varargs); | GST_CAT_LEVEL_LOG_valist (cat, GST_LEVEL_ERROR, NULL, format, varargs); | |||
va_end (varargs); | va_end (varargs); | |||
} | } | |||
static inline void | static inline void | |||
skipping to change at line 917 | skipping to change at line 1022 | |||
GST_CAT_FIXME (GstDebugCategory * cat, const char *format, ...) | GST_CAT_FIXME (GstDebugCategory * cat, const char *format, ...) | |||
{ | { | |||
va_list varargs; | va_list varargs; | |||
va_start (varargs, format); | va_start (varargs, format); | |||
GST_CAT_LEVEL_LOG_valist (cat, GST_LEVEL_FIXME, NULL, format, varargs); | GST_CAT_LEVEL_LOG_valist (cat, GST_LEVEL_FIXME, NULL, format, varargs); | |||
va_end (varargs); | va_end (varargs); | |||
} | } | |||
static inline void | static inline void | |||
GST_CAT_TRACE (GstDebugCategory * cat, const char *format, ...) | ||||
{ | ||||
va_list varargs; | ||||
va_start (varargs, format); | ||||
GST_CAT_LEVEL_LOG_valist (cat, GST_LEVEL_TRACE, NULL, format, varargs); | ||||
va_end (varargs); | ||||
} | ||||
static inline void | ||||
GST_ERROR_OBJECT (gpointer obj, const char *format, ...) | GST_ERROR_OBJECT (gpointer obj, const char *format, ...) | |||
{ | { | |||
va_list varargs; | va_list varargs; | |||
va_start (varargs, format); | va_start (varargs, format); | |||
GST_CAT_LEVEL_LOG_valist (GST_CAT_DEFAULT, GST_LEVEL_ERROR, obj, format, | GST_CAT_LEVEL_LOG_valist (GST_CAT_DEFAULT, GST_LEVEL_ERROR, obj, format, | |||
varargs); | varargs); | |||
va_end (varargs); | va_end (varargs); | |||
} | } | |||
skipping to change at line 983 | skipping to change at line 1098 | |||
{ | { | |||
va_list varargs; | va_list varargs; | |||
va_start (varargs, format); | va_start (varargs, format); | |||
GST_CAT_LEVEL_LOG_valist (GST_CAT_DEFAULT, GST_LEVEL_FIXME, obj, format, | GST_CAT_LEVEL_LOG_valist (GST_CAT_DEFAULT, GST_LEVEL_FIXME, obj, format, | |||
varargs); | varargs); | |||
va_end (varargs); | va_end (varargs); | |||
} | } | |||
static inline void | static inline void | |||
GST_TRACE_OBJECT (gpointer obj, const char *format, ...) | ||||
{ | ||||
va_list varargs; | ||||
va_start (varargs, format); | ||||
GST_CAT_LEVEL_LOG_valist (GST_CAT_DEFAULT, GST_LEVEL_TRACE, obj, format, | ||||
varargs); | ||||
va_end (varargs); | ||||
} | ||||
static inline void | ||||
GST_ERROR (const char *format, ...) | GST_ERROR (const char *format, ...) | |||
{ | { | |||
va_list varargs; | va_list varargs; | |||
va_start (varargs, format); | va_start (varargs, format); | |||
GST_CAT_LEVEL_LOG_valist (GST_CAT_DEFAULT, GST_LEVEL_ERROR, NULL, format, | GST_CAT_LEVEL_LOG_valist (GST_CAT_DEFAULT, GST_LEVEL_ERROR, NULL, format, | |||
varargs); | varargs); | |||
va_end (varargs); | va_end (varargs); | |||
} | } | |||
skipping to change at line 1047 | skipping to change at line 1173 | |||
static inline void | static inline void | |||
GST_FIXME (const char *format, ...) | GST_FIXME (const char *format, ...) | |||
{ | { | |||
va_list varargs; | va_list varargs; | |||
va_start (varargs, format); | va_start (varargs, format); | |||
GST_CAT_LEVEL_LOG_valist (GST_CAT_DEFAULT, GST_LEVEL_FIXME, NULL, format, | GST_CAT_LEVEL_LOG_valist (GST_CAT_DEFAULT, GST_LEVEL_FIXME, NULL, format, | |||
varargs); | varargs); | |||
va_end (varargs); | va_end (varargs); | |||
} | } | |||
static inline void | ||||
GST_TRACE (const char *format, ...) | ||||
{ | ||||
va_list varargs; | ||||
va_start (varargs, format); | ||||
GST_CAT_LEVEL_LOG_valist (GST_CAT_DEFAULT, GST_LEVEL_TRACE, NULL, format, | ||||
varargs); | ||||
va_end (varargs); | ||||
} | ||||
#endif | #endif | |||
#endif | #endif | |||
/********** function pointer stuff **********/ | /********** function pointer stuff **********/ | |||
typedef void (* GstDebugFuncPtr) (void); | /** | |||
void _gst_debug_register_funcptr (GstDebugFuncPtr func, | * GST_DEBUG_REGISTER_FUNCPTR: | |||
const gchar * ptrname); | * @ptr: pointer to the function to register | |||
G_CONST_RETURN gchar * | * | |||
_gst_debug_nameof_funcptr (GstDebugFuncPtr func); | * Register a pointer to a function with its name, so it can later be used | |||
by | ||||
* GST_DEBUG_FUNCPTR_NAME(). | ||||
* | ||||
* Use this variant of #GST_DEBUG_FUNCPTR if you do not need to use @ptr. | ||||
* | ||||
* Since: 0.10.26 | ||||
*/ | ||||
#define GST_DEBUG_REGISTER_FUNCPTR(ptr) \ | ||||
_gst_debug_register_funcptr((GstDebugFuncPtr)(ptr), #ptr) | ||||
/** | /** | |||
* GST_DEBUG_FUNCPTR: | * GST_DEBUG_FUNCPTR: | |||
* @ptr: pointer to the function to register | * @ptr: pointer to the function to register | |||
* | * | |||
* Register a pointer to a function with its name, so it can later be used by | * Register a pointer to a function with its name, so it can later be used by | |||
* GST_DEBUG_FUNCPTR_NAME(). | * GST_DEBUG_FUNCPTR_NAME(). | |||
* | ||||
* Returns: the value passed to @ptr. | ||||
*/ | */ | |||
#define GST_DEBUG_FUNCPTR(ptr) \ | #define GST_DEBUG_FUNCPTR(ptr) \ | |||
(_gst_debug_register_funcptr((GstDebugFuncPtr)(ptr), #ptr) , ptr) | (_gst_debug_register_funcptr((GstDebugFuncPtr)(ptr), #ptr) , ptr) | |||
/** | /** | |||
* GST_DEBUG_FUNCPTR_NAME: | * GST_DEBUG_FUNCPTR_NAME: | |||
* @ptr: address of the function of which to look up the name | * @ptr: address of the function of which to look up the name | |||
* | * | |||
* Retrieves the name of the function, if it was previously registered with | * Retrieves the name of the function, if it was previously registered with | |||
* GST_DEBUG_FUNCPTR(). If not, it returns a description of the pointer. | * GST_DEBUG_FUNCPTR(). If not, it returns a description of the pointer. | |||
skipping to change at line 1091 | skipping to change at line 1237 | |||
#else /* GST_DISABLE_GST_DEBUG */ | #else /* GST_DISABLE_GST_DEBUG */ | |||
#ifndef GST_INFO_C | #ifndef GST_INFO_C | |||
#if defined(__GNUC__) && __GNUC__ >= 3 | #if defined(__GNUC__) && __GNUC__ >= 3 | |||
# pragma GCC poison gst_debug_log | # pragma GCC poison gst_debug_log | |||
# pragma GCC poison gst_debug_log_valist | # pragma GCC poison gst_debug_log_valist | |||
# pragma GCC poison _gst_debug_category_new | # pragma GCC poison _gst_debug_category_new | |||
#endif | #endif | |||
#define _gst_debug_init() /* NOP */ | #define __gst_debug_min GST_LEVEL_NONE | |||
#define _gst_debug_init() G_STMT_START{ }G_STM | ||||
T_END | ||||
#define gst_debug_set_default_threshold(level) /* NOP */ | #define gst_debug_set_default_threshold(level) G_STMT_START{ }G_STM T_END | |||
#define gst_debug_get_default_threshold() (GST_LEVEL_NONE) | #define gst_debug_get_default_threshold() (GST_LEVEL_NONE) | |||
#define gst_debug_level_get_name(level) ("NO NE") | #define gst_debug_level_get_name(level) ("NO NE") | |||
#define gst_debug_message_get(message) ("") | #define gst_debug_message_get(message) ("") | |||
#define gst_debug_add_log_function(func,data) /* NOP */ | #define gst_debug_add_log_function(func,data) G_STMT_START{ }G_STM | |||
guint gst_debug_remove_log_function (GstLogFunction func); | T_END | |||
guint gst_debug_remove_log_function_by_data (gpointer data); | #define gst_debug_set_active(active) G_STMT_START{ }G_STM | |||
#define gst_debug_set_active(active) /* NOP */ | T_END | |||
#define gst_debug_is_active() (FALSE) | #define gst_debug_is_active() (FALSE) | |||
#define gst_debug_set_colored(colored) /* NOP */ | #define gst_debug_set_colored(colored) G_STMT_START{ }G_STM T_END | |||
#define gst_debug_is_colored() (FALSE) | #define gst_debug_is_colored() (FALSE) | |||
#define gst_debug_set_default_threshold(level) /* NOP */ | #define gst_debug_set_default_threshold(level) G_STMT_START{ }G_STM T_END | |||
#define gst_debug_get_default_threshold() (GST_LEVEL_NONE) | #define gst_debug_get_default_threshold() (GST_LEVEL_NONE) | |||
#define gst_debug_set_threshold_for_name(name,level) /* NOP */ | #define gst_debug_set_threshold_for_name(name,level) G_STMT_START{ }G_STM | |||
#define gst_debug_unset_threshold_for_name(name) /* NOP */ | T_END | |||
#define gst_debug_unset_threshold_for_name(name) G_STMT_START{ }G_STM | ||||
T_END | ||||
#define GST_DEBUG_CATEGORY(var) /* NOP */ | /* we are using dummy function prototypes here to eat ';' as these macros a | |||
#define GST_DEBUG_CATEGORY_EXTERN(var) /* NOP */ | re | |||
#if !defined(G_HAVE_GNUC_VARARGS) && !defined(G_HAVE_ISO_VARARGS) | * used outside of functions */ | |||
#define GST_DEBUG_CATEGORY_STATIC(var) static GstDebugCateg | #define GST_DEBUG_CATEGORY(var) void _gst_de | |||
ory *var = NULL | bug_dummy_##var (void) | |||
#else | #define GST_DEBUG_CATEGORY_EXTERN(var) void _gst_debug_dumm | |||
#define GST_DEBUG_CATEGORY_STATIC(var) /* NOP */ | y_extern_##var (void) | |||
#endif | #define GST_DEBUG_CATEGORY_STATIC(var) void _gst_debug_dumm | |||
#define GST_DEBUG_CATEGORY_INIT(var,name,color,desc) /* NOP */ | y_static_##var (void) | |||
#define gst_debug_category_free(category) /* NOP */ | ||||
#define gst_debug_category_set_threshold(category,level) /* NOP */ | #define GST_DEBUG_CATEGORY_INIT(var,name,color,desc) G_STMT_START{ }G_STM | |||
#define gst_debug_category_reset_threshold(category) /* NOP */ | T_END | |||
#define GST_DEBUG_CATEGORY_GET(var,name) G_STMT_START{ }G_STM | ||||
T_END | ||||
#define gst_debug_category_free(category) G_STMT_START{ }G_STM | ||||
T_END | ||||
#define gst_debug_category_set_threshold(category,level) G_STMT_START{ }G_S | ||||
TMT_END | ||||
#define gst_debug_category_reset_threshold(category) G_STMT_START{ }G_STM | ||||
T_END | ||||
#define gst_debug_category_get_threshold(category) (GST_LEVEL_NONE) | #define gst_debug_category_get_threshold(category) (GST_LEVEL_NONE) | |||
#define gst_debug_category_get_name(cat) ("") | #define gst_debug_category_get_name(cat) ("") | |||
#define gst_debug_category_get_color(cat) (0) | #define gst_debug_category_get_color(cat) (0) | |||
#define gst_debug_category_get_description(cat) ("") | #define gst_debug_category_get_description(cat) ("") | |||
#define gst_debug_get_all_categories() (NULL) | #define gst_debug_get_all_categories() (NULL) | |||
#define gst_debug_construct_term_color(colorinfo) (g_strdup ("00")) | #define gst_debug_construct_term_color(colorinfo) (g_strdup ("00")) | |||
#define gst_debug_construct_win_color(colorinfo) (0) | #define gst_debug_construct_win_color(colorinfo) (0) | |||
#endif /* !GST_INFO_C */ | #endif /* !GST_INFO_C */ | |||
#ifdef G_HAVE_ISO_VARARGS | #ifdef G_HAVE_ISO_VARARGS | |||
#define GST_CAT_LEVEL_LOG(cat,level,...) /* NOP */ | #define GST_CAT_LEVEL_LOG(cat,level,...) G_STMT_START{ }G_STM T_END | |||
#define GST_CAT_ERROR_OBJECT(...) /* NOP */ | #define GST_CAT_ERROR_OBJECT(...) G_STMT_START{ }G_STM | |||
#define GST_CAT_WARNING_OBJECT(...) /* NOP */ | T_END | |||
#define GST_CAT_INFO_OBJECT(...) /* NOP */ | #define GST_CAT_WARNING_OBJECT(...) G_STMT_START{ }G_STM | |||
#define GST_CAT_DEBUG_OBJECT(...) /* NOP */ | T_END | |||
#define GST_CAT_LOG_OBJECT(...) /* NOP */ | #define GST_CAT_INFO_OBJECT(...) G_STMT_START{ }G_STM | |||
#define GST_CAT_FIXME_OBJECT(...) /* NOP */ | T_END | |||
#define GST_CAT_DEBUG_OBJECT(...) G_STMT_START{ }G_STM | ||||
#define GST_CAT_ERROR(...) /* NOP */ | T_END | |||
#define GST_CAT_WARNING(...) /* NOP */ | #define GST_CAT_LOG_OBJECT(...) G_STMT_START | |||
#define GST_CAT_INFO(...) /* NOP */ | { }G_STMT_END | |||
#define GST_CAT_DEBUG(...) /* NOP */ | #define GST_CAT_FIXME_OBJECT(...) G_STMT_START{ }G_STM | |||
#define GST_CAT_LOG(...) /* NOP */ | T_END | |||
#define GST_CAT_FIXME(...) /* NOP */ | #define GST_CAT_TRACE_OBJECT(...) G_STMT_START{ }G_STM | |||
T_END | ||||
#define GST_ERROR_OBJECT(...) /* NOP */ | ||||
#define GST_WARNING_OBJECT(...) /* NOP */ | #define GST_CAT_ERROR(...) G_STMT_START{ }G_STM | |||
#define GST_INFO_OBJECT(...) /* NOP */ | T_END | |||
#define GST_DEBUG_OBJECT(...) /* NOP */ | #define GST_CAT_WARNING(...) G_STMT_START{ }G_STM | |||
#define GST_LOG_OBJECT(...) /* NOP */ | T_END | |||
#define GST_FIXME_OBJECT(...) /* NOP */ | #define GST_CAT_INFO(...) G_STMT_START{ }G_STM | |||
T_END | ||||
#define GST_ERROR(...) /* NOP */ | #define GST_CAT_DEBUG(...) G_STMT_START{ }G_STM | |||
#define GST_WARNING(...) /* NOP */ | T_END | |||
#define GST_INFO(...) /* NOP */ | #define GST_CAT_LOG(...) G_STMT_START{ }G_STM | |||
#define GST_DEBUG(...) /* NOP */ | T_END | |||
#define GST_LOG(...) /* NOP */ | #define GST_CAT_FIXME(...) G_STMT_START{ }G_STM | |||
#define GST_FIXME(...) /* NOP */ | T_END | |||
#define GST_CAT_TRACE(...) G_STMT_START{ }G_STM | ||||
T_END | ||||
#define GST_ERROR_OBJECT(...) G_STMT_START{ }G_STM | ||||
T_END | ||||
#define GST_WARNING_OBJECT(...) G_STMT_START | ||||
{ }G_STMT_END | ||||
#define GST_INFO_OBJECT(...) G_STMT_START{ }G_STM | ||||
T_END | ||||
#define GST_DEBUG_OBJECT(...) G_STMT_START{ }G_STM | ||||
T_END | ||||
#define GST_LOG_OBJECT(...) G_STMT_START{ }G_STM | ||||
T_END | ||||
#define GST_FIXME_OBJECT(...) G_STMT_START{ }G_STM | ||||
T_END | ||||
#define GST_TRACE_OBJECT(...) G_STMT_START{ }G_STM | ||||
T_END | ||||
#define GST_ERROR(...) G_STMT_START{ }G_STM | ||||
T_END | ||||
#define GST_WARNING(...) G_STMT_START{ }G_STM | ||||
T_END | ||||
#define GST_INFO(...) G_STMT_START{ }G_STM | ||||
T_END | ||||
#define GST_DEBUG(...) G_STMT_START{ }G_STM | ||||
T_END | ||||
#define GST_LOG(...) G_STMT_START{ }G_STM | ||||
T_END | ||||
#define GST_FIXME(...) G_STMT_START{ }G_STM | ||||
T_END | ||||
#define GST_TRACE(...) G_STMT_START{ }G_STM | ||||
T_END | ||||
#else | #else /* !G_HAVE_ISO_VARARGS */ | |||
#ifdef G_HAVE_GNUC_VARARGS | #ifdef G_HAVE_GNUC_VARARGS | |||
#define GST_CAT_LEVEL_LOG(cat,level,args...) /* NOP */ | #define GST_CAT_LEVEL_LOG(cat,level,args...) G_STMT_START{ }G_STM T_END | |||
#define GST_CAT_ERROR_OBJECT(args...) /* NOP */ | #define GST_CAT_ERROR_OBJECT(args...) G_STMT_START{ }G_STM | |||
#define GST_CAT_WARNING_OBJECT(args...) /* NOP */ | T_END | |||
#define GST_CAT_INFO_OBJECT(args...) /* NOP */ | #define GST_CAT_WARNING_OBJECT(args...) G_STMT_START | |||
#define GST_CAT_DEBUG_OBJECT(args...) /* NOP */ | { }G_STMT_END | |||
#define GST_CAT_LOG_OBJECT(args...) /* NOP */ | #define GST_CAT_INFO_OBJECT(args...) G_STMT_START{ }G_STM | |||
#define GST_CAT_FIXME_OBJECT(args...) /* NOP */ | T_END | |||
#define GST_CAT_DEBUG_OBJECT(args...) G_STMT_START{ }G_STM | ||||
#define GST_CAT_ERROR(args...) /* NOP */ | T_END | |||
#define GST_CAT_WARNING(args...) /* NOP */ | #define GST_CAT_LOG_OBJECT(args...) G_STMT_START{ }G_STM | |||
#define GST_CAT_INFO(args...) /* NOP */ | T_END | |||
#define GST_CAT_DEBUG(args...) /* NOP */ | #define GST_CAT_FIXME_OBJECT(args...) G_STMT_START{ }G_STM | |||
#define GST_CAT_LOG(args...) /* NOP */ | T_END | |||
#define GST_CAT_FIXME(args...) /* NOP */ | #define GST_CAT_TRACE_OBJECT(args...) G_STMT_START{ }G_STM | |||
T_END | ||||
#define GST_ERROR_OBJECT(args...) /* NOP */ | ||||
#define GST_WARNING_OBJECT(args...) /* NOP */ | #define GST_CAT_ERROR(args...) G_STMT_START{ }G_STM | |||
#define GST_INFO_OBJECT(args...) /* NOP */ | T_END | |||
#define GST_DEBUG_OBJECT(args...) /* NOP */ | #define GST_CAT_WARNING(args...) G_STMT_START{ }G_STM | |||
#define GST_LOG_OBJECT(args...) /* NOP */ | T_END | |||
#define GST_FIXME_OBJECT(args...) /* NOP */ | #define GST_CAT_INFO(args...) G_STMT_START{ }G_STM | |||
T_END | ||||
#define GST_ERROR(args...) /* NOP */ | #define GST_CAT_DEBUG(args...) G_STMT_START{ }G_STM | |||
#define GST_WARNING(args...) /* NOP */ | T_END | |||
#define GST_INFO(args...) /* NOP */ | #define GST_CAT_LOG(args...) G_STMT_START{ }G_STM | |||
#define GST_DEBUG(args...) /* NOP */ | T_END | |||
#define GST_LOG(args...) /* NOP */ | #define GST_CAT_FIXME(args...) G_STMT_START{ }G_STM | |||
#define GST_FIXME(args...) /* NOP */ | T_END | |||
#define GST_CAT_TRACE(args...) G_STMT_START{ }G_STM | ||||
T_END | ||||
#define GST_ERROR_OBJECT(args...) G_STMT_START{ }G_STM | ||||
T_END | ||||
#define GST_WARNING_OBJECT(args...) G_STMT_START{ }G_STM | ||||
T_END | ||||
#define GST_INFO_OBJECT(args...) G_STMT_START{ }G_STM | ||||
T_END | ||||
#define GST_DEBUG_OBJECT(args...) G_STMT_START{ }G_STM | ||||
T_END | ||||
#define GST_LOG_OBJECT(args...) G_STMT_START | ||||
{ }G_STMT_END | ||||
#define GST_FIXME_OBJECT(args...) G_STMT_START{ }G_STM | ||||
T_END | ||||
#define GST_TRACE_OBJECT(args...) G_STMT_START{ }G_STM | ||||
T_END | ||||
#define GST_ERROR(args...) G_STMT_START{ }G_STM | ||||
T_END | ||||
#define GST_WARNING(args...) G_STMT_START{ }G_STM | ||||
T_END | ||||
#define GST_INFO(args...) G_STMT_START{ }G_STM | ||||
T_END | ||||
#define GST_DEBUG(args...) G_STMT_START{ }G_STM | ||||
T_END | ||||
#define GST_LOG(args...) G_STMT_START{ }G_STM | ||||
T_END | ||||
#define GST_FIXME(args...) G_STMT_START{ }G_STM | ||||
T_END | ||||
#define GST_TRACE(args...) G_STMT_START{ }G_STM | ||||
T_END | ||||
#else | #else /* !G_HAVE_GNUC_VARARGS */ | |||
static inline void | static inline void | |||
GST_CAT_LEVEL_LOG_valist (GstDebugCategory * cat, | GST_CAT_LEVEL_LOG_valist (GstDebugCategory * cat, | |||
GstDebugLevel level, gpointer object, const char *format, va_list varar gs) | GstDebugLevel level, gpointer object, const char *format, va_list varar gs) | |||
{ | { | |||
} | } | |||
static inline void | static inline void | |||
GST_CAT_ERROR_OBJECT (GstDebugCategory * cat, gpointer obj, const char *for mat, | GST_CAT_ERROR_OBJECT (GstDebugCategory * cat, gpointer obj, const char *for mat, | |||
...) | ...) | |||
{ | { | |||
skipping to change at line 1240 | skipping to change at line 1394 | |||
{ | { | |||
} | } | |||
static inline void | static inline void | |||
GST_CAT_FIXME_OBJECT (GstDebugCategory * cat, gpointer obj, const char *for mat, | GST_CAT_FIXME_OBJECT (GstDebugCategory * cat, gpointer obj, const char *for mat, | |||
...) | ...) | |||
{ | { | |||
} | } | |||
static inline void | static inline void | |||
GST_CAT_TRACE_OBJECT (GstDebugCategory * cat, gpointer obj, const char *for | ||||
mat, | ||||
...) | ||||
{ | ||||
} | ||||
static inline void | ||||
GST_CAT_ERROR (GstDebugCategory * cat, const char *format, ...) | GST_CAT_ERROR (GstDebugCategory * cat, const char *format, ...) | |||
{ | { | |||
} | } | |||
static inline void | static inline void | |||
GST_CAT_WARNING (GstDebugCategory * cat, const char *format, ...) | GST_CAT_WARNING (GstDebugCategory * cat, const char *format, ...) | |||
{ | { | |||
} | } | |||
static inline void | static inline void | |||
skipping to change at line 1270 | skipping to change at line 1430 | |||
GST_CAT_LOG (GstDebugCategory * cat, const char *format, ...) | GST_CAT_LOG (GstDebugCategory * cat, const char *format, ...) | |||
{ | { | |||
} | } | |||
static inline void | static inline void | |||
GST_CAT_FIXME (GstDebugCategory * cat, const char *format, ...) | GST_CAT_FIXME (GstDebugCategory * cat, const char *format, ...) | |||
{ | { | |||
} | } | |||
static inline void | static inline void | |||
GST_CAT_TRACE (GstDebugCategory * cat, const char *format, ...) | ||||
{ | ||||
} | ||||
static inline void | ||||
GST_ERROR_OBJECT (gpointer obj, const char *format, ...) | GST_ERROR_OBJECT (gpointer obj, const char *format, ...) | |||
{ | { | |||
} | } | |||
static inline void | static inline void | |||
GST_WARNING_OBJECT (gpointer obj, const char *format, ...) | GST_WARNING_OBJECT (gpointer obj, const char *format, ...) | |||
{ | { | |||
} | } | |||
static inline void | static inline void | |||
skipping to change at line 1300 | skipping to change at line 1465 | |||
GST_LOG_OBJECT (gpointer obj, const char *format, ...) | GST_LOG_OBJECT (gpointer obj, const char *format, ...) | |||
{ | { | |||
} | } | |||
static inline void | static inline void | |||
GST_FIXME_OBJECT (gpointer obj, const char *format, ...) | GST_FIXME_OBJECT (gpointer obj, const char *format, ...) | |||
{ | { | |||
} | } | |||
static inline void | static inline void | |||
GST_TRACE_OBJECT (gpointer obj, const char *format, ...) | ||||
{ | ||||
} | ||||
static inline void | ||||
GST_ERROR (const char *format, ...) | GST_ERROR (const char *format, ...) | |||
{ | { | |||
} | } | |||
static inline void | static inline void | |||
GST_WARNING (const char *format, ...) | GST_WARNING (const char *format, ...) | |||
{ | { | |||
} | } | |||
static inline void | static inline void | |||
skipping to change at line 1329 | skipping to change at line 1499 | |||
static inline void | static inline void | |||
GST_LOG (const char *format, ...) | GST_LOG (const char *format, ...) | |||
{ | { | |||
} | } | |||
static inline void | static inline void | |||
GST_FIXME (const char *format, ...) | GST_FIXME (const char *format, ...) | |||
{ | { | |||
} | } | |||
#endif | static inline void | |||
#endif | GST_TRACE (const char *format, ...) | |||
{ | ||||
} | ||||
#endif /* G_HAVE_GNUC_VARARGS */ | ||||
#endif /* G_HAVE_ISO_VARARGS */ | ||||
#define GST_DEBUG_REGISTER_FUNCPTR(ptr) G_STMT_START{ }G_STMT_END | ||||
#define GST_DEBUG_FUNCPTR(ptr) (ptr) | #define GST_DEBUG_FUNCPTR(ptr) (ptr) | |||
#define GST_DEBUG_FUNCPTR_NAME(ptr) (g_strdup_printf ("%p", ptr)) | #define GST_DEBUG_FUNCPTR_NAME(ptr) (g_strdup_printf ("%p", ptr)) | |||
#define GST_CAT_MEMDUMP_OBJECT(cat,obj,msg,data,length) /* NOP */ | #define GST_CAT_MEMDUMP_OBJECT(cat,obj,msg,data,length) G_STMT_START{ }G_ST | |||
#define GST_CAT_MEMDUMP(cat,msg,data,length) /* NOP */ | MT_END | |||
#define GST_MEMDUMP_OBJECT(obj,msg,data,length) /* NOP */ | #define GST_CAT_MEMDUMP(cat,msg,data,length) G_STMT_START{ }G_ST | |||
#define GST_MEMDUMP(msg,data,length) /* NOP */ | MT_END | |||
#define GST_MEMDUMP_OBJECT(obj,msg,data,length) G_STMT_START{ }G_ST | ||||
MT_END | ||||
#define GST_MEMDUMP(msg,data,length) G_STMT_START{ }G_ST | ||||
MT_END | ||||
#endif /* GST_DISABLE_GST_DEBUG */ | #endif /* GST_DISABLE_GST_DEBUG */ | |||
void gst_debug_print_stack_trace (void); | void gst_debug_print_stack_trace (void); | |||
G_END_DECLS | G_END_DECLS | |||
#endif /* __GSTINFO_H__ */ | #endif /* __GSTINFO_H__ */ | |||
End of changes. 49 change blocks. | ||||
137 lines changed or deleted | 403 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |