00001 /***************************************************************************** 00002 * libvlc_media_list.h: libvlc_media_list API 00003 ***************************************************************************** 00004 * Copyright (C) 1998-2008 the VideoLAN team 00005 * $Id: de48d35c913083f7f5dbb3bd04f2b52a7a7a542c $ 00006 * 00007 * Authors: Pierre d'Herbemont 00008 * 00009 * This program is free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation; either version 2 of the License, or 00012 * (at your option) any later version. 00013 * 00014 * This program is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, write to the Free Software 00021 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. 00022 *****************************************************************************/ 00023 00024 #ifndef LIBVLC_MEDIA_LIST_VIEW_H 00025 #define LIBVLC_MEDIA_LIST_VIEW_H 1 00026 00027 /** 00028 * \file 00029 * This file defines libvlc_media_list API 00030 */ 00031 00032 # ifdef __cplusplus 00033 extern "C" { 00034 # endif 00035 00036 /***************************************************************************** 00037 * Media List View 00038 *****************************************************************************/ 00039 /** \defgroup libvlc_media_list_view libvlc_media_list_view 00040 * \ingroup libvlc 00041 * LibVLC Media List View: represents a media_list using a different layout. 00042 * The layout can be a flat one without hierarchy, a hierarchical one. 00043 * 00044 * Other type of layout, such as orderer media_list layout could be implemented 00045 * with this class. 00046 * @{ */ 00047 00048 /** 00049 * Retain reference to a media list view 00050 * 00051 * \param p_mlv a media list view created with libvlc_media_list_view_new() 00052 */ 00053 VLC_PUBLIC_API void 00054 libvlc_media_list_view_retain( libvlc_media_list_view_t * p_mlv ); 00055 00056 /** 00057 * Release reference to a media list view. If the refcount reaches 0, then 00058 * the object will be released. 00059 * 00060 * \param p_mlv a media list view created with libvlc_media_list_view_new() 00061 */ 00062 VLC_PUBLIC_API void 00063 libvlc_media_list_view_release( libvlc_media_list_view_t * p_mlv ); 00064 00065 /** 00066 * Get libvlc_event_manager from this media list view instance. 00067 * The p_event_manager is immutable, so you don't have to hold the lock 00068 * 00069 * \param p_mlv a media list view instance 00070 * \return libvlc_event_manager 00071 */ 00072 VLC_PUBLIC_API libvlc_event_manager_t * 00073 libvlc_media_list_view_event_manager( libvlc_media_list_view_t * p_mlv ); 00074 00075 /** 00076 * Get count on media list view items 00077 * 00078 * \param p_mlv a media list view instance 00079 * \param p_e initialized exception object 00080 * \return number of items in media list view 00081 */ 00082 VLC_PUBLIC_API int 00083 libvlc_media_list_view_count( libvlc_media_list_view_t * p_mlv, 00084 libvlc_exception_t * p_e ); 00085 00086 /** 00087 * List media instance in media list view at an index position 00088 * 00089 * \param p_mlv a media list view instance 00090 * \param i_index index position in array where to insert 00091 * \param p_e initialized exception object 00092 * \return media instance at position i_pos and libvlc_media_retain() has been called to increase the refcount on this object. 00093 */ 00094 VLC_PUBLIC_API libvlc_media_t * 00095 libvlc_media_list_view_item_at_index( libvlc_media_list_view_t * p_mlv, 00096 int i_index, 00097 libvlc_exception_t * p_e ); 00098 00099 VLC_PUBLIC_API libvlc_media_list_view_t * 00100 libvlc_media_list_view_children_at_index( libvlc_media_list_view_t * p_mlv, 00101 int index, 00102 libvlc_exception_t * p_e ); 00103 00104 VLC_PUBLIC_API libvlc_media_list_view_t * 00105 libvlc_media_list_view_children_for_item( libvlc_media_list_view_t * p_mlv, 00106 libvlc_media_t * p_md, 00107 libvlc_exception_t * p_e ); 00108 00109 VLC_PUBLIC_API libvlc_media_list_t * 00110 libvlc_media_list_view_parent_media_list( libvlc_media_list_view_t * p_mlv, 00111 libvlc_exception_t * p_e ); 00112 00113 /** @} media_list_view */ 00114 00115 # ifdef __cplusplus 00116 } 00117 # endif 00118 00119 #endif /* LIBVLC_MEDIA_LIST_VIEW_H */
1.5.6