VLC 4.0.0-dev
Loading...
Searching...
No Matches
fetcher.h
Go to the documentation of this file.
1/*****************************************************************************
2 * fetcher.h
3 *****************************************************************************
4 * Copyright (C) 1999-2008 VLC authors and VideoLAN
5 *
6 * Authors: Samuel Hocevar <sam@zoy.org>
7 * Clément Stenac <zorglub@videolan.org>
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 _INPUT_FETCHER_H
25#define _INPUT_FETCHER_H 1
26
27#include <vlc_input_item.h>
28
29/**
30 * Fetcher opaque structure.
31 *
32 * The fetcher object will retrieve the art album data for any given input
33 * item in an asynchronous way.
34 */
36
38 void (*on_art_fetch_ended)(input_item_t *, bool fetched, void *userdata);
40
41/**
42 * This function creates the fetcher object and thread.
43 */
45
46/**
47 * This function enqueues the provided item to be art fetched.
48 *
49 * The input item is retained until the art fetching is done or until the
50 * fetcher object is destroyed.
51 */
54 const input_fetcher_callbacks_t *, void * );
55
56/**
57 * This function destroys the fetcher object and thread.
58 *
59 * All pending input items will be released.
60 */
62
63#endif
64
int input_fetcher_Push(input_fetcher_t *, input_item_t *, input_item_meta_request_option_t, const input_fetcher_callbacks_t *, void *)
This function enqueues the provided item to be art fetched.
Definition fetcher.c:473
void input_fetcher_Delete(input_fetcher_t *)
This function destroys the fetcher object and thread.
Definition fetcher.c:507
input_fetcher_t * input_fetcher_New(vlc_object_t *)
This function creates the fetcher object and thread.
Definition fetcher.c:428
Definition fetcher.h:37
void(* on_art_fetch_ended)(input_item_t *, bool fetched, void *userdata)
Definition fetcher.h:38
Definition fetcher.c:42
Describes an input and is used to spawn input_thread_t objects.
Definition vlc_input_item.h:98
VLC object common members.
Definition vlc_objects.h:53
This file defines functions, structures and enums for input items in vlc.
input_item_meta_request_option_t
Definition vlc_input_item.h:508