VLC  3.0.15
Functions
tree.c File Reference
Include dependency graph for tree.c:

Functions

playlist_item_tGetNextUncle (playlist_t *p_playlist, playlist_item_t *p_item, playlist_item_t *p_root)
 
playlist_item_tGetPrevUncle (playlist_t *p_playlist, playlist_item_t *p_item, playlist_item_t *p_root)
 
playlist_item_tGetNextItem (playlist_t *p_playlist, playlist_item_t *p_root, playlist_item_t *p_item)
 Get the next item in the tree If p_item is NULL, return the first child of root. More...
 
playlist_item_tGetPrevItem (playlist_t *p_playlist, playlist_item_t *p_item, playlist_item_t *p_root)
 
playlist_item_tplaylist_NodeCreate (playlist_t *p_playlist, const char *psz_name, playlist_item_t *p_parent, int i_pos, int i_flags)
 Create a playlist node. More...
 
void playlist_NodeDelete (playlist_t *p_playlist, playlist_item_t *p_root)
 Remove all the children of a node and removes the node. More...
 
void playlist_NodeDeleteExplicit (playlist_t *p_playlist, playlist_item_t *p_root, int flags)
 Delete a node with explicit semantics. More...
 
int playlist_NodeInsert (playlist_item_t *p_parent, playlist_item_t *p_item, int i_position)
 
playlist_item_tplaylist_ChildSearchName (playlist_item_t *p_node, const char *psz_search)
 Search a child of a node by its name. More...
 
playlist_item_tplaylist_GetNextLeaf (playlist_t *p_playlist, playlist_item_t *p_root, playlist_item_t *p_item, bool b_ena, bool b_unplayed)
 Finds the next item to play. More...
 

Function Documentation

◆ GetNextItem()

playlist_item_t * GetNextItem ( playlist_t p_playlist,
playlist_item_t p_root,
playlist_item_t p_item 
)

Get the next item in the tree If p_item is NULL, return the first child of root.

References GetNextUncle(), playlist_item_t::i_children, playlist_item_t::p_input, playlist_item_t::p_parent, PL_DEBUG2, playlist_item_t::pp_children, and input_item_t::psz_name.

Referenced by playlist_GetNextLeaf().

◆ GetNextUncle()

playlist_item_t * GetNextUncle ( playlist_t p_playlist,
playlist_item_t p_item,
playlist_item_t p_root 
)

Referenced by GetNextItem().

◆ GetPrevItem()

playlist_item_t * GetPrevItem ( playlist_t p_playlist,
playlist_item_t p_item,
playlist_item_t p_root 
)

◆ GetPrevUncle()

playlist_item_t * GetPrevUncle ( playlist_t p_playlist,
playlist_item_t p_item,
playlist_item_t p_root 
)