Commit 3572ef06 authored by Ludovic Fauvet's avatar Ludovic Fauvet

playback service: add a getter for the current context

parent 75f78713
......@@ -472,6 +472,12 @@ playback_service_set_context(playback_service *p_ps, enum PLAYLIST_CONTEXT i_ctx
return 0;
}
enum PLAYLIST_CONTEXT
playback_service_get_context(playback_service *p_ps)
{
return p_ps->i_ctx;
}
playback_service_cbs_id *
playback_service_register_callbacks(playback_service *p_ps, playback_service_callbacks *p_cbs)
{
......
......@@ -65,6 +65,9 @@ playback_service_restart_emotion(playback_service *p_ps, bool immediate);
int
playback_service_set_context(playback_service *p_ps, enum PLAYLIST_CONTEXT i_ctx);
enum PLAYLIST_CONTEXT
playback_service_get_context(playback_service *p_ps);
playback_service_cbs_id *
playback_service_register_callbacks(playback_service *p_ps, playback_service_callbacks *p_cbs);
......
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