omxil: Interpret OMX_COLOR_FormatYUV420SemiPlanar as NV12
[vlc.git] / lib / log.c
blob451a6d014234d430d3401bf4eca40162d00810a8
1 /*****************************************************************************
2 * log.c: libvlc new API log functions
3 *****************************************************************************
4 * Copyright (C) 2005 the VideoLAN team
6 * $Id$
8 * Authors: Damien Fouilleul <damienf@videolan.org>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23 *****************************************************************************/
25 #ifdef HAVE_CONFIG_H
26 # include "config.h"
27 #endif
29 #include "libvlc_internal.h"
30 #include <vlc/libvlc.h>
31 #include <assert.h>
33 struct libvlc_log_t
35 libvlc_instance_t *p_instance;
38 unsigned libvlc_get_log_verbosity( const libvlc_instance_t *p_instance )
40 (void) p_instance;
41 return -1;
44 void libvlc_set_log_verbosity( libvlc_instance_t *p_instance, unsigned level )
46 (void) p_instance;
47 (void) level;
50 libvlc_log_t *libvlc_log_open( libvlc_instance_t *p_instance )
52 (void) p_instance;
53 return malloc(1);
56 void libvlc_log_close( libvlc_log_t *p_log )
58 free(p_log);
61 unsigned libvlc_log_count( const libvlc_log_t *p_log )
63 (void) p_log;
64 return 0;
67 void libvlc_log_clear( libvlc_log_t *p_log )
69 (void) p_log;
72 libvlc_log_iterator_t *libvlc_log_get_iterator( const libvlc_log_t *p_log )
74 return (p_log != NULL) ? malloc(1) : NULL;
77 void libvlc_log_iterator_free( libvlc_log_iterator_t *p_iter )
79 free( p_iter );
82 int libvlc_log_iterator_has_next( const libvlc_log_iterator_t *p_iter )
84 (void) p_iter;
85 return 0;
88 libvlc_log_message_t *libvlc_log_iterator_next( libvlc_log_iterator_t *p_iter,
89 libvlc_log_message_t *buffer )
91 (void) p_iter; (void) buffer;
92 return NULL;