VLC  2.1.0-git
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
epg.c File Reference
Include dependency graph for epg.c:

Functions

void vlc_epg_Init (vlc_epg_t *p_epg, const char *psz_name)
 It initializes a vlc_epg_t.
void vlc_epg_Clean (vlc_epg_t *p_epg)
 It releases all resources associated to a vlc_epg_t.
void vlc_epg_AddEvent (vlc_epg_t *p_epg, int64_t i_start, int i_duration, const char *psz_name, const char *psz_short_description, const char *psz_description)
 It creates and appends a new vlc_epg_event_t to a vlc_epg_t.
vlc_epg_tvlc_epg_New (const char *psz_name)
 It creates a new vlc_epg_t*.
void vlc_epg_Delete (vlc_epg_t *p_epg)
 It releases a vlc_epg_t*.
void vlc_epg_SetCurrent (vlc_epg_t *p_epg, int64_t i_start)
 It set the current event of a vlc_epg_t given a start time.
void vlc_epg_Merge (vlc_epg_t *p_dst, const vlc_epg_t *p_src)
 It merges all the event of p_src and p_dst into p_dst.

Function Documentation

void vlc_epg_AddEvent ( vlc_epg_t p_epg,
int64_t  i_start,
int  i_duration,
const char *  psz_name,
const char *  psz_short_description,
const char *  psz_description 
)
void vlc_epg_Clean ( vlc_epg_t p_epg)
void vlc_epg_Delete ( vlc_epg_t p_epg)

It releases a vlc_epg_t*.

References vlc_epg_Clean().

Referenced by CmdCleanControl(), input_item_Release(), OSDEpgDestroy(), and vout_OSDEpg().

void vlc_epg_Init ( vlc_epg_t p_epg,
const char *  psz_name 
)

It initializes a vlc_epg_t.

You must call vlc_epg_Clean to release the associated resource.

References vlc_epg_t::i_event, vlc_epg_t::p_current, vlc_epg_t::pp_event, vlc_epg_t::psz_name, strdup(), and TAB_INIT.

Referenced by vlc_epg_New().

void vlc_epg_Merge ( vlc_epg_t p_dst,
const vlc_epg_t p_src 
)
vlc_epg_t* vlc_epg_New ( const char *  psz_name)

It creates a new vlc_epg_t*.

You must call vlc_epg_Delete to release the associated resource.

References vlc_epg_Init().

Referenced by CmdInitControl(), input_item_SetEpg(), and vout_OSDEpg().

void vlc_epg_SetCurrent ( vlc_epg_t p_epg,
int64_t  i_start 
)

It set the current event of a vlc_epg_t given a start time.

References vlc_epg_t::i_event, vlc_epg_event_t::i_start, vlc_epg_t::p_current, and vlc_epg_t::pp_event.

Referenced by CmdInitControl(), input_item_SetEpgOffline(), and vlc_epg_Merge().