--- a/gst/gstinfo.c +++ b/gst/gstinfo.c @@ -462,6 +462,39 @@ gst_debug_log (GstDebugCategory * catego va_end (var_args); } +typedef struct { + const gchar *file; + const gchar *function; + const gint line; +} GstDebugTraceLocation; + + +/** + * gst_debug_log2: + * category: category to log + * level: level of the message is in + * location: the file, function name, and line number of the location that + * emitted the message + * object: the object this message relates to or NULL if none + * format: a printf style format string + * ...: optional arguments for the format + * + * Logs the given message using the currently registered debugging handlers. + */ +void +gst_debug_log2 (GstDebugCategory * category, GstDebugLevel level, + const GstDebugTraceLocation * location, + GObject * object, const gchar * format, ...) +{ +#if 0 + va_list var_args; + + va_start (var_args, format); + gst_debug_log_valist2 (category, level, location, object, format, var_args); + va_end (var_args); +#endif +} + #ifdef _MSC_VER /* based on g_basename(), which we can't use because it was deprecated */ static inline const gchar *