]> git.sesse.net Git - vlc/blob - lib/media_list_internal.h
demux: ts: parse SL config
[vlc] / lib / media_list_internal.h
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
6  * $Id$
7  *
8  * Authors: ClĂ©ment Stenac <zorglub@videolan.org>
9  *
10  * This program is free software; you can redistribute it and/or modify it
11  * under the terms of the GNU Lesser General Public License as published by
12  * the Free Software Foundation; either version 2.1 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 Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * along with this program; if not, write to the Free Software Foundation,
22  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23  *****************************************************************************/
24
25 #ifndef _LIBVLC_MEDIA_LIST_INTERNAL_H
26 #define _LIBVLC_MEDIA_LIST_INTERNAL_H 1
27
28 #ifdef HAVE_CONFIG_H
29 # include "config.h"
30 #endif
31
32 #include <vlc/vlc.h>
33 #include <vlc/libvlc_structures.h>
34 #include <vlc/libvlc_media.h>
35
36 #include <vlc_common.h>
37
38 struct libvlc_media_list_t
39 {
40     libvlc_event_manager_t *    p_event_manager;
41     libvlc_instance_t *         p_libvlc_instance;
42     int                         i_refcount;
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. */
47     libvlc_media_t * p_internal_md; /* media set from media.c */
48     vlc_array_t                items;
49
50     /* This indicates if this media list is read-only
51      * from a user point of view */
52     bool                  b_read_only;
53 };
54
55 /* Media List */
56 void libvlc_media_list_internal_add_media(
57         libvlc_media_list_t * p_mlist,
58         libvlc_media_t * p_md );
59
60 void libvlc_media_list_internal_insert_media(
61         libvlc_media_list_t * p_mlist,
62         libvlc_media_t * p_md, int index );
63
64 int libvlc_media_list_internal_remove_index(
65         libvlc_media_list_t * p_mlist, int index );
66
67 void libvlc_media_list_internal_end_reached(
68         libvlc_media_list_t * p_mlist );
69 #endif