media_player_internal.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * libvlc_internal.h : Definition of opaque structures for libvlc exported API
00003  * Also contains some internal utility functions
00004  *****************************************************************************
00005  * Copyright (C) 2005-2009 the VideoLAN team
00006  * $Id: 5b12ff79a67ce4816f72b05e9ea2638a4fa218ae $
00007  *
00008  * Authors: Clément Stenac <zorglub@videolan.org>
00009  *
00010  * This program is free software; you can redistribute it and/or modify
00011  * it under the terms of the GNU General Public License as published by
00012  * the Free Software Foundation; either version 2 of the License, or
00013  * (at your option) any later version.
00014  *
00015  * This program is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  * GNU General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU General Public License
00021  * along with this program; if not, write to the Free Software
00022  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
00023  *****************************************************************************/
00024 
00025 #ifndef _LIBVLC_MEDIA_PLAYER_INTERNAL_H
00026 #define _LIBVLC_MEDIA_PLAYER_INTERNAL_H 1
00027 
00028 #ifdef HAVE_CONFIG_H
00029 # include "config.h"
00030 #endif
00031 
00032 #include <vlc/vlc.h>
00033 #include <vlc/libvlc_structures.h>
00034 #include <vlc/libvlc_media.h>
00035 #include <vlc_input.h>
00036 
00037 struct libvlc_media_player_t
00038 {
00039     VLC_COMMON_MEMBERS
00040 
00041     int                i_refcount;
00042     vlc_mutex_t        object_lock;
00043 
00044     struct
00045     {
00046         input_thread_t   *p_thread;
00047         input_resource_t *p_resource;
00048         vlc_mutex_t       lock;
00049     } input;
00050 
00051     struct libvlc_instance_t * p_libvlc_instance; /* Parent instance */
00052     libvlc_media_t * p_md; /* current media descriptor */
00053     libvlc_event_manager_t * p_event_manager;
00054     libvlc_state_t state;
00055 };
00056 
00057 /* Media player - audio, video */
00058 input_thread_t *libvlc_get_input_thread(libvlc_media_player_t * );
00059 
00060 
00061 libvlc_track_description_t * libvlc_get_track_description(
00062         libvlc_media_player_t *p_mi,
00063         const char *psz_variable );
00064 
00065 #endif
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines