log.c 2.29 KB
Newer Older
1 2 3 4 5
/*****************************************************************************
 * log.c: libvlc new API log functions
 *****************************************************************************
 * Copyright (C) 2005 the VideoLAN team
 *
6
 * $Id$
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
 *
 * Authors: Damien Fouilleul <damienf@videolan.org>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
 *****************************************************************************/

25 26 27 28
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif

29
#include "libvlc_internal.h"
30
#include <vlc/libvlc.h>
31
#include <assert.h>
32

33
unsigned libvlc_get_log_verbosity( const libvlc_instance_t *p_instance )
34
{
35 36
    (void) p_instance;
    return -1;
37 38
}

39
void libvlc_set_log_verbosity( libvlc_instance_t *p_instance, unsigned level )
40
{
41 42
    (void) p_instance;
    (void) level;
43 44
}

45
libvlc_log_t *libvlc_log_open( libvlc_instance_t *p_instance )
46
{
47 48
    (void) p_instance;
    return malloc(1);
49 50
}

51
void libvlc_log_close( libvlc_log_t *p_log )
52
{
53
    free(p_log);
54 55
}

56
unsigned libvlc_log_count( const libvlc_log_t *p_log )
57
{
58 59
    (void) p_log;
    return 0;
60 61
}

62
void libvlc_log_clear( libvlc_log_t *p_log )
63
{
64
    (void) p_log;
65 66
}

67
libvlc_log_iterator_t *libvlc_log_get_iterator( const libvlc_log_t *p_log )
68
{
69
    return (p_log != NULL) ? malloc(1) : NULL;
70 71
}

72
void libvlc_log_iterator_free( libvlc_log_iterator_t *p_iter )
73
{
74
    free( p_iter );
75 76
}

77
int libvlc_log_iterator_has_next( const libvlc_log_iterator_t *p_iter )
78
{
79 80
    (void) p_iter;
    return 0;
81 82 83
}

libvlc_log_message_t *libvlc_log_iterator_next( libvlc_log_iterator_t *p_iter,
84
                                                libvlc_log_message_t *buffer )
85
{
86
    (void) p_iter; (void) buffer;
87
    return NULL;
88
}