diff options
author | Lars Op den Kamp <lars@opdenkamp.eu> | 2012-10-09 21:07:35 +0200 |
---|---|---|
committer | Lars Op den Kamp <lars@opdenkamp.eu> | 2012-10-09 22:29:14 +0200 |
commit | 099ff6536eec4fa5eaca39ef918812d3ce2487a5 (patch) | |
tree | 14d215aa0f96460757ff7ede0e9bde017c9a218a /addons/library.xbmc.pvr | |
parent | ef1d99651f65dcd693db896331d8b71e73002671 (diff) |
[pvr] added TriggerEpgUpdate to the PVR interface, so an add-on can force an EPG update for a channel
Diffstat (limited to 'addons/library.xbmc.pvr')
-rw-r--r-- | addons/library.xbmc.pvr/libXBMC_pvr.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/addons/library.xbmc.pvr/libXBMC_pvr.h b/addons/library.xbmc.pvr/libXBMC_pvr.h index 8b8e7d3c6f..868328feb0 100644 --- a/addons/library.xbmc.pvr/libXBMC_pvr.h +++ b/addons/library.xbmc.pvr/libXBMC_pvr.h @@ -117,6 +117,10 @@ public: dlsym(m_libXBMC_pvr, "PVR_trigger_channel_groups_update"); if (PVR_trigger_channel_groups_update == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } + PVR_trigger_epg_update = (void (*)(void* HANDLE, void* CB, unsigned int iChannelUid)) + dlsym(m_libXBMC_pvr, "PVR_trigger_epg_update"); + if (PVR_trigger_epg_update == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } + PVR_transfer_channel_group = (void (*)(void* HANDLE, void* CB, const ADDON_HANDLE handle, const PVR_CHANNEL_GROUP *group)) dlsym(m_libXBMC_pvr, "PVR_transfer_channel_group"); if (PVR_transfer_channel_group == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } @@ -184,6 +188,11 @@ public: return PVR_trigger_channel_update(m_Handle, m_Callbacks); } + void TriggerEpgUpdate(unsigned int iChannelUid) + { + return PVR_trigger_epg_update(m_Handle, m_Callbacks, iChannelUid); + } + void TriggerChannelGroupsUpdate() { return PVR_trigger_channel_groups_update(m_Handle, m_Callbacks); @@ -224,6 +233,7 @@ protected: void (*PVR_trigger_channel_groups_update)(void* HANDLE, void* CB); void (*PVR_trigger_timer_update)(void* HANDLE, void* CB); void (*PVR_trigger_recording_update)(void* HANDLE, void* CB); + void (*PVR_trigger_epg_update)(void* HANDLE, void* CB, unsigned int iChannelUid); void (*PVR_transfer_channel_group)(void* HANDLE, void* CB, const ADDON_HANDLE handle, const PVR_CHANNEL_GROUP *group); void (*PVR_transfer_channel_group_member)(void* HANDLE, void* CB, const ADDON_HANDLE handle, const PVR_CHANNEL_GROUP_MEMBER *member); #ifdef USE_DEMUX |