diff options
-rw-r--r-- | include/xine.h.in | 6 | ||||
-rw-r--r-- | src/input/vcd/xine-extra.c | 21 | ||||
-rw-r--r-- | src/xine-engine/xine.c | 8 |
3 files changed, 17 insertions, 18 deletions
diff --git a/include/xine.h.in b/include/xine.h.in index f94dfef53..d2cbaf156 100644 --- a/include/xine.h.in +++ b/include/xine.h.in @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine.h.in,v 1.150 2006/08/13 23:51:34 miguelfreitas Exp $ + * $Id: xine.h.in,v 1.151 2006/09/09 17:41:45 dgp85 Exp $ * * public xine-lib (libxine) interface and documentation * @@ -791,9 +791,13 @@ const char *const *xine_get_log_names(xine_t *self); #ifndef __GNUC__ void xine_log (xine_t *self, int buf, const char *format, ...); +void xine_vlog(xine_t *this, int buf, + const char *format, va_list args); #else void xine_log (xine_t *self, int buf, const char *format, ...) __attribute__ ((__format__(printf, 3, 4))); +void xine_vlog(xine_t *this, int buf, + const char *format, va_list args) __attribute__ ((__format__(printf, 3, 0))); #endif /* get log messages of specified section */ diff --git a/src/input/vcd/xine-extra.c b/src/input/vcd/xine-extra.c index 0b5e01c13..90c729181 100644 --- a/src/input/vcd/xine-extra.c +++ b/src/input/vcd/xine-extra.c @@ -1,5 +1,5 @@ /* - $Id: xine-extra.c,v 1.4 2006/06/29 19:39:10 dgp85 Exp $ + $Id: xine-extra.c,v 1.5 2006/09/09 17:41:45 dgp85 Exp $ Copyright (C) 2002 Rocky Bernstein <rocky@panix.com> @@ -35,19 +35,6 @@ static xine_t *my_xine = NULL; -/* This is modified from xine_log() and should really reside inside - xine-lib/src/xine-engine/xine.c. It logs a message to "buf" and also - prints it to stream. -*/ - -static void __attribute__((__format__(__printf__,4, 0))) -xine_vflog(xine_t *this, FILE *stream, int buf, const char *format, - va_list args) -{ - this->log_buffers[buf]->scratch_printf(this->log_buffers[buf], format, args); - vfprintf(stream, format, args); -} - /*! This routine is like xine_log, except it takes a va_list instead of a variable number of arguments. It might be useful as a function @@ -59,7 +46,8 @@ xine_vflog(xine_t *this, FILE *stream, int buf, const char *format, void xine_vlog_msg(xine_t *this, int buf, const char *format, va_list args) { - xine_vflog(this, stdout, buf, format, args); + xine_vlog(this, buf, format, args); + vfprintf(stdout, format, args); } /*! This routine is like xine_log, except it takes a va_list instead @@ -72,7 +60,8 @@ xine_vlog_msg(xine_t *this, int buf, const char *format, va_list args) void xine_vlog_err(xine_t *this, int buf, const char *format, va_list args) { - xine_vflog(this, stderr, buf, format, args); + xine_vlog(this, buf, format, args); + vfprintf(stderr, format, args); } /*! Call this before calling any of the xine_log_msg or xine_log_err diff --git a/src/xine-engine/xine.c b/src/xine-engine/xine.c index a4e31aba6..432fca579 100644 --- a/src/xine-engine/xine.c +++ b/src/xine-engine/xine.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine.c,v 1.327 2006/09/08 21:11:29 miguelfreitas Exp $ + * $Id: xine.c,v 1.328 2006/09/09 17:41:45 dgp85 Exp $ */ /* @@ -1957,6 +1957,12 @@ void xine_log (xine_t *this, int buf, const char *format, ...) { } } +void xine_vlog(xine_t *this, int buf, const char *format, + va_list args) +{ + this->log_buffers[buf]->scratch_printf(this->log_buffers[buf], format, args); +} + const char *const *xine_get_log (xine_t *this, int buf) { if(buf >= XINE_LOG_NUM) |