Commit 2b41d96f authored by Thomas Guillem's avatar Thomas Guillem

playback_service: return an id from playback_service_register_callbacks

parent e01d3963
......@@ -272,7 +272,7 @@ playback_service_set_context(playback_service *p_ps, enum PLAYLIST_CONTEXT i_ctx
return 0;
}
void *
playback_service_cbs_id *
playback_service_register_callbacks(playback_service *p_ps, playback_service_callbacks *p_cbs)
{
Eina_List *p_el;
......@@ -289,11 +289,11 @@ playback_service_register_callbacks(playback_service *p_ps, playback_service_cal
return NULL;
}
p_ps->p_cbs_list = p_el;
return p_cbs_dup;
return (playback_service_cbs_id *) p_cbs_dup;
}
void
playback_service_unregister_callbacks(playback_service *p_ps, void *p_id)
playback_service_unregister_callbacks(playback_service *p_ps, playback_service_cbs_id *p_id)
{
p_ps->p_cbs_list = eina_list_remove(p_ps->p_cbs_list, p_id);
free(p_id);
......
......@@ -34,6 +34,7 @@ enum PLAYLIST_CONTEXT {
PLAYLIST_CONTEXT_OTHERS,
};
typedef struct playback_service_cbs_id playback_service_cbs_id;
typedef struct playback_service_callbacks playback_service_callbacks;
struct playback_service_callbacks
{
......@@ -57,11 +58,11 @@ playback_service_destroy(playback_service *p_ps);
int
playback_service_set_context(playback_service *p_ps, enum PLAYLIST_CONTEXT i_ctx);
void *
playback_service_cbs_id *
playback_service_register_callbacks(playback_service *p_ps, playback_service_callbacks *p_cbs);
void
playback_service_unregister_callbacks(playback_service *p_ps, void *p_id);
playback_service_unregister_callbacks(playback_service *p_ps, playback_service_cbs_id *p_id);
Evas_Object *
playback_service_set_evas_video(playback_service *p_ps, Evas *p_evas);
......
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