VLC  2.1.0-git
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
playlist_internal.h File Reference

This file contain internal structures and function prototypes related to the playlist in vlc. More...

Include dependency graph for playlist_internal.h:

Go to the source code of this file.

Data Structures

struct  playlist_private_t

Macros

#define pl_priv(pl)   ((playlist_private_t *)(pl))
#define PLAYLIST_DEBUG   1
#define PL_DEBUG(...)   msg_Dbg( p_playlist, __VA_ARGS__ )
#define PL_DEBUG2(msg,...)   {}
#define PLI_NAME(p)   p && p->p_input ? p->p_input->psz_name : "null"
#define PL_LOCK_IF(cond)   pl_lock_if( p_playlist, cond )
#define PL_UNLOCK_IF(cond)   pl_unlock_if( p_playlist, cond )

Typedefs

typedef struct vlc_sd_internal_t vlc_sd_internal_t
typedef struct playlist_private_t playlist_private_t

Functions

void playlist_Destroy (playlist_t *)
 Destroy playlist.
void playlist_Activate (playlist_t *)
 Creates the main playlist thread.
playlist_item_tplaylist_ItemNewFromInput (playlist_t *p_playlist, input_item_t *p_input)
playlist_item_tget_current_status_item (playlist_t *p_playlist)
 Accessor for status item and status nodes.
playlist_item_tget_current_status_node (playlist_t *p_playlist)
void set_current_status_item (playlist_t *, playlist_item_t *)
void set_current_status_node (playlist_t *, playlist_item_t *)
int playlist_MLLoad (playlist_t *p_playlist)
int playlist_MLDump (playlist_t *p_playlist)
void playlist_SendAddNotify (playlist_t *p_playlist, int i_item_id, int i_node_id, bool b_signal)
 Send a notification that an item has been added to a node.
playlist_item_tplaylist_NodeAddInput (playlist_t *, input_item_t *, playlist_item_t *, int, int, bool)
 Add an input item to a given node.
int playlist_InsertInputItemTree (playlist_t *, playlist_item_t *, input_item_node_t *, int, bool)
 Insert a tree of input items into a given playlist node.
playlist_item_tplaylist_ItemFindFromInputAndRoot (playlist_t *p_playlist, input_item_t *p_input, playlist_item_t *p_root, bool)
 Find an item within a root, given its input id.
int playlist_DeleteFromInputInParent (playlist_t *, input_item_t *, playlist_item_t *, bool)
 Delete input item.
int playlist_DeleteFromItemId (playlist_t *, int)
 Delete playlist item.
int playlist_ItemRelease (playlist_item_t *)
 Release an item.
int playlist_NodeEmpty (playlist_t *, playlist_item_t *, bool)
 Remove all the children of a node.
int playlist_DeleteItem (playlist_t *p_playlist, playlist_item_t *, bool)
void ResetCurrentlyPlaying (playlist_t *p_playlist, playlist_item_t *p_cur)
 Reset the currently playing playlist.
void ResyncCurrentIndex (playlist_t *p_playlist, playlist_item_t *p_cur)
 Synchronise the current index of the playlist to match the index of the current item.
static void pl_lock_if (playlist_t *p_playlist, bool cond)
static void pl_unlock_if (playlist_t *p_playlist, bool cond)

Detailed Description

This file contain internal structures and function prototypes related to the playlist in vlc.

Macro Definition Documentation

#define PL_DEBUG (   ...)    msg_Dbg( p_playlist, __VA_ARGS__ )
#define PL_DEBUG2 (   msg,
  ... 
)    {}
#define PL_LOCK_IF (   cond)    pl_lock_if( p_playlist, cond )
#define PL_UNLOCK_IF (   cond)    pl_unlock_if( p_playlist, cond )
#define PLAYLIST_DEBUG   1
#define PLI_NAME (   p)    p && p->p_input ? p->p_input->psz_name : "null"

Function Documentation

static void pl_lock_if ( playlist_t p_playlist,
bool  cond 
)
inlinestatic

References PL_ASSERT_LOCKED, and PL_LOCK.

static void pl_unlock_if ( playlist_t p_playlist,
bool  cond 
)
inlinestatic

References PL_UNLOCK.