VLC 4.0.0-dev
|
Callbacks to receive media tree events. More...
#include <vlc_media_source.h>
Data Fields | |
void(* | on_children_reset )(vlc_media_tree_t *tree, input_item_node_t *node, void *userdata) |
Called when the whole content of a subtree has changed. More... | |
void(* | on_children_added )(vlc_media_tree_t *tree, input_item_node_t *node, input_item_node_t *const children[], size_t count, void *userdata) |
Called when children has been added to a node. More... | |
void(* | on_children_removed )(vlc_media_tree_t *tree, input_item_node_t *node, input_item_node_t *const children[], size_t count, void *userdata) |
Called when children has been removed from a node. More... | |
void(* | on_preparse_end )(vlc_media_tree_t *tree, input_item_node_t *node, enum input_item_preparse_status status, void *userdata) |
Called when the preparsing of a node is complete. More... | |
Callbacks to receive media tree events.
void(* vlc_media_tree_callbacks::on_children_added) (vlc_media_tree_t *tree, input_item_node_t *node, input_item_node_t *const children[], size_t count, void *userdata) |
Called when children has been added to a node.
The children may themselves contain children, which will not be notified separately.
playlist | the playlist |
node | the node having children added |
children | the children added |
count | the number of children added |
userdata | userdata provided to AddListener() |
void(* vlc_media_tree_callbacks::on_children_removed) (vlc_media_tree_t *tree, input_item_node_t *node, input_item_node_t *const children[], size_t count, void *userdata) |
Called when children has been removed from a node.
playlist | the playlist |
node | the node having children removed |
children | the children removed |
count | the number of children removed |
userdata | userdata provided to AddListener() |
void(* vlc_media_tree_callbacks::on_children_reset) (vlc_media_tree_t *tree, input_item_node_t *node, void *userdata) |
Called when the whole content of a subtree has changed.
playlist | the playlist |
node | the node having its children reset (may be root) |
userdata | userdata provided to AddListener() |
Referenced by test_media_tree_callbacks(), and test_media_tree_callbacks_on_add_listener().
void(* vlc_media_tree_callbacks::on_preparse_end) (vlc_media_tree_t *tree, input_item_node_t *node, enum input_item_preparse_status status, void *userdata) |
Called when the preparsing of a node is complete.
tree | the media tree |
node | the node being parsed |
status | the reason for the preparsing termination |
userdata | userdata provided to AddListener() |