2000-12-28 22:12:02 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
|
|
|
|
* 2000 Wim Taymans <wtay@chello.be>
|
2003-06-29 14:05:49 +00:00
|
|
|
* 2003 Benjamin Otte <in7y118@public.uni-hamburg.de>
|
2000-12-28 22:12:02 +00:00
|
|
|
*
|
2003-06-29 14:05:49 +00:00
|
|
|
* gstinfo.h: debugging functions
|
Changes made to the DEBUG system. New header file gstdebug.h holds the stuff to keep it out of gst.h's hair. DEBUG ...
Original commit message from CVS:
Changes made to the DEBUG system. New header file gstdebug.h holds the
stuff to keep it out of gst.h's hair. DEBUG prints out the process id,
cothread id, source filename and line number. Two new macros DEBUG_ENTER
and DEBUG_LEAVE are used to show the entry and exit of a given function.
This eventually might be used to construct call trace graphs, even taking
cothreads into account. This would be quite useful in visualizing the
scheduling mechanism.
Minor changes to various debug messages.
Also sitting in gstdebug.h is a prototypical DEBUG_ENTER that's capable of
performing DEBUG_LEAVE automatically. It does this by utilizing a
little-known GCC extension that allows one to call a function with the
same parameters as the current function. The macro uses this to basically
call itself. A boolean is used to ensure that when it calls itself it
actually runs the body of the function. In the meantime it prints stuff
out before and after the real function, as well as constructing a
debugging string. This can be used eventually to provide call-wide data
on the DEBUG lines, instead of having to replicate data on each call to
DEBUG. More research is needed into how this would most cleanly be fit
into some other chunk of code, like GStreamer (I think of this DEBUG trick
as a separate project, sorta).
Unfortunately, the aforementioned DEBUG trick interacts quite poorly with
cothreads. Almost any time it's used in a function that has anything
remotely to do with a cothread context (as in, it runs in one), a segfault
results from the __builtin_apply call, which is the heart of the whole
thing. If someone who really knows assembly could analyze the resulting
code to see what's really going on, we might find a way to fix either the
macro or the cothreads (I'm thinking that there's something we missed in
constructing the cothreads themselves) so this works in all cases.
In the meantime, please insert both DEBUG_ENTER and DEBUG_LEAVE in your
functions. Be sure to put DEBUG_ENTER after your variable declarations
and before any functional code, not to put the function name in any DEBUG
strings (it's already there, trust me), and put a DEBUG_LEAVE if you care
enough.
Changes are going to happen in the way DEBUGs and other printouts occur,
so stay tuned.
2000-12-04 09:35:08 +00:00
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2000-12-29 10:02:17 +00:00
|
|
|
#ifndef __GSTINFO_H__
|
|
|
|
#define __GSTINFO_H__
|
Changes made to the DEBUG system. New header file gstdebug.h holds the stuff to keep it out of gst.h's hair. DEBUG ...
Original commit message from CVS:
Changes made to the DEBUG system. New header file gstdebug.h holds the
stuff to keep it out of gst.h's hair. DEBUG prints out the process id,
cothread id, source filename and line number. Two new macros DEBUG_ENTER
and DEBUG_LEAVE are used to show the entry and exit of a given function.
This eventually might be used to construct call trace graphs, even taking
cothreads into account. This would be quite useful in visualizing the
scheduling mechanism.
Minor changes to various debug messages.
Also sitting in gstdebug.h is a prototypical DEBUG_ENTER that's capable of
performing DEBUG_LEAVE automatically. It does this by utilizing a
little-known GCC extension that allows one to call a function with the
same parameters as the current function. The macro uses this to basically
call itself. A boolean is used to ensure that when it calls itself it
actually runs the body of the function. In the meantime it prints stuff
out before and after the real function, as well as constructing a
debugging string. This can be used eventually to provide call-wide data
on the DEBUG lines, instead of having to replicate data on each call to
DEBUG. More research is needed into how this would most cleanly be fit
into some other chunk of code, like GStreamer (I think of this DEBUG trick
as a separate project, sorta).
Unfortunately, the aforementioned DEBUG trick interacts quite poorly with
cothreads. Almost any time it's used in a function that has anything
remotely to do with a cothread context (as in, it runs in one), a segfault
results from the __builtin_apply call, which is the heart of the whole
thing. If someone who really knows assembly could analyze the resulting
code to see what's really going on, we might find a way to fix either the
macro or the cothreads (I'm thinking that there's something we missed in
constructing the cothreads themselves) so this works in all cases.
In the meantime, please insert both DEBUG_ENTER and DEBUG_LEAVE in your
functions. Be sure to put DEBUG_ENTER after your variable declarations
and before any functional code, not to put the function name in any DEBUG
strings (it's already there, trust me), and put a DEBUG_LEAVE if you care
enough.
Changes are going to happen in the way DEBUGs and other printouts occur,
so stay tuned.
2000-12-04 09:35:08 +00:00
|
|
|
|
2003-06-29 14:05:49 +00:00
|
|
|
#include <glib.h>
|
|
|
|
#include <glib-object.h>
|
|
|
|
#include <gst/gstatomic.h>
|
|
|
|
#include <gst/gstlog.h>
|
|
|
|
#include <gst/gstconfig.h>
|
|
|
|
|
2003-07-12 15:15:57 +00:00
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2003-06-29 14:05:49 +00:00
|
|
|
/*
|
|
|
|
* GStreamer's debugging subsystem is an easy way to get information about what
|
|
|
|
* the application is doing.
|
|
|
|
* It is not meant for programming errors. Use GLibs methods (g_warning and so
|
|
|
|
* on for that.
|
|
|
|
*/
|
2001-05-25 21:00:07 +00:00
|
|
|
|
2003-06-29 14:05:49 +00:00
|
|
|
/* log levels */
|
|
|
|
typedef enum {
|
|
|
|
GST_LEVEL_NONE = 0,
|
|
|
|
GST_LEVEL_ERROR,
|
|
|
|
GST_LEVEL_WARNING,
|
|
|
|
GST_LEVEL_INFO,
|
|
|
|
GST_LEVEL_DEBUG,
|
|
|
|
GST_LEVEL_LOG,
|
|
|
|
/* add more */
|
|
|
|
GST_LEVEL_COUNT
|
|
|
|
} GstDebugLevel;
|
|
|
|
|
|
|
|
/* we can now override this to be more general in maintainer builds or cvs checkouts */
|
|
|
|
#ifndef GST_LEVEL_DEFAULT
|
2003-11-06 02:28:26 +00:00
|
|
|
#define GST_LEVEL_DEFAULT GST_LEVEL_NONE
|
2001-04-27 20:31:22 +00:00
|
|
|
#endif
|
|
|
|
|
2003-06-29 14:05:49 +00:00
|
|
|
/* 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:
|
|
|
|
* 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
|
|
|
|
* Background color codes:
|
|
|
|
* 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
|
|
|
|
*/
|
|
|
|
typedef enum {
|
|
|
|
/* colors */
|
|
|
|
GST_DEBUG_FG_BLACK = 0x0000,
|
|
|
|
GST_DEBUG_FG_RED = 0x0001,
|
|
|
|
GST_DEBUG_FG_GREEN = 0x0002,
|
|
|
|
GST_DEBUG_FG_YELLOW = 0x0003,
|
|
|
|
GST_DEBUG_FG_BLUE = 0x0004,
|
|
|
|
GST_DEBUG_FG_MAGENTA = 0x0005,
|
|
|
|
GST_DEBUG_FG_CYAN = 0x0006,
|
|
|
|
GST_DEBUG_FG_WHITE = 0x0007,
|
|
|
|
/* background colors */
|
|
|
|
GST_DEBUG_BG_BLACK = 0x0000,
|
|
|
|
GST_DEBUG_BG_RED = 0x0010,
|
|
|
|
GST_DEBUG_BG_GREEN = 0x0020,
|
|
|
|
GST_DEBUG_BG_YELLOW = 0x0030,
|
|
|
|
GST_DEBUG_BG_BLUE = 0x0040,
|
|
|
|
GST_DEBUG_BG_MAGENTA = 0x0050,
|
|
|
|
GST_DEBUG_BG_CYAN = 0x0060,
|
|
|
|
GST_DEBUG_BG_WHITE = 0x0070,
|
|
|
|
/* other formats */
|
|
|
|
GST_DEBUG_BOLD = 0x0100,
|
|
|
|
GST_DEBUG_UNDERLINE = 0x0200
|
|
|
|
} GstDebugColorFlags;
|
|
|
|
|
|
|
|
#define GST_DEBUG_FG_MASK (0x000F)
|
|
|
|
#define GST_DEBUG_BG_MASK (0x00F0)
|
|
|
|
#define GST_DEBUG_FORMAT_MASK (0xFF00)
|
|
|
|
|
|
|
|
typedef struct _GstDebugCategory GstDebugCategory;
|
|
|
|
struct _GstDebugCategory {
|
|
|
|
/*< private >*/
|
|
|
|
GstAtomicInt * threshold;
|
|
|
|
guint color; /* see defines above */
|
|
|
|
|
|
|
|
const gchar * name;
|
|
|
|
const gchar * description;
|
2001-05-25 21:00:07 +00:00
|
|
|
};
|
|
|
|
|
2003-06-29 14:05:49 +00:00
|
|
|
/********** some convenience macros for debugging **********/
|
Another big set of changes. Connections are now also pullfunc based. gstqueue has been updated, I don't know of any ...
Original commit message from CVS:
Another big set of changes. Connections are now also pullfunc based.
gstqueue has been updated, I don't know of any other connections offhand.
There are still a few things that need doing, specifically the concept
of a source or connection with connections to multiple thread contexts is
not dealt with. This may force us to move the threadstate from the
element to the pad, maybe keeping the element's copy for simple cases.
Then the Bin would create a structure to pass to the cothreaded _wrappers
of any such elements, which would detail the pads that are to be dealt with
by this particular cothread context.
That will speed things up to, since we don't have to look through the list
of all pads for every Src or Connection element for every iteration, we can
simply step through the list provided by the plan. Special case might even
have a single pad pointer sitting there to trump the list, if there's only
one (the common case anyway).
Task 23098 is tracking these changes. The main task 22588 depends on that
subtask, as well as 22240, which is a consistency check on PAD_DISABLED.
2000-12-08 10:33:01 +00:00
|
|
|
|
2003-06-29 14:05:49 +00:00
|
|
|
/* This is needed in printf's if a char* might be NULL. Solaris crashes then */
|
|
|
|
#define GST_STR_NULL(str) ((str) ? (str) : "(NULL)")
|
2001-05-25 21:00:07 +00:00
|
|
|
|
2003-06-29 14:05:49 +00:00
|
|
|
/* easier debugging for pad names */
|
Another big set of changes. Connections are now also pullfunc based. gstqueue has been updated, I don't know of any ...
Original commit message from CVS:
Another big set of changes. Connections are now also pullfunc based.
gstqueue has been updated, I don't know of any other connections offhand.
There are still a few things that need doing, specifically the concept
of a source or connection with connections to multiple thread contexts is
not dealt with. This may force us to move the threadstate from the
element to the pad, maybe keeping the element's copy for simple cases.
Then the Bin would create a structure to pass to the cothreaded _wrappers
of any such elements, which would detail the pads that are to be dealt with
by this particular cothread context.
That will speed things up to, since we don't have to look through the list
of all pads for every Src or Connection element for every iteration, we can
simply step through the list provided by the plan. Special case might even
have a single pad pointer sitting there to trump the list, if there's only
one (the common case anyway).
Task 23098 is tracking these changes. The main task 22588 depends on that
subtask, as well as 22240, which is a consistency check on PAD_DISABLED.
2000-12-08 10:33:01 +00:00
|
|
|
#define GST_DEBUG_PAD_NAME(pad) \
|
2001-01-29 00:06:02 +00:00
|
|
|
(GST_OBJECT_PARENT(pad) != NULL) ? \
|
2003-05-02 20:07:45 +00:00
|
|
|
GST_STR_NULL (GST_OBJECT_NAME (GST_OBJECT_PARENT(pad))) : \
|
2001-01-29 00:06:02 +00:00
|
|
|
"''", GST_OBJECT_NAME (pad)
|
Another big set of changes. Connections are now also pullfunc based. gstqueue has been updated, I don't know of any ...
Original commit message from CVS:
Another big set of changes. Connections are now also pullfunc based.
gstqueue has been updated, I don't know of any other connections offhand.
There are still a few things that need doing, specifically the concept
of a source or connection with connections to multiple thread contexts is
not dealt with. This may force us to move the threadstate from the
element to the pad, maybe keeping the element's copy for simple cases.
Then the Bin would create a structure to pass to the cothreaded _wrappers
of any such elements, which would detail the pads that are to be dealt with
by this particular cothread context.
That will speed things up to, since we don't have to look through the list
of all pads for every Src or Connection element for every iteration, we can
simply step through the list provided by the plan. Special case might even
have a single pad pointer sitting there to trump the list, if there's only
one (the common case anyway).
Task 23098 is tracking these changes. The main task 22588 depends on that
subtask, as well as 22240, which is a consistency check on PAD_DISABLED.
2000-12-08 10:33:01 +00:00
|
|
|
|
2003-06-29 14:05:49 +00:00
|
|
|
/* You might want to define GST_FUNCTION in apps' configure script */
|
2002-11-29 17:05:13 +00:00
|
|
|
|
2003-06-29 14:05:49 +00:00
|
|
|
#ifndef GST_FUNCTION
|
|
|
|
#ifdef G_GNUC_PRETTY_FUNCTION
|
|
|
|
#define GST_FUNCTION G_GNUC_PRETTY_FUNCTION
|
|
|
|
#elif HAVE_FUNC
|
|
|
|
#define GST_FUNCTION __func__
|
|
|
|
#elif HAVE_PRETTY_FUNCTION
|
|
|
|
#define GST_FUNCTION __PRETTY_FUNCTION__
|
|
|
|
#elif HAVE_FUNCTION
|
|
|
|
#define GST_FUNCTION __FUNCTION__
|
2002-11-29 17:05:13 +00:00
|
|
|
#else
|
2003-06-29 14:05:49 +00:00
|
|
|
#define GST_FUNCTION ""
|
2002-11-29 17:05:13 +00:00
|
|
|
#endif
|
2003-06-29 14:05:49 +00:00
|
|
|
#endif /* ifndef GST_FUNCTION */
|
|
|
|
|
2004-01-10 01:49:00 +00:00
|
|
|
typedef struct _GstDebugMessage GstDebugMessage;
|
2003-06-29 14:05:49 +00:00
|
|
|
typedef void (*GstLogFunction) (GstDebugCategory * category,
|
|
|
|
GstDebugLevel level,
|
|
|
|
const gchar * file,
|
|
|
|
const gchar * function,
|
|
|
|
gint line,
|
|
|
|
GObject * object,
|
2004-01-10 01:49:00 +00:00
|
|
|
GstDebugMessage * message,
|
2003-06-29 14:05:49 +00:00
|
|
|
gpointer data);
|
|
|
|
|
|
|
|
/* Disable this subsystem if no varargs macro can be found.
|
|
|
|
Use a trick so the core builds the functions nonetheless if it wasn't
|
|
|
|
explicitly disabled. */
|
|
|
|
#if !defined(G_HAVE_ISO_VARARGS) && !defined(G_HAVE_GNUC_VARARGS)
|
|
|
|
#define __GST_DISABLE_GST_DEBUG
|
2001-05-25 21:00:07 +00:00
|
|
|
#endif
|
2003-06-29 14:05:49 +00:00
|
|
|
#ifdef GST_DISABLE_GST_DEBUG
|
|
|
|
#ifndef __GST_DISABLE_GST_DEBUG
|
|
|
|
#define __GST_DISABLE_GST_DEBUG
|
2002-11-29 17:05:13 +00:00
|
|
|
#endif
|
WARNING: Don't grab this updated unless you're really, REALLY sure.
Original commit message from CVS:
WARNING: Don't grab this updated unless you're really, REALLY sure.
WARNING: Wait for the next one.
Whole lotta changes here, including a few random bits:
examples/*/Makefile: updated to use `libtool gcc`, not just `gcc`
gst/
gstbuffer.h: updated to new flag style
gst.c, gstdebug.h: added new debugging for function ptrs
gstpipeline.c: set type of parent_class to the class, not the object
gstthread.c: ditto
plugins/
cdparanoia/cdparanoia.c: added an argument type, updated some defaults
cobin/spindentity.c: updated to new do/while loopfunction style
mp3encode/lame/gstlame.c: argument types, whole lotta lame options
tests/: various changes
Now, for the big changes: Once again, the scheduling system has changed.
And once again, it broke a whole bunch of things. The gist of the change
is that there is now a function pointer for gst_pad_push and gst_pad_pull,
instead of a hard-wired function. Well, currently they are functions, but
that's for debugging purposes only, they just call the function pointer
after spewing lots of DEBUG().
This changed the GstPad structure a bit, and the GstPad API as well.
Where elements used to provide chain() and pull() functions, they provide
chain() and get() functions. gst_pad_set_pull[region]_function has been
changed to get_pad_set_get[region]_function. This means all the elements
out there that used to have pull functions need to be updated. The calls
to that function have been changed in the normal elements, but the names
of the functions passed is still _pull[region](), which is an aesthetic
issue more than anything.
As for what doesn't work yet, just about anything dealing with Connections
is hosed, meaning threaded stuff won't work. This will be fixed about 12
hours from now, after I've slept, etc. The simplefake.c test works in
both cothreaded and chained cases, but not much else will work due to the
Connection problem. Needless to say, don't grab this unless you *need*
these features *now*, else wait to update this stuff until tomorrow.
I'm going to sleep now.
2000-12-16 10:18:09 +00:00
|
|
|
#endif
|
|
|
|
|
2003-06-29 14:05:49 +00:00
|
|
|
#ifndef __GST_DISABLE_GST_DEBUG
|
|
|
|
|
|
|
|
void _gst_debug_init (void);
|
|
|
|
|
configure.ac: Add detection for HAVE_PRINTF_EXTENSION and
Original commit message from CVS:
* configure.ac: Add detection for HAVE_PRINTF_EXTENSION and
GST_PRINTF_EXTENSION_FORMAT_DEFINE.
* docs/random/ds/0.9-suggested-changes: Notes from Company.
* gst/gstcaps.c: (gst_caps_to_string): Add comment.
* gst/gstconfig.h.in: Add define for GST_PTR_FORMAT
* gst/gstinfo.c: (_gst_debug_init), (gst_debug_print_object),
(gst_debug_log_default), (_gst_info_printf_extension),
(_gst_info_printf_extension_arginfo): Add printf extension.
* gst/gstinfo.h: remove G_GNUC_PRINTF, because it doesn't work with %P
* gst/gststructure.c: (gst_structure_to_string),
(_gst_structure_parse_value): Use gst_value_deserialize() and
remove old code.
* gst/gstvalue.c: (gst_value_deserialize_fourcc),
(gst_value_deserialize_boolean), (gst_strtoi),
(gst_value_deserialize_int), (gst_value_deserialize_double),
(gst_value_deserialize_string), (gst_value_deserialize): Implement
a bunch of deserialize functions and gst_value_deserialize.
* gst/gstvalue.h: er, _de_serialize, not unserialize
* testsuite/caps/string-conversions.c: (main): We don't currently
handle (float) in caps, so convert these to (double).
* testsuite/debug/Makefile.am: Add new test for the printf extension
* testsuite/debug/printf_extension.c: (main): same
2004-01-29 01:20:23 +00:00
|
|
|
/* note we can't use G_GNUC_PRINTF (7, 8) because gcc chokes on %P, which
|
|
|
|
* we use for GST_PTR_FORMAT. */
|
2003-06-29 14:05:49 +00:00
|
|
|
void gst_debug_log (GstDebugCategory * category,
|
|
|
|
GstDebugLevel level,
|
|
|
|
const gchar * file,
|
|
|
|
const gchar * function,
|
|
|
|
gint line,
|
|
|
|
GObject * object,
|
2004-01-10 01:49:00 +00:00
|
|
|
const gchar * format,
|
configure.ac: Add detection for HAVE_PRINTF_EXTENSION and
Original commit message from CVS:
* configure.ac: Add detection for HAVE_PRINTF_EXTENSION and
GST_PRINTF_EXTENSION_FORMAT_DEFINE.
* docs/random/ds/0.9-suggested-changes: Notes from Company.
* gst/gstcaps.c: (gst_caps_to_string): Add comment.
* gst/gstconfig.h.in: Add define for GST_PTR_FORMAT
* gst/gstinfo.c: (_gst_debug_init), (gst_debug_print_object),
(gst_debug_log_default), (_gst_info_printf_extension),
(_gst_info_printf_extension_arginfo): Add printf extension.
* gst/gstinfo.h: remove G_GNUC_PRINTF, because it doesn't work with %P
* gst/gststructure.c: (gst_structure_to_string),
(_gst_structure_parse_value): Use gst_value_deserialize() and
remove old code.
* gst/gstvalue.c: (gst_value_deserialize_fourcc),
(gst_value_deserialize_boolean), (gst_strtoi),
(gst_value_deserialize_int), (gst_value_deserialize_double),
(gst_value_deserialize_string), (gst_value_deserialize): Implement
a bunch of deserialize functions and gst_value_deserialize.
* gst/gstvalue.h: er, _de_serialize, not unserialize
* testsuite/caps/string-conversions.c: (main): We don't currently
handle (float) in caps, so convert these to (double).
* testsuite/debug/Makefile.am: Add new test for the printf extension
* testsuite/debug/printf_extension.c: (main): same
2004-01-29 01:20:23 +00:00
|
|
|
...) G_GNUC_NO_INSTRUMENT;
|
2003-11-24 02:09:23 +00:00
|
|
|
void gst_debug_log_valist (GstDebugCategory * category,
|
2003-06-29 14:05:49 +00:00
|
|
|
GstDebugLevel level,
|
|
|
|
const gchar * file,
|
|
|
|
const gchar * function,
|
|
|
|
gint line,
|
|
|
|
GObject * object,
|
2004-01-10 01:49:00 +00:00
|
|
|
const gchar * format,
|
2003-06-29 14:05:49 +00:00
|
|
|
va_list args) G_GNUC_NO_INSTRUMENT;
|
|
|
|
|
2004-01-10 01:49:00 +00:00
|
|
|
const gchar * gst_debug_message_get (GstDebugMessage * message);
|
|
|
|
|
2003-06-29 14:05:49 +00:00
|
|
|
void gst_debug_log_default (GstDebugCategory * category,
|
|
|
|
GstDebugLevel level,
|
|
|
|
const gchar * file,
|
|
|
|
const gchar * function,
|
|
|
|
gint line,
|
|
|
|
GObject * object,
|
2004-01-10 01:49:00 +00:00
|
|
|
GstDebugMessage * message,
|
2003-06-29 14:05:49 +00:00
|
|
|
gpointer unused) G_GNUC_NO_INSTRUMENT;
|
|
|
|
|
2003-11-29 06:34:05 +00:00
|
|
|
G_CONST_RETURN gchar *
|
|
|
|
gst_debug_level_get_name (GstDebugLevel level);
|
2003-06-29 14:05:49 +00:00
|
|
|
|
|
|
|
void gst_debug_add_log_function (GstLogFunction func,
|
|
|
|
gpointer data);
|
|
|
|
guint gst_debug_remove_log_function (GstLogFunction func);
|
|
|
|
guint gst_debug_remove_log_function_by_data (gpointer data);
|
|
|
|
|
|
|
|
void gst_debug_set_active (gboolean active);
|
|
|
|
gboolean gst_debug_is_active (void);
|
|
|
|
|
|
|
|
void gst_debug_set_colored (gboolean colored);
|
|
|
|
gboolean gst_debug_is_colored (void);
|
|
|
|
|
|
|
|
void gst_debug_set_default_threshold (GstDebugLevel level);
|
|
|
|
GstDebugLevel gst_debug_get_default_threshold (void);
|
|
|
|
void gst_debug_set_threshold_for_name (const gchar * name,
|
|
|
|
GstDebugLevel level);
|
|
|
|
void gst_debug_unset_threshold_for_name (const gchar * name);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GST_DEBUG_CATEGORY:
|
|
|
|
* @cat: the category
|
|
|
|
*
|
|
|
|
* Defines a GstCategory variable.
|
|
|
|
* This macro expands to nothing if debugging is disabled.
|
|
|
|
*/
|
|
|
|
#define GST_DEBUG_CATEGORY(cat) GstDebugCategory *cat = NULL
|
|
|
|
/**
|
|
|
|
* GST_DEBUG_CATEGORY_EXTERN:
|
|
|
|
* @cat: the category
|
|
|
|
*
|
|
|
|
* Defines an extern GstCategory variable. Use in header files.
|
|
|
|
* This macro expands to nothing if debugging is disabled.
|
|
|
|
*/
|
|
|
|
#define GST_DEBUG_CATEGORY_EXTERN(cat) extern GstDebugCategory *cat
|
|
|
|
/**
|
|
|
|
* GST_DEBUG_CATEGORY_STATIC:
|
|
|
|
* @cat: the category
|
|
|
|
*
|
|
|
|
* Defines a static GstCategory variable.
|
|
|
|
* This macro expands to nothing if debugging is disabled.
|
|
|
|
*/
|
|
|
|
#define GST_DEBUG_CATEGORY_STATIC(cat) static GstDebugCategory *cat = NULL
|
|
|
|
/* do not use this function, use the macros below */
|
|
|
|
GstDebugCategory *_gst_debug_category_new (gchar * name,
|
|
|
|
guint color,
|
|
|
|
gchar * description);
|
|
|
|
/**
|
|
|
|
* GST_DEBUG_CATEGORY_INIT:
|
2003-12-22 10:37:31 +00:00
|
|
|
* @cat: the category to initialize.
|
|
|
|
* @name: the name of the category.
|
|
|
|
* @color: the colors to use for a color representation or 0 for no color.
|
|
|
|
* @description: optional description of the category.
|
|
|
|
*
|
2003-12-25 09:42:56 +00:00
|
|
|
* Initializes a new #GstDebugCategory with the given properties and set to
|
2003-06-29 14:05:49 +00:00
|
|
|
* the default threshold.
|
2003-12-25 09:42:56 +00:00
|
|
|
*
|
2003-06-29 14:05:49 +00:00
|
|
|
* <note>
|
|
|
|
* <para>
|
2003-12-22 10:37:31 +00:00
|
|
|
* This macro expands to nothing if debugging is disabled.
|
|
|
|
* </para>
|
|
|
|
* <para>
|
|
|
|
* When naming your category, please follow the following conventions to ensure
|
2003-06-29 14:05:49 +00:00
|
|
|
* that the pattern matching for categories works as expected. It is not
|
|
|
|
* earth-shattering if you don't follow these conventions, but it would be nice
|
|
|
|
* for everyone.
|
|
|
|
* </para>
|
|
|
|
* <para>
|
2003-12-22 10:37:31 +00:00
|
|
|
* If you define a category for a plugin or a feature of it, name the category
|
|
|
|
* like the feature. So if you wanted to write a "filesrc" element, you would
|
2003-07-24 02:14:47 +00:00
|
|
|
* name the category "filesrc". Use lowercase letters only.
|
2003-12-22 10:37:31 +00:00
|
|
|
* If you define more than one category for the same element, append an
|
2003-06-29 14:05:49 +00:00
|
|
|
* underscore and an identifier to your categories, like this: "filesrc_cache"
|
|
|
|
* </para>
|
|
|
|
* <para>
|
|
|
|
* If you create a library or an application using debugging categories, use a
|
|
|
|
* common prefix followed by an underscore for all your categories. GStreamer
|
|
|
|
* uses the GST prefix so GStreamer categories look like "GST_STATES". Be sure
|
|
|
|
* to include uppercase letters.
|
|
|
|
* </para>
|
|
|
|
* </note>
|
|
|
|
*/
|
|
|
|
#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
|
2003-12-22 10:37:31 +00:00
|
|
|
|
2003-06-29 14:05:49 +00:00
|
|
|
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);
|
2003-11-29 06:34:05 +00:00
|
|
|
G_CONST_RETURN gchar *
|
|
|
|
gst_debug_category_get_name (GstDebugCategory * category);
|
2003-06-29 14:05:49 +00:00
|
|
|
guint gst_debug_category_get_color (GstDebugCategory * category);
|
2003-11-29 06:34:05 +00:00
|
|
|
G_CONST_RETURN gchar *
|
|
|
|
gst_debug_category_get_description (GstDebugCategory * category);
|
2003-06-29 14:05:49 +00:00
|
|
|
GSList * gst_debug_get_all_categories (void);
|
|
|
|
|
|
|
|
gchar * gst_debug_construct_term_color (guint colorinfo);
|
|
|
|
|
|
|
|
|
|
|
|
extern GstDebugCategory * GST_CAT_DEFAULT;
|
2003-08-03 17:18:40 +00:00
|
|
|
/* this symbol may not be used */
|
|
|
|
extern gboolean __gst_debug_enabled;
|
2002-11-29 17:05:13 +00:00
|
|
|
#ifdef G_HAVE_ISO_VARARGS
|
2003-06-29 14:05:49 +00:00
|
|
|
#define GST_CAT_LEVEL_LOG(cat,level,object,...) G_STMT_START{ \
|
2003-08-03 17:18:40 +00:00
|
|
|
if (__gst_debug_enabled) { \
|
2003-07-10 11:13:34 +00:00
|
|
|
gst_debug_log ((cat), (level), __FILE__, GST_FUNCTION, __LINE__, (GObject *) (object), __VA_ARGS__); \
|
2003-06-29 14:05:49 +00:00
|
|
|
} \
|
|
|
|
}G_STMT_END
|
|
|
|
#else /* G_HAVE_GNUC_VARARGS */
|
|
|
|
#define GST_CAT_LEVEL_LOG(cat,level,object,args...) G_STMT_START{ \
|
2003-08-03 17:18:40 +00:00
|
|
|
if (__gst_debug_enabled) { \
|
2003-07-10 11:13:34 +00:00
|
|
|
gst_debug_log ((cat), (level), __FILE__, GST_FUNCTION, __LINE__, (GObject *) (object), ##args ); \
|
2003-06-29 14:05:49 +00:00
|
|
|
} \
|
|
|
|
}G_STMT_END
|
|
|
|
#endif /* G_HAVE_ISO_VARARGS */
|
2002-11-29 17:05:13 +00:00
|
|
|
|
2003-06-29 14:05:49 +00:00
|
|
|
#ifndef GST_DEBUG_ENABLE_DEPRECATED
|
2002-11-29 17:05:13 +00:00
|
|
|
|
|
|
|
#ifdef G_HAVE_ISO_VARARGS
|
|
|
|
|
2003-06-29 14:05:49 +00:00
|
|
|
#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_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_LOG_OBJECT(cat,obj,...) GST_CAT_LEVEL_LOG (cat, GST_LEVEL_LOG, obj, __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_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_LOG(cat,...) GST_CAT_LEVEL_LOG (cat, GST_LEVEL_LOG, NULL, __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_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_LOG_OBJECT(obj,...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_LOG, obj, __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_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_LOG(...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_LOG, NULL, __VA_ARGS__)
|
|
|
|
|
|
|
|
#else /* 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_WARNING_OBJECT(cat,obj,args...) GST_CAT_LEVEL_LOG (cat, 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_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_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_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_LOG(cat,args...) GST_CAT_LEVEL_LOG (cat, GST_LEVEL_LOG, NULL, ##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_DEFAULT, 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_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_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_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_LOG(args...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_LOG, NULL, ##args )
|
|
|
|
|
|
|
|
#endif /* G_HAVE_ISO_VARARGS */
|
|
|
|
|
|
|
|
#else /* GST_DEBUG_ENABLE_DEPRECATED */
|
2003-12-05 12:32:06 +00:00
|
|
|
/* This is a workaround so the old debugging stuff of GStreamer 0.6 works.
|
2003-06-29 14:05:49 +00:00
|
|
|
This is undocumented and will go when 0.8 comes out. */
|
2000-12-30 02:41:15 +00:00
|
|
|
|
2002-11-29 17:05:13 +00:00
|
|
|
#ifdef G_HAVE_ISO_VARARGS
|
2003-06-29 14:05:49 +00:00
|
|
|
# define GST_INFO(cat,...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_INFO, NULL, __VA_ARGS__)
|
|
|
|
# define GST_DEBUG(cat,...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_DEBUG, NULL, __VA_ARGS__)
|
|
|
|
# define GST_INFO_ELEMENT(cat,obj,...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_INFO, obj, __VA_ARGS__)
|
|
|
|
# define GST_DEBUG_ELEMENT(cat,obj,...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_DEBUG, obj, __VA_ARGS__)
|
|
|
|
# define GST_DEBUG_ENTER(...) GST_DEBUG ("entering: " __VA_ARGS__ )
|
|
|
|
# define GST_DEBUG_LEAVE(...) GST_DEBUG ("leaving: " __VA_ARGS__ )
|
|
|
|
# define GST_INFO_ENTER(...) GST_INFO ("entering: " __VA_ARGS__ )
|
|
|
|
# define GST_INFO_LEAVE(...) GST_INFO ("leaving: " __VA_ARGS__ )
|
|
|
|
#else /* G_HAVE_GNUC_VARARGS */
|
|
|
|
# define GST_INFO(cat,args...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_INFO, NULL, ##args )
|
|
|
|
# define GST_DEBUG(cat,args...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_DEBUG, NULL, ##args )
|
|
|
|
# define GST_INFO_ELEMENT(cat,obj,args...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_INFO, obj, ##args )
|
|
|
|
# define GST_DEBUG_ELEMENT(cat,obj,args...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_DEBUG, obj, ##args )
|
|
|
|
# define GST_DEBUG_ENTER(args...) GST_DEBUG ("entering: " ##args )
|
|
|
|
# define GST_DEBUG_LEAVE(args...) GST_DEBUG ("leaving: " ##args )
|
|
|
|
# define GST_INFO_ENTER(args...) GST_INFO ("entering: " ##args )
|
|
|
|
# define GST_INFO_LEAVE(args...) GST_INFO ("leaving: " ##args )
|
|
|
|
#endif /* G_HAVE_ISO_VARARGS */
|
|
|
|
|
|
|
|
#endif /* !GST_DEBUG_ENABLE_DEPRECATED */
|
2002-11-29 17:05:13 +00:00
|
|
|
|
|
|
|
|
2003-06-29 14:05:49 +00:00
|
|
|
/********** function pointer stuff **********/
|
|
|
|
void* _gst_debug_register_funcptr (void * ptr,
|
|
|
|
gchar * ptrname);
|
2003-11-29 06:34:05 +00:00
|
|
|
G_CONST_RETURN gchar*
|
|
|
|
_gst_debug_nameof_funcptr (void * ptr);
|
2000-12-30 02:41:15 +00:00
|
|
|
|
2003-06-29 14:05:49 +00:00
|
|
|
#define GST_DEBUG_FUNCPTR(ptr) (_gst_debug_register_funcptr((void *)(ptr), #ptr) , ptr)
|
|
|
|
#define GST_DEBUG_FUNCPTR_NAME(ptr) _gst_debug_nameof_funcptr((void *)ptr)
|
2000-12-30 02:41:15 +00:00
|
|
|
|
2003-06-29 14:05:49 +00:00
|
|
|
#else /* GST_DISABLE_GST_DEBUG */
|
2000-12-30 02:41:15 +00:00
|
|
|
|
2003-06-29 14:05:49 +00:00
|
|
|
#ifdef __GNUC__
|
|
|
|
# pragma GCC poison gst_debug_log
|
2003-11-24 02:09:23 +00:00
|
|
|
# pragma GCC poison gst_debug_log_valist
|
2003-06-29 14:05:49 +00:00
|
|
|
# pragma GCC poison gst_debug_log_default
|
|
|
|
# pragma GCC poison _gst_debug_category_new
|
2002-11-29 17:05:13 +00:00
|
|
|
#endif
|
|
|
|
|
2003-06-29 14:05:49 +00:00
|
|
|
#define _gst_debug_init() /* NOP */
|
|
|
|
|
|
|
|
#define gst_debug_set_log_function(func,data) /* NOP */
|
|
|
|
#define gst_debug_reset_log_function(void) /* NOP */
|
|
|
|
#define gst_debug_set_default_threshold(level) /* NOP */
|
|
|
|
#define gst_debug_get_default_threshold() (GST_LEVEL_NONE)
|
|
|
|
#define gst_debug_category_set_threshold_for_name(name, level) /* NOP */
|
|
|
|
#define gst_debug_category_unset_threshold_for_name(name) /* NOP */
|
|
|
|
|
|
|
|
#define gst_debug_level_get_name(level) ("NONE")
|
|
|
|
#define gst_debug_add_log_function(func,data) (FALSE)
|
|
|
|
#define gst_debug_remove_log_function(func) (0)
|
|
|
|
#define gst_debug_remove_log_function_by_data(data) (0)
|
|
|
|
#define gst_debug_set_active(active) /* NOP */
|
|
|
|
#define gst_debug_is_active() (FALSE)
|
|
|
|
#define gst_debug_set_colored(colored) /* NOP */
|
|
|
|
#define gst_debug_is_colored() (FALSE)
|
|
|
|
#define gst_debug_set_default_threshold(level) /* NOP */
|
|
|
|
#define gst_debug_get_default_threshold() (GST_LEVEL_NONE)
|
|
|
|
#define gst_debug_set_threshold_for_name(name,level) /* NOP */
|
|
|
|
#define gst_debug_unset_threshold_for_name(name) /* NOP */
|
|
|
|
|
|
|
|
#define GST_DEBUG_CATEGORY(var) /* NOP */
|
|
|
|
#define GST_DEBUG_CATEGORY_EXTERN(var) /* NOP */
|
|
|
|
#define GST_DEBUG_CATEGORY_STATIC(var) /* NOP */
|
|
|
|
#define GST_DEBUG_CATEGORY_INIT(var,name,color,desc) /* NOP */
|
|
|
|
#define gst_debug_category_free(category) /* NOP */
|
|
|
|
#define gst_debug_category_set_threshold(category,level) /* NOP */
|
|
|
|
#define gst_debug_category_reset_threshold(category) /* NOP */
|
|
|
|
#define gst_debug_category_get_threshold(category) (GST_LEVEL_NONE)
|
|
|
|
#define gst_debug_category_get_name(cat) ("")
|
|
|
|
#define gst_debug_category_get_color(cat) (0)
|
|
|
|
#define gst_debug_category_get_description(cat) ("")
|
|
|
|
#define gst_debug_get_all_categories() (NULL)
|
|
|
|
#define gst_debug_construct_term_color(colorinfo) (g_strdup ("00"))
|
2000-12-29 10:02:17 +00:00
|
|
|
|
2002-11-29 17:05:13 +00:00
|
|
|
#ifdef G_HAVE_ISO_VARARGS
|
|
|
|
|
2003-06-29 14:05:49 +00:00
|
|
|
#define GST_CAT_LEVEL_LOG(cat,level,...) /* NOP */
|
|
|
|
|
|
|
|
#define GST_CAT_ERROR_OBJECT(...) /* NOP */
|
|
|
|
#define GST_CAT_WARNING_OBJECT(...) /* NOP */
|
|
|
|
#define GST_CAT_INFO_OBJECT(...) /* NOP */
|
|
|
|
#define GST_CAT_DEBUG_OBJECT(...) /* NOP */
|
|
|
|
#define GST_CAT_LOG_OBJECT(...) /* NOP */
|
|
|
|
|
|
|
|
#define GST_CAT_ERROR(...) /* NOP */
|
|
|
|
#define GST_CAT_WARNING(...) /* NOP */
|
|
|
|
#define GST_CAT_INFO(...) /* NOP */
|
|
|
|
#define GST_CAT_DEBUG(...) /* NOP */
|
|
|
|
#define GST_CAT_LOG(...) /* NOP */
|
|
|
|
|
|
|
|
#define GST_ERROR_OBJECT(...) /* NOP */
|
|
|
|
#define GST_WARNING_OBJECT(...) /* NOP */
|
|
|
|
#define GST_INFO_OBJECT(...) /* NOP */
|
|
|
|
#define GST_DEBUG_OBJECT(...) /* NOP */
|
|
|
|
#define GST_LOG_OBJECT(...) /* NOP */
|
|
|
|
|
|
|
|
#define GST_ERROR(...) /* NOP */
|
|
|
|
#define GST_WARNING(...) /* NOP */
|
|
|
|
#define GST_INFO(...) /* NOP */
|
|
|
|
#define GST_DEBUG(...) /* NOP */
|
|
|
|
#define GST_LOG(...) /* NOP */
|
|
|
|
|
|
|
|
#ifdef GST_DEBUG_ENABLE_DEPRECATED
|
|
|
|
#define GST_INFO_ELEMENT(cat,obj,...) /* NOP */
|
|
|
|
#define GST_DEBUG_ELEMENT(cat,obj,...) /* NOP */
|
|
|
|
#define GST_DEBUG_ENTER(...) /* NOP */
|
|
|
|
#define GST_DEBUG_LEAVE(...) /* NOP */
|
|
|
|
#define GST_INFO_ENTER(...) /* NOP */
|
|
|
|
#define GST_INFO_LEAVE(...) /* NOP */
|
|
|
|
#endif /* GST_DEBUG_ENABLE_DEPRECATED */
|
|
|
|
|
|
|
|
#else /* !G_HAVE_ISO_VARARGS */
|
|
|
|
|
|
|
|
#define GST_CAT_LEVEL_LOG(cat,level,args...) /* NOP */
|
|
|
|
|
|
|
|
#define GST_CAT_ERROR_OBJECT(args...) /* NOP */
|
|
|
|
#define GST_CAT_WARNING_OBJECT(args...) /* NOP */
|
|
|
|
#define GST_CAT_INFO_OBJECT(args...) /* NOP */
|
|
|
|
#define GST_CAT_DEBUG_OBJECT(args...) /* NOP */
|
|
|
|
#define GST_CAT_LOG_OBJECT(args...) /* NOP */
|
|
|
|
|
|
|
|
#define GST_CAT_ERROR(args...) /* NOP */
|
|
|
|
#define GST_CAT_WARNING(args...) /* NOP */
|
|
|
|
#define GST_CAT_INFO(args...) /* NOP */
|
|
|
|
#define GST_CAT_DEBUG(args...) /* NOP */
|
|
|
|
#define GST_CAT_LOG(args...) /* NOP */
|
|
|
|
|
|
|
|
#define GST_ERROR_OBJECT(args...) /* NOP */
|
|
|
|
#define GST_WARNING_OBJECT(args...) /* NOP */
|
|
|
|
#define GST_INFO_OBJECT(args...) /* NOP */
|
|
|
|
#define GST_DEBUG_OBJECT(args...) /* NOP */
|
|
|
|
#define GST_LOG_OBJECT(args...) /* NOP */
|
|
|
|
|
|
|
|
#define GST_ERROR(args...) /* NOP */
|
|
|
|
#define GST_WARNING(args...) /* NOP */
|
|
|
|
#define GST_INFO(args...) /* NOP */
|
|
|
|
#define GST_DEBUG(args...) /* NOP */
|
|
|
|
#define GST_LOG(args...) /* NOP */
|
|
|
|
|
|
|
|
#ifdef GST_DEBUG_ENABLE_DEPRECATED
|
|
|
|
#define GST_INFO_ELEMENT(cat,obj,args...) /* NOP */
|
|
|
|
#define GST_DEBUG_ELEMENT(cat,obj,args...) /* NOP */
|
|
|
|
#define GST_DEBUG_ENTER(args...) /* NOP */
|
|
|
|
#define GST_DEBUG_LEAVE(args...) /* NOP */
|
|
|
|
#define GST_INFO_ENTER(args...) /* NOP */
|
|
|
|
#define GST_INFO_LEAVE(args...) /* NOP */
|
|
|
|
#endif /* GST_DEBUG_ENABLE_DEPRECATED */
|
|
|
|
|
|
|
|
#endif /* G_HAVE_ISO_VARARGS */
|
2000-12-29 10:02:17 +00:00
|
|
|
|
2002-12-11 21:33:07 +00:00
|
|
|
#define GST_DEBUG_FUNCPTR(ptr) (ptr)
|
2003-06-29 14:05:49 +00:00
|
|
|
#define GST_DEBUG_FUNCPTR_NAME(ptr) (g_strdup_printf ("%p", ptr))
|
|
|
|
|
|
|
|
#endif /* GST_DISABLE_GST_DEBUG */
|
2001-05-25 21:00:07 +00:00
|
|
|
|
2001-10-17 10:21:27 +00:00
|
|
|
void gst_debug_print_stack_trace (void);
|
|
|
|
|
2003-07-12 15:15:57 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
2000-12-29 10:02:17 +00:00
|
|
|
#endif /* __GSTINFO_H__ */
|