nfs: reset eof state on seek
[vlc.git] / lib / media_internal.h
blob5a67e9ff603322f34cf9b13bfcf4c9be4113d947
1 /*****************************************************************************
2 * media_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$
8 * Authors: Clément Stenac <zorglub@videolan.org>
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.
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.
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 *****************************************************************************/
25 #ifndef _LIBVLC_MEDIA_INTERNAL_H
26 #define _LIBVLC_MEDIA_INTERNAL_H 1
28 #include <vlc/libvlc.h>
29 #include <vlc/libvlc_media.h>
31 #include <vlc_common.h>
32 #include <vlc_input.h>
34 struct libvlc_media_t
36 libvlc_event_manager_t event_manager;
37 input_item_t *p_input_item;
38 int i_refcount;
39 libvlc_instance_t *p_libvlc_instance;
40 libvlc_state_t state;
41 VLC_FORWARD_DECLARE_OBJECT(libvlc_media_list_t*) p_subitems; /* A media descriptor can have Sub items. This is the only dependancy we really have on media_list */
42 void *p_user_data;
44 vlc_cond_t parsed_cond;
45 vlc_mutex_t parsed_lock;
46 vlc_mutex_t subitems_lock;
48 libvlc_media_parsed_status_t parsed_status;
49 bool is_parsed;
50 bool has_asked_preparse;
53 /* Media Descriptor */
54 libvlc_media_t * libvlc_media_new_from_input_item(
55 libvlc_instance_t *, input_item_t * );
57 void libvlc_media_set_state( libvlc_media_t *, libvlc_state_t );
59 #endif