Update NEWS with new supported codecs.
[vlc/solaris.git] / lib / log.c
blob77162c088afc6bfa7d1739d4e094fe0523744afb
1 /*****************************************************************************
2 * log.c: libvlc new API log functions
3 *****************************************************************************
4 * Copyright (C) 2005 VLC authors and VideoLAN
6 * $Id$
8 * Authors: Damien Fouilleul <damienf@videolan.org>
10 * This program is free software; you can redistribute it and/or modify it
11 * under the terms of the GNU Lesser General Public License as published by
12 * the Free Software Foundation; either version 2.1 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 Lesser General Public License for more details.
20 * You should have received a copy of the GNU Lesser General Public License
21 * along with this program; if not, write to the Free Software Foundation,
22 * 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 unsigned libvlc_get_log_verbosity( const libvlc_instance_t *p_instance )
35 (void) p_instance;
36 return -1;
39 void libvlc_set_log_verbosity( libvlc_instance_t *p_instance, unsigned level )
41 (void) p_instance;
42 (void) level;
45 libvlc_log_t *libvlc_log_open( libvlc_instance_t *p_instance )
47 (void) p_instance;
48 return malloc(1);
51 void libvlc_log_close( libvlc_log_t *p_log )
53 free(p_log);
56 unsigned libvlc_log_count( const libvlc_log_t *p_log )
58 (void) p_log;
59 return 0;
62 void libvlc_log_clear( libvlc_log_t *p_log )
64 (void) p_log;
67 libvlc_log_iterator_t *libvlc_log_get_iterator( const libvlc_log_t *p_log )
69 return (p_log != NULL) ? malloc(1) : NULL;
72 void libvlc_log_iterator_free( libvlc_log_iterator_t *p_iter )
74 free( p_iter );
77 int libvlc_log_iterator_has_next( const libvlc_log_iterator_t *p_iter )
79 (void) p_iter;
80 return 0;
83 libvlc_log_message_t *libvlc_log_iterator_next( libvlc_log_iterator_t *p_iter,
84 libvlc_log_message_t *buffer )
86 (void) p_iter; (void) buffer;
87 return NULL;