VLC  2.1.0-git
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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.
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, input_item_t *p_input)
 Create a playlist node.
int playlist_NodeEmpty (playlist_t *p_playlist, playlist_item_t *p_root, bool b_delete_items)
 Remove all the children of a node.
int playlist_NodeDelete (playlist_t *p_playlist, playlist_item_t *p_root, bool b_delete_items, bool b_force)
 Remove all the children of a node and removes the node.
int playlist_NodeAppend (playlist_t *p_playlist, playlist_item_t *p_item, playlist_item_t *p_parent)
 Adds an item to the children of a node.
int playlist_NodeInsert (playlist_t *p_playlist, playlist_item_t *p_item, playlist_item_t *p_parent, int i_position)
int playlist_NodeRemoveItem (playlist_t *p_playlist, playlist_item_t *p_item, playlist_item_t *p_parent)
 Deletes an item from the children of a node.
playlist_item_tplaylist_ChildSearchName (playlist_item_t *p_node, const char *psz_search)
 Search a child of a node by its name.
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.
playlist_item_tplaylist_GetPrevLeaf (playlist_t *p_playlist, playlist_item_t *p_root, playlist_item_t *p_item, bool b_ena, bool b_unplayed)
 Finds the previous item to play.

Function Documentation

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().

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