From 099ff6536eec4fa5eaca39ef918812d3ce2487a5 Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Tue, 9 Oct 2012 21:07:35 +0200 Subject: [pvr] added TriggerEpgUpdate to the PVR interface, so an add-on can force an EPG update for a channel --- addons/library.xbmc.pvr/libXBMC_pvr.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'addons/library.xbmc.pvr') 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 -- cgit v1.2.3