]> git.sesse.net Git - vlc/blob - lib/log.c
Contribs: build schroedinger
[vlc] / lib / log.c
1 /*****************************************************************************
2  * log.c: libvlc new API log functions
3  *****************************************************************************
4  * Copyright (C) 2005 the VideoLAN team
5  *
6  * $Id$
7  *
8  * Authors: Damien Fouilleul <damienf@videolan.org>
9  *
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.
14  *
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.
19  *
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  *****************************************************************************/
24
25 #ifdef HAVE_CONFIG_H
26 # include "config.h"
27 #endif
28
29 #include "libvlc_internal.h"
30 #include <vlc/libvlc.h>
31 #include <assert.h>
32
33 struct libvlc_log_t
34 {
35     libvlc_instance_t  *p_instance;
36 };
37
38 unsigned libvlc_get_log_verbosity( const libvlc_instance_t *p_instance )
39 {
40     (void) p_instance;
41     return -1;
42 }
43
44 void libvlc_set_log_verbosity( libvlc_instance_t *p_instance, unsigned level )
45 {
46     (void) p_instance;
47     (void) level;
48 }
49
50 libvlc_log_t *libvlc_log_open( libvlc_instance_t *p_instance )
51 {
52     (void) p_instance;
53     return malloc(1);
54 }
55
56 void libvlc_log_close( libvlc_log_t *p_log )
57 {
58     free(p_log);
59 }
60
61 unsigned libvlc_log_count( const libvlc_log_t *p_log )
62 {
63     (void) p_log;
64     return 0;
65 }
66
67 void libvlc_log_clear( libvlc_log_t *p_log )
68 {
69     (void) p_log;
70 }
71
72 libvlc_log_iterator_t *libvlc_log_get_iterator( const libvlc_log_t *p_log )
73 {
74     return (p_log != NULL) ? malloc(1) : NULL;
75 }
76
77 void libvlc_log_iterator_free( libvlc_log_iterator_t *p_iter )
78 {
79     free( p_iter );
80 }
81
82 int libvlc_log_iterator_has_next( const libvlc_log_iterator_t *p_iter )
83 {
84     (void) p_iter;
85     return 0;
86 }
87
88 libvlc_log_message_t *libvlc_log_iterator_next( libvlc_log_iterator_t *p_iter,
89                                                 libvlc_log_message_t *buffer )
90 {
91     (void) p_iter; (void) buffer;
92     return NULL;
93 }