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>
33 unsigned libvlc_get_log_verbosity( const libvlc_instance_t *p_instance )
39 void libvlc_set_log_verbosity( libvlc_instance_t *p_instance, unsigned level )
45 libvlc_log_t *libvlc_log_open( libvlc_instance_t *p_instance )
51 void libvlc_log_close( libvlc_log_t *p_log )
56 unsigned libvlc_log_count( const libvlc_log_t *p_log )
62 void libvlc_log_clear( libvlc_log_t *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 )
77 int libvlc_log_iterator_has_next( const libvlc_log_iterator_t *p_iter )
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;