1 /*****************************************************************************
2 * libvlc_internal.h : Definition of opaque structures for libvlc exported API
3 * Also contains some internal utility functions
4 *****************************************************************************
5 * Copyright (C) 2005-2009 the VideoLAN team
8 * Authors: Clément Stenac <zorglub@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 *****************************************************************************/
25 #ifndef _LIBVLC_MEDIA_LIST_INTERNAL_H
26 #define _LIBVLC_MEDIA_LIST_INTERNAL_H 1
33 #include <vlc/libvlc_structures.h>
34 #include <vlc/libvlc_media.h>
36 #include <vlc_common.h>
38 struct libvlc_media_list_t
40 libvlc_event_manager_t
* p_event_manager
;
41 libvlc_instance_t
* p_libvlc_instance
;
43 vlc_mutex_t object_lock
;
44 vlc_mutex_t refcount_lock
;
45 libvlc_media_t
* p_md
; /* The media from which the
46 * mlist comes, if any. */
49 /* Other way to see that media list */
50 /* Used in flat_media_list.c */
51 libvlc_media_list_t
* p_flat_mlist
;
53 /* This indicates if this media list is read-only
54 * from a user point of view */
59 void _libvlc_media_list_add_media(
60 libvlc_media_list_t
* p_mlist
,
61 libvlc_media_t
* p_md
);
63 void _libvlc_media_list_insert_media(
64 libvlc_media_list_t
* p_mlist
,
65 libvlc_media_t
* p_md
, int index
);
67 int _libvlc_media_list_remove_index(
68 libvlc_media_list_t
* p_mlist
, int index
);