QVisu
Qt-based visualization for smart homes
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
libvlc_media_list.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * libvlc_media_list.h: libvlc_media_list API
3  *****************************************************************************
4  * Copyright (C) 1998-2008 VLC authors and VideoLAN
5  * $Id: 015824bf54e656cc67838452c7e99a00a452af6e $
6  *
7  * Authors: Pierre d'Herbemont
8  *
9  * This program is free software; you can redistribute it and/or modify it
10  * under the terms of the GNU Lesser General Public License as published by
11  * the Free Software Foundation; either version 2.1 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public License
20  * along with this program; if not, write to the Free Software Foundation,
21  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22  *****************************************************************************/
23 
24 #ifndef LIBVLC_MEDIA_LIST_H
25 #define LIBVLC_MEDIA_LIST_H 1
26 
32 # ifdef __cplusplus
33 extern "C" {
34 # endif
35 
42 typedef struct libvlc_media_list_t libvlc_media_list_t;
43 
50 LIBVLC_API libvlc_media_list_t *
52 
58 LIBVLC_API void
59  libvlc_media_list_release( libvlc_media_list_t *p_ml );
60 
66 LIBVLC_API void
67  libvlc_media_list_retain( libvlc_media_list_t *p_ml );
68 
69 LIBVLC_DEPRECATED int
70  libvlc_media_list_add_file_content( libvlc_media_list_t * p_ml,
71  const char * psz_uri );
72 
81 LIBVLC_API void
82 libvlc_media_list_set_media( libvlc_media_list_t *p_ml, libvlc_media_t *p_md );
83 
92 LIBVLC_API libvlc_media_t *
93  libvlc_media_list_media( libvlc_media_list_t *p_ml );
94 
103 LIBVLC_API int
104 libvlc_media_list_add_media( libvlc_media_list_t *p_ml, libvlc_media_t *p_md );
105 
115 LIBVLC_API int
116 libvlc_media_list_insert_media( libvlc_media_list_t *p_ml,
117  libvlc_media_t *p_md, int i_pos );
118 
127 LIBVLC_API int
128 libvlc_media_list_remove_index( libvlc_media_list_t *p_ml, int i_pos );
129 
137 LIBVLC_API int
138  libvlc_media_list_count( libvlc_media_list_t *p_ml );
139 
150 LIBVLC_API libvlc_media_t *
151  libvlc_media_list_item_at_index( libvlc_media_list_t *p_ml, int i_pos );
161 LIBVLC_API int
162  libvlc_media_list_index_of_item( libvlc_media_list_t *p_ml,
163  libvlc_media_t *p_md );
164 
173 LIBVLC_API int
174  libvlc_media_list_is_readonly( libvlc_media_list_t * p_ml );
175 
181 LIBVLC_API void
182  libvlc_media_list_lock( libvlc_media_list_t *p_ml );
183 
190 LIBVLC_API void
191  libvlc_media_list_unlock( libvlc_media_list_t *p_ml );
192 
200 LIBVLC_API libvlc_event_manager_t *
201  libvlc_media_list_event_manager( libvlc_media_list_t *p_ml );
202 
205 # ifdef __cplusplus
206 }
207 # endif
208 
209 #endif /* _LIBVLC_MEDIA_LIST_H */
LIBVLC_API libvlc_event_manager_t * libvlc_media_list_event_manager(libvlc_media_list_t *p_ml)
LIBVLC_API int libvlc_media_list_index_of_item(libvlc_media_list_t *p_ml, libvlc_media_t *p_md)
LIBVLC_API libvlc_media_t * libvlc_media_list_media(libvlc_media_list_t *p_ml)
struct libvlc_event_manager_t libvlc_event_manager_t
Definition: libvlc.h:282
LIBVLC_API int libvlc_media_list_add_media(libvlc_media_list_t *p_ml, libvlc_media_t *p_md)
LIBVLC_API void libvlc_media_list_lock(libvlc_media_list_t *p_ml)
LIBVLC_API void libvlc_media_list_retain(libvlc_media_list_t *p_ml)
LIBVLC_API int libvlc_media_list_count(libvlc_media_list_t *p_ml)
LIBVLC_API void libvlc_media_list_set_media(libvlc_media_list_t *p_ml, libvlc_media_t *p_md)
LIBVLC_API void libvlc_media_list_unlock(libvlc_media_list_t *p_ml)
LIBVLC_API void libvlc_media_list_release(libvlc_media_list_t *p_ml)
LIBVLC_API int libvlc_media_list_insert_media(libvlc_media_list_t *p_ml, libvlc_media_t *p_md, int i_pos)
LIBVLC_API int libvlc_media_list_remove_index(libvlc_media_list_t *p_ml, int i_pos)
LIBVLC_API libvlc_media_t * libvlc_media_list_item_at_index(libvlc_media_list_t *p_ml, int i_pos)
struct libvlc_instance_t libvlc_instance_t
Definition: libvlc_structures.h:44
LIBVLC_API int libvlc_media_list_is_readonly(libvlc_media_list_t *p_ml)
LIBVLC_API libvlc_media_list_t * libvlc_media_list_new(libvlc_instance_t *p_instance)