VLC 4.0.0-dev
Loading...
Searching...
No Matches
vlc_preparser_cbs Struct Reference

#include <vlc_preparser.h>

Data Fields

void(* on_ended )(vlc_preparser_req *req, int status, void *data)
 Event received when the parser ends.
 
void(* on_subtree_added )(vlc_preparser_req *req, input_item_node_t *subtree, void *data)
 Event received when a new subtree is added.
 
void(* on_attachments_added )(vlc_preparser_req *req, input_attachment_t *const *array, size_t count, void *data)
 Event received when new attachments are added.
 

Field Documentation

◆ on_attachments_added

void(* vlc_preparser_cbs::on_attachments_added) (vlc_preparser_req *req, input_attachment_t *const *array, size_t count, void *data)

Event received when new attachments are added.

Note
This callback is optional. It can be called several times for one parse request. The array contains only new elements after a second call.
Parameters
reqrequest handle returned by vlc_preparser_Push()
arrayvalid array containing new elements, should only be used within the callback. One and all elements can be held and stored on a new variable or new array.
countnumber of elements in the array
dataopaque pointer passed by vlc_preparser_Push()

Referenced by OnParserAttachmentsAdded().

◆ on_ended

void(* vlc_preparser_cbs::on_ended) (vlc_preparser_req *req, int status, void *data)

Event received when the parser ends.

Note
This callback is mandatory.
Parameters
reqrequest handle returned by vlc_preparser_Push()
statusVLC_SUCCESS in case of success, VLC_ETIMEOUT in case of timeout, -EINTR if cancelled, an error otherwise
dataopaque pointer passed by vlc_preparser_Push()

Referenced by NotifyPreparseEnded(), and vlc_preparser_Cancel().

◆ on_subtree_added

void(* vlc_preparser_cbs::on_subtree_added) (vlc_preparser_req *req, input_item_node_t *subtree, void *data)

Event received when a new subtree is added.

Note
This callback is optional.
Parameters
reqrequest handle returned by vlc_preparser_Push()
subtreesub items of the current item (the listener gets the ownership)
dataopaque pointer passed by vlc_preparser_Push()

Referenced by OnParserSubtreeAdded().


The documentation for this struct was generated from the following file: