coreaudio: fix play of uninitialized data (loud CRACK)
[vlc.git] / lib / media_list_internal.h
blob82c1482148a4dc620b149dbcf6095cca21ca289e
1 /*****************************************************************************
2 * media_list_internal.h : Definition of opaque structures for libvlc exported API
3 * Also contains some internal utility functions
4 *****************************************************************************
5 * Copyright (C) 2005-2009 VLC authors and VideoLAN
7 * Authors: Clément Stenac <zorglub@videolan.org>
9 * This program is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU Lesser General Public License as published by
11 * the Free Software Foundation; either version 2.1 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public License
20 * along with this program; if not, write to the Free Software Foundation,
21 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
24 #ifndef _LIBVLC_MEDIA_LIST_INTERNAL_H
25 #define _LIBVLC_MEDIA_LIST_INTERNAL_H 1
27 #ifdef HAVE_CONFIG_H
28 # include "config.h"
29 #endif
31 #include <vlc/vlc.h>
32 #include <vlc/libvlc_media.h>
34 #include <vlc_common.h>
36 struct libvlc_media_list_t
38 libvlc_event_manager_t event_manager;
39 int i_refcount;
40 vlc_mutex_t object_lock;
41 vlc_mutex_t refcount_lock;
42 libvlc_media_t * p_md; /* The media from which the
43 * mlist comes, if any. */
44 libvlc_media_t * p_internal_md; /* media set from media.c */
45 vlc_array_t items;
47 /* This indicates if this media list is read-only
48 * from a user point of view */
49 bool b_read_only;
52 /* Media List */
53 void libvlc_media_list_internal_add_media(
54 libvlc_media_list_t * p_mlist,
55 libvlc_media_t * p_md );
57 void libvlc_media_list_internal_insert_media(
58 libvlc_media_list_t * p_mlist,
59 libvlc_media_t * p_md, int index );
61 int libvlc_media_list_internal_remove_index(
62 libvlc_media_list_t * p_mlist, int index );
64 void libvlc_media_list_internal_end_reached(
65 libvlc_media_list_t * p_mlist );
67 #endif