1 /*****************************************************************************
2 * log.c: libvlc new API log functions
3 *****************************************************************************
4 * Copyright (C) 2005 the VideoLAN team
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 *****************************************************************************/
29 #include "libvlc_internal.h"
30 #include <vlc/libvlc.h>
35 libvlc_instance_t *p_instance;
38 unsigned libvlc_get_log_verbosity( const libvlc_instance_t *p_instance )
44 void libvlc_set_log_verbosity( libvlc_instance_t *p_instance, unsigned level )
50 libvlc_log_t *libvlc_log_open( libvlc_instance_t *p_instance )
56 void libvlc_log_close( libvlc_log_t *p_log )
61 unsigned libvlc_log_count( const libvlc_log_t *p_log )
67 void libvlc_log_clear( libvlc_log_t *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 )
82 int libvlc_log_iterator_has_next( const libvlc_log_iterator_t *p_iter )
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;