Commit 1ceeb3be authored by Steve Lhomme's avatar Steve Lhomme Committed by Rémi Denis-Courmont

input:event: pass the ES category as enum es_format_category_e rather than int

Signed-off-by: Rémi Denis-Courmont's avatarRémi Denis-Courmont <remi@remlab.net>
parent 8d15a130
......@@ -228,7 +228,7 @@ void input_SendEventProgramScrambled( input_thread_t *p_input, int i_group, bool
Trigger( p_input, INPUT_EVENT_PROGRAM );
}
static const char *GetEsVarName( int i_cat )
static const char *GetEsVarName( enum es_format_category_e i_cat )
{
switch( i_cat )
{
......@@ -242,20 +242,20 @@ static const char *GetEsVarName( int i_cat )
return NULL;
}
}
void input_SendEventEsAdd( input_thread_t *p_input, int i_cat, int i_id, const char *psz_text )
void input_SendEventEsAdd( input_thread_t *p_input, enum es_format_category_e i_cat, int i_id, const char *psz_text )
{
const char *psz_varname = GetEsVarName( i_cat );
if( psz_varname )
VarListAdd( p_input, psz_varname, INPUT_EVENT_ES, i_id, psz_text );
}
void input_SendEventEsDel( input_thread_t *p_input, int i_cat, int i_id )
void input_SendEventEsDel( input_thread_t *p_input, enum es_format_category_e i_cat, int i_id )
{
const char *psz_varname = GetEsVarName( i_cat );
if( psz_varname )
VarListDel( p_input, psz_varname, INPUT_EVENT_ES, i_id );
}
/* i_id == -1 will unselect */
void input_SendEventEsSelect( input_thread_t *p_input, int i_cat, int i_id )
void input_SendEventEsSelect( input_thread_t *p_input, enum es_format_category_e i_cat, int i_id )
{
const char *psz_varname = GetEsVarName( i_cat );
if( psz_varname )
......
......@@ -57,9 +57,9 @@ void input_SendEventProgramDel( input_thread_t *p_input, int i_program );
void input_SendEventProgramSelect( input_thread_t *p_input, int i_program );
void input_SendEventProgramScrambled( input_thread_t *p_input, int i_group, bool b_scrambled );
void input_SendEventEsDel( input_thread_t *p_input, int i_cat, int i_id );
void input_SendEventEsAdd( input_thread_t *p_input, int i_cat, int i_id, const char *psz_text );
void input_SendEventEsSelect( input_thread_t *p_input, int i_cat, int i_id ); /* i_id == -1 will unselect */
void input_SendEventEsDel( input_thread_t *p_input, enum es_format_category_e i_cat, int i_id );
void input_SendEventEsAdd( input_thread_t *p_input, enum es_format_category_e i_cat, int i_id, const char *psz_text );
void input_SendEventEsSelect( input_thread_t *p_input, enum es_format_category_e i_cat, int i_id ); /* i_id == -1 will unselect */
void input_SendEventTeletextAdd( input_thread_t *p_input,
int i_teletext, const char *psz_text );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment