diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-03-18 19:34:16 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-03-18 19:34:16 +0000 |
commit | a19ab2cd8a47639653c1bb9db47f609c916b31b4 (patch) | |
tree | 32272c6f5c4184c72aba11d3d2af21c25a57883f /src | |
parent | fc38914b020c0d26436e83e85ebe2c4f1ba0ce06 (diff) | |
download | xine-lib-a19ab2cd8a47639653c1bb9db47f609c916b31b4.tar.gz xine-lib-a19ab2cd8a47639653c1bb9db47f609c916b31b4.tar.bz2 |
small log api update
CVS patchset: 1587
CVS date: 2002/03/18 19:34:16
Diffstat (limited to 'src')
-rw-r--r-- | src/xine-engine/xine.c | 10 | ||||
-rw-r--r-- | src/xine-engine/xine_internal.h | 14 |
2 files changed, 12 insertions, 12 deletions
diff --git a/src/xine-engine/xine.c b/src/xine-engine/xine.c index 4f18d5dac..f69b944e8 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.110 2002/03/18 10:52:39 guenter Exp $ + * $Id: xine.c,v 1.111 2002/03/18 19:34:17 guenter Exp $ * * top-level xine functions * @@ -854,15 +854,15 @@ osd_renderer_t *xine_get_osd_renderer (xine_t *this) { /* * log functions */ -unsigned int xine_get_log_section_count(void) { +int xine_get_log_section_count (xine_t *this) { return XINE_LOG_NUM; } -const char **xine_get_log_names(void) { - static const char *log_sections[XINE_LOG_NUM + 1]; +char **xine_get_log_names (xine_t *this) { + static char *log_sections[XINE_LOG_NUM + 1]; - log_sections[XINE_LOG_MSG] = _("messages"); log_sections[XINE_LOG_FORMAT] = _("stream format"); + log_sections[XINE_LOG_MSG] = _("messages"); log_sections[XINE_LOG_PLUGIN] = _("plugin"); log_sections[XINE_LOG_NUM] = NULL; diff --git a/src/xine-engine/xine_internal.h b/src/xine-engine/xine_internal.h index be68a092d..7e7f375b1 100644 --- a/src/xine-engine/xine_internal.h +++ b/src/xine-engine/xine_internal.h @@ -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_internal.h,v 1.73 2002/03/12 19:51:29 guenter Exp $ + * $Id: xine_internal.h,v 1.74 2002/03/18 19:34:17 guenter Exp $ * */ @@ -138,8 +138,8 @@ struct audio_decoder_s { /* * log output */ -#define XINE_LOG_MSG 0 /* warnings, errors, ... */ -#define XINE_LOG_FORMAT 1 /* stream format, decoders, video size... */ +#define XINE_LOG_FORMAT 0 /* stream format, decoders, video size... */ +#define XINE_LOG_MSG 1 /* warnings, errors, ... */ #define XINE_LOG_PLUGIN 2 #define XINE_LOG_NUM 3 /* # of log buffers defined */ @@ -593,11 +593,11 @@ osd_renderer_t *xine_get_osd_renderer (xine_t *this); * xine log functions */ -const char **xine_get_log_names(void); - -void xine_log (xine_t *this, int buf, const char *format, ...); - +char **xine_get_log_names (xine_t *this); +void xine_log (xine_t *this, int buf, const char *format, ...); char **xine_get_log (xine_t *this, int buf); +int xine_get_log_section_count (xine_t *this); + /* * xine error reporting |