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

input item parser callbacks More...

#include <vlc_input_item.h>

Data Fields

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

Detailed Description

input item parser callbacks

Field Documentation

◆ on_attachments_added

void(* input_item_parser_cbs_t::on_attachments_added) (input_item_t *item, input_attachment_t *const *array, size_t count, void *userdata)

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
itemthe parsed item
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
userdatauser data set by input_item_Parse()

Referenced by input_item_parser_InputEvent().

◆ on_ended

void(* input_item_parser_cbs_t::on_ended) (input_item_t *item, int status, void *userdata)

Event received when the parser ends.

Note
This callback is mandatory.
Parameters
itemthe parsed item
statusVLC_SUCCESS in case of success, an error otherwise
userdatauser data set by input_item_Parse()

Referenced by input_item_Parse(), and input_item_parser_InputEvent().

◆ on_subtree_added

void(* input_item_parser_cbs_t::on_subtree_added) (input_item_t *item, input_item_node_t *subtree, void *userdata)

Event received when a new subtree is added.

Note
This callback is optional.
Parameters
itemthe parsed item
subtreesub items of the current item
userdatauser data set by input_item_Parse()

Referenced by input_item_parser_InputEvent().


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