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#include <vlc_preparser.h>
29
30/**
31 * Fetcher opaque structure.
32 *
33 * The fetcher object will retrieve the art album data for any given input
34 * item in an asynchronous way.
35 */
37
39 void (*on_art_fetch_ended)(input_item_t *, bool fetched, void *userdata);
41
42/**
43 * This function creates the fetcher object and thread.
44 *
45 * @param request_type a combination of VLC_PREPARSER_TYPE_FETCHMETA_LOCAL and
46 * VLC_PREPARSER_TYPE_FETCHMETA_NET, it is used to setup the executors for
47 * each domain.
48 */
49input_fetcher_t *input_fetcher_New( vlc_object_t *, int request_type );
50
51/**
52 * This function enqueues the provided item to be art fetched.
53 *
54 * The input item is retained until the art fetching is done or until the
55 * fetcher object is destroyed.
56 */
58 const input_fetcher_callbacks_t *, void * );
59
60/**
61 * This function destroys the fetcher object and thread.
62 *
63 * All pending input items will be released.
64 */
66
67#endif
68
int input_fetcher_Push(input_fetcher_t *, input_item_t *, int, const input_fetcher_callbacks_t *, void *)
This function enqueues the provided item to be art fetched.
Definition fetcher.c:485
void input_fetcher_Delete(input_fetcher_t *)
This function destroys the fetcher object and thread.
Definition fetcher.c:523
input_fetcher_t * input_fetcher_New(vlc_object_t *, int request_type)
This function creates the fetcher object and thread.
Definition fetcher.c:424
Definition fetcher.h:38
void(* on_art_fetch_ended)(input_item_t *, bool fetched, void *userdata)
Definition fetcher.h:39
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.
VLC Preparser API.