VLC 4.0.0-dev
|
Data Structures | |
struct | vlc_preparser_t |
struct | task |
Functions | |
static void | RunnableRun (void *) |
static struct task * | TaskNew (vlc_preparser_t *preparser, input_item_t *item, input_item_meta_request_option_t options, const struct vlc_metadata_cbs *cbs, void *userdata, void *id, vlc_tick_t timeout) |
static void | TaskDelete (struct task *task) |
static void | PreparserAddTask (vlc_preparser_t *preparser, struct task *task) |
static void | PreparserRemoveTask (vlc_preparser_t *preparser, struct task *task) |
static void | NotifyPreparseEnded (struct task *task, bool art_fetched) |
static void | OnParserEnded (input_item_t *item, int status, void *task_) |
static void | OnParserSubtreeAdded (input_item_t *item, input_item_node_t *subtree, void *task_) |
static void | OnArtFetchEnded (input_item_t *item, bool fetched, void *userdata) |
static void | Parse (struct task *task, vlc_tick_t deadline) |
static int | Fetch (struct task *task) |
static void | Interrupt (struct task *task) |
vlc_preparser_t * | vlc_preparser_New (vlc_object_t *parent) |
This function creates the preparser object and thread. More... | |
int | vlc_preparser_Push (vlc_preparser_t *preparser, input_item_t *item, input_item_meta_request_option_t i_options, const struct vlc_metadata_cbs *cbs, void *cbs_userdata, int timeout_ms, void *id) |
This function enqueues the provided item to be preparsed or fetched. More... | |
void | vlc_preparser_Cancel (vlc_preparser_t *preparser, void *id) |
This function cancel all preparsing requests for a given id. More... | |
void | vlc_preparser_Deactivate (vlc_preparser_t *preparser) |
This function deactivates the preparser. More... | |
void | vlc_preparser_Delete (vlc_preparser_t *preparser) |
This function destroys the preparser object and thread. More... | |
Variables | |
static const input_fetcher_callbacks_t | input_fetcher_callbacks |
|
static |
References task::fetcher, vlc_preparser_t::fetcher, input_fetcher_callbacks, input_fetcher_Push(), task::item, META_REQUEST_OPTION_FETCH_ANY, task::options, task::preparser, and VLC_ENOENT.
Referenced by RunnableRun().
|
static |
References task::interrupted, ITEM_PREPARSE_TIMEOUT, task::preparse_ended, task::preparse_status, and vlc_sem_post().
Referenced by vlc_preparser_Cancel().
|
static |
References task::cbs, task::item, META_REQUEST_OPTION_FETCH_ANY, input_fetcher_callbacks_t::on_art_fetch_ended, task::options, task::preparse_status, and task::userdata.
Referenced by OnArtFetchEnded(), RunnableRun(), and vlc_preparser_Cancel().
|
static |
References input_item_SetPreparsed(), task::interrupted, task::item, NotifyPreparseEnded(), TaskDelete(), task::userdata, and VLC_UNUSED.
|
static |
References task::interrupted, task::item, ITEM_PREPARSE_DONE, ITEM_PREPARSE_FAILED, task::preparse_ended, task::preparse_status, vlc_sem_post(), VLC_SUCCESS, and VLC_UNUSED.
Referenced by Parse().
|
static |
References task::cbs, task::item, task::userdata, and VLC_UNUSED.
Referenced by Parse().
|
static |
References task::cbs, input_item_Parse(), input_item_parser_id_Release(), task::interrupted, task::item, ITEM_PREPARSE_FAILED, ITEM_PREPARSE_TIMEOUT, OnParserEnded(), OnParserSubtreeAdded(), vlc_preparser_t::owner, task::parser, task::preparse_ended, task::preparse_status, task::preparser, vlc_sem_timedwait(), vlc_sem_wait(), and VLC_TICK_INVALID.
Referenced by RunnableRun().
|
static |
References vlc_preparser_t::lock, task::node, task::preparser, vlc_preparser_t::submitted_tasks, vlc_list_append(), vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by vlc_preparser_Push().
|
static |
References vlc_preparser_t::lock, task::node, task::preparser, vlc_list_remove(), vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by RunnableRun().
|
static |
References Fetch(), input_item_SetPreparsed(), task::interrupted, task::item, META_REQUEST_OPTION_SCOPE_ANY, META_REQUEST_OPTION_SCOPE_FORCED, NotifyPreparseEnded(), task::options, Parse(), task::preparser, PreparserRemoveTask(), TaskDelete(), task::timeout, task::userdata, VLC_SUCCESS, vlc_thread_set_name(), VLC_TICK_INVALID, and vlc_tick_now().
Referenced by TaskNew().
|
static |
References input_item_Release(), and task::item.
Referenced by OnArtFetchEnded(), RunnableRun(), and vlc_preparser_Cancel().
|
static |
References task::cbs, task::id, input_item_Hold(), task::interrupted, task::item, ITEM_PREPARSE_SKIPPED, task::options, task::parser, task::preparse_ended, task::preparse_status, task::preparser, vlc_runnable::run, task::runnable, RunnableRun(), task::timeout, vlc_runnable::userdata, task::userdata, and vlc_sem_init().
Referenced by vlc_preparser_Push().
|
static |
Referenced by Fetch().