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: a9ee2c7ba5bdc7fa8db3d662ef53719803bee39b $ 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_LIST_INTERNAL_H 00026 #define _LIBVLC_MEDIA_LIST_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 00036 #include <vlc_common.h> 00037 00038 struct libvlc_media_list_t 00039 { 00040 libvlc_event_manager_t * p_event_manager; 00041 libvlc_instance_t * p_libvlc_instance; 00042 int i_refcount; 00043 vlc_mutex_t object_lock; 00044 vlc_mutex_t refcount_lock; 00045 libvlc_media_t * p_md; /* The media from which the 00046 * mlist comes, if any. */ 00047 vlc_array_t items; 00048 00049 /* Other way to see that media list */ 00050 /* Used in flat_media_list.c */ 00051 libvlc_media_list_t * p_flat_mlist; 00052 00053 /* This indicates if this media list is read-only 00054 * from a user point of view */ 00055 bool b_read_only; 00056 }; 00057 00058 /* Media List */ 00059 void _libvlc_media_list_add_media( 00060 libvlc_media_list_t * p_mlist, 00061 libvlc_media_t * p_md, 00062 libvlc_exception_t * p_e ); 00063 00064 void _libvlc_media_list_insert_media( 00065 libvlc_media_list_t * p_mlist, 00066 libvlc_media_t * p_md, int index, 00067 libvlc_exception_t * p_e ); 00068 00069 void _libvlc_media_list_remove_index( 00070 libvlc_media_list_t * p_mlist, int index, 00071 libvlc_exception_t * p_e ); 00072 00073 #endif
1.5.6