mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
build: more some prototypes out if #ifndef GST_DISABLE_GST_DEBUG
The build was failing becasue of a new warning. There are still failures (tracked via bug #614167).
This commit is contained in:
parent
19f46c0d35
commit
3f4954e42d
2 changed files with 30 additions and 24 deletions
|
@ -51,13 +51,13 @@ typedef enum {
|
||||||
} GstDebugGraphDetails;
|
} GstDebugGraphDetails;
|
||||||
|
|
||||||
|
|
||||||
#ifndef GST_DISABLE_GST_DEBUG
|
|
||||||
|
|
||||||
/********** pipeline graphs **********/
|
/********** pipeline graphs **********/
|
||||||
|
|
||||||
void _gst_debug_bin_to_dot_file (GstBin *bin, GstDebugGraphDetails details, const gchar *file_name);
|
void _gst_debug_bin_to_dot_file (GstBin *bin, GstDebugGraphDetails details, const gchar *file_name);
|
||||||
void _gst_debug_bin_to_dot_file_with_ts (GstBin *bin, GstDebugGraphDetails details, const gchar *file_name);
|
void _gst_debug_bin_to_dot_file_with_ts (GstBin *bin, GstDebugGraphDetails details, const gchar *file_name);
|
||||||
|
|
||||||
|
#ifndef GST_DISABLE_GST_DEBUG
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GST_DEBUG_BIN_TO_DOT_FILE:
|
* GST_DEBUG_BIN_TO_DOT_FILE:
|
||||||
* @bin: the top-level pipeline that should be analyzed
|
* @bin: the top-level pipeline that should be analyzed
|
||||||
|
|
|
@ -254,7 +254,6 @@ typedef void (*GstLogFunction) (GstDebugCategory * category,
|
||||||
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);
|
||||||
|
@ -294,6 +293,31 @@ void gst_debug_log_valist (GstDebugCategory * category,
|
||||||
const gchar * format,
|
const gchar * format,
|
||||||
va_list args) G_GNUC_NO_INSTRUMENT;
|
va_list args) G_GNUC_NO_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);
|
||||||
|
|
||||||
|
/* FIXME:0.11 remove, we don't use it */
|
||||||
|
typedef void (* GstDebugFuncPtr) (void);
|
||||||
|
|
||||||
|
/* do no use these functions, use the GST_DEBUG*_FUNCPTR macros */
|
||||||
|
void _gst_debug_register_funcptr (gpointer func,
|
||||||
|
const gchar * ptrname);
|
||||||
|
G_CONST_RETURN gchar *
|
||||||
|
_gst_debug_nameof_funcptr (gpointer func) G_GNUC_NO_INSTRUMENT;
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef GST_DISABLE_GST_DEBUG
|
||||||
|
|
||||||
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,
|
||||||
|
@ -351,10 +375,6 @@ void gst_debug_unset_threshold_for_name (const gchar * name);
|
||||||
*/
|
*/
|
||||||
#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 GST_DEBUG_CATEGORY_INIT macro 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.
|
||||||
|
@ -409,9 +429,6 @@ G_CONST_RETURN gchar *
|
||||||
GSList *
|
GSList *
|
||||||
gst_debug_get_all_categories (void);
|
gst_debug_get_all_categories (void);
|
||||||
|
|
||||||
/* do not use this function, use the GST_DEBUG_CATEGORY_GET macro below */
|
|
||||||
GstDebugCategory *_gst_debug_get_category (const gchar *name);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GST_DEBUG_CATEGORY_GET:
|
* GST_DEBUG_CATEGORY_GET:
|
||||||
* @cat: the category to initialize.
|
* @cat: the category to initialize.
|
||||||
|
@ -513,11 +530,6 @@ GST_CAT_LEVEL_LOG (GstDebugCategory * cat, GstDebugLevel level,
|
||||||
#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 the
|
/* This one doesn't have varargs in the macro, so it's different than all the
|
||||||
* 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. */
|
||||||
|
@ -1094,12 +1106,6 @@ GST_FIXME (const char *format, ...)
|
||||||
|
|
||||||
/********** function pointer stuff **********/
|
/********** function pointer stuff **********/
|
||||||
|
|
||||||
typedef void (* GstDebugFuncPtr) (void);
|
|
||||||
void _gst_debug_register_funcptr (GstDebugFuncPtr func,
|
|
||||||
const gchar * ptrname);
|
|
||||||
G_CONST_RETURN gchar *
|
|
||||||
_gst_debug_nameof_funcptr (GstDebugFuncPtr func) G_GNUC_NO_INSTRUMENT;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GST_DEBUG_REGISTER_FUNCPTR:
|
* GST_DEBUG_REGISTER_FUNCPTR:
|
||||||
* @ptr: pointer to the function to register
|
* @ptr: pointer to the function to register
|
||||||
|
@ -1112,7 +1118,7 @@ G_CONST_RETURN gchar *
|
||||||
* Since: 0.10.26
|
* Since: 0.10.26
|
||||||
*/
|
*/
|
||||||
#define GST_DEBUG_REGISTER_FUNCPTR(ptr) \
|
#define GST_DEBUG_REGISTER_FUNCPTR(ptr) \
|
||||||
_gst_debug_register_funcptr((GstDebugFuncPtr)(ptr), #ptr)
|
_gst_debug_register_funcptr((gpointer)(ptr), #ptr)
|
||||||
/**
|
/**
|
||||||
* GST_DEBUG_FUNCPTR:
|
* GST_DEBUG_FUNCPTR:
|
||||||
* @ptr: pointer to the function to register
|
* @ptr: pointer to the function to register
|
||||||
|
@ -1123,7 +1129,7 @@ G_CONST_RETURN gchar *
|
||||||
* Returns: the value passed to @ptr.
|
* 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((gpointer)(ptr), #ptr) , ptr)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GST_DEBUG_FUNCPTR_NAME:
|
* GST_DEBUG_FUNCPTR_NAME:
|
||||||
|
@ -1136,7 +1142,7 @@ G_CONST_RETURN gchar *
|
||||||
* freed by the caller.
|
* freed by the caller.
|
||||||
*/
|
*/
|
||||||
#define GST_DEBUG_FUNCPTR_NAME(ptr) \
|
#define GST_DEBUG_FUNCPTR_NAME(ptr) \
|
||||||
_gst_debug_nameof_funcptr((GstDebugFuncPtr)ptr)
|
_gst_debug_nameof_funcptr((gpointer)ptr)
|
||||||
|
|
||||||
|
|
||||||
#else /* GST_DISABLE_GST_DEBUG */
|
#else /* GST_DISABLE_GST_DEBUG */
|
||||||
|
|
Loading…
Reference in a new issue