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

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.
 
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.
 
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.
 
void(* on_preparse_end )(vlc_media_tree_t *tree, input_item_node_t *node, int status, void *userdata)
 Called when the preparsing of a node is complete.
 

Detailed Description

Callbacks to receive media tree events.

Field Documentation

◆ on_children_added

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.

Parameters
playlistthe playlist
nodethe node having children added
childrenthe children added
countthe number of children added
userdatauserdata provided to AddListener()

◆ on_children_removed

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.

Parameters
playlistthe playlist
nodethe node having children removed
childrenthe children removed
countthe number of children removed
userdatauserdata provided to AddListener()

◆ on_children_reset

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.

Parameters
playlistthe playlist
nodethe node having its children reset (may be root)
userdatauserdata provided to AddListener()

Referenced by test_media_tree_callbacks(), and test_media_tree_callbacks_on_add_listener().

◆ on_preparse_end

void(* vlc_media_tree_callbacks::on_preparse_end) (vlc_media_tree_t *tree, input_item_node_t *node, int status, void *userdata)

Called when the preparsing of a node is complete.

Parameters
treethe media tree
nodethe node being parsed
statusthe reason for the preparsing termination
userdatauserdata provided to AddListener()

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