]> git.sesse.net Git - vlc/blob - src/playlist/fetcher.h
1c422ccad1423d46f466f73be8b9524ba6abdbee
[vlc] / src / playlist / fetcher.h
1 /*****************************************************************************
2  * playlist_fetcher.h:
3  *****************************************************************************
4  * Copyright (C) 1999-2008 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Samuel Hocevar <sam@zoy.org>
8  *          ClĂ©ment Stenac <zorglub@videolan.org>
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
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 General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23  *****************************************************************************/
24
25 #ifndef _PLAYLIST_FETCHER_H
26 #define _PLAYLIST_FETCHER_H 1
27
28 typedef struct
29 {
30     playlist_t      *p_playlist;
31
32     vlc_thread_t    thread;
33     vlc_mutex_t     lock;
34     vlc_cond_t      wait;
35     int             i_art_policy;
36     int             i_waiting;
37     input_item_t    **pp_waiting;
38
39     DECL_ARRAY(playlist_album_t) albums;
40 } playlist_fetcher_t;
41
42 playlist_fetcher_t *playlist_fetcher_New( playlist_t * );
43 void playlist_fetcher_Push( playlist_fetcher_t *, input_item_t * );
44 void playlist_fetcher_Delete( playlist_fetcher_t * );
45
46 #endif
47