Functions

search.c File Reference

Include dependency graph for search.c:

Functions

playlist_item_tplaylist_ItemGetById (playlist_t *p_playlist, int i_id)
 Search a playlist item by its playlist_item id.
playlist_item_tplaylist_ItemGetByInput (playlist_t *p_playlist, input_item_t *p_item)
 Search an item by its input_item_t The playlist have to be locked.
static void playlist_LiveSearchClean (playlist_item_t *p_root)
 Enable all items in the playlist.
static bool playlist_LiveSearchUpdateInternal (playlist_item_t *p_root, const char *psz_string, bool b_recursive)
 Enable/Disable items in the playlist according to the search argument.
int playlist_LiveSearchUpdate (playlist_t *p_playlist, playlist_item_t *p_root, const char *psz_string, bool b_recursive)
 Launch the recursive search in the playlist.

Function Documentation

static void playlist_LiveSearchClean ( playlist_item_t p_root  )  [static]

Enable all items in the playlist.

Parameters:
p_root,: the current root item

References playlist_item_t::i_children, playlist_item_t::i_flags, and playlist_item_t::pp_children.

Referenced by playlist_LiveSearchUpdate().

static bool playlist_LiveSearchUpdateInternal ( playlist_item_t p_root,
const char *  psz_string,
bool  b_recursive 
) [static]

Enable/Disable items in the playlist according to the search argument.

Parameters:
p_root,: the current root item
psz_string,: the string to search
Returns:
true if an item match

References playlist_item_t::i_children, playlist_item_t::i_flags, input_item_t::lock, playlist_item_t::p_input, input_item_t::p_meta, playlist_item_t::pp_children, input_item_t::psz_name, vlc_meta_Album, vlc_meta_Artist, vlc_meta_Get(), vlc_meta_Title, vlc_mutex_lock(), vlc_mutex_unlock(), and vlc_strcasestr().

Referenced by playlist_LiveSearchUpdate().

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines