aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKai Sommerfeld <kai.sommerfeld@gmx.com>2015-11-21 21:51:15 +0100
committerKai Sommerfeld <kai.sommerfeld@gmx.com>2016-02-15 14:56:35 +0100
commitaac0d2c94df25a7172aadc816afba90723df9840 (patch)
treec6009cc827e6c13a40e90601415019bffdfc05a4 /lib
parentd6c8309c7365220b1894a7393c8cc0b2d3d4cfd5 (diff)
[PVR] Addon API: add connection state change callback
Diffstat (limited to 'lib')
-rw-r--r--lib/addons/library.xbmc.pvr/libXBMC_pvr.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/addons/library.xbmc.pvr/libXBMC_pvr.cpp b/lib/addons/library.xbmc.pvr/libXBMC_pvr.cpp
index b16a540a1c..8545cb7ad8 100644
--- a/lib/addons/library.xbmc.pvr/libXBMC_pvr.cpp
+++ b/lib/addons/library.xbmc.pvr/libXBMC_pvr.cpp
@@ -164,6 +164,14 @@ DLLEXPORT DemuxPacket* PVR_allocate_demux_packet(void *hdl, void* cb, int iDataS
return ((CB_PVRLib*)cb)->AllocateDemuxPacket(((AddonCB*)hdl)->addonData, iDataSize);
}
+DLLEXPORT void PVR_connection_state_change(void *hdl, void* cb, const char *strConnectionString, PVR_CONNECTION_STATE newState, const char *strMessage)
+{
+ if (cb == NULL)
+ return;
+
+ ((CB_PVRLib*)cb)->ConnectionStateChange(((AddonCB*)hdl)->addonData, strConnectionString, newState, strMessage);
+}
+
DLLEXPORT void PVR_transfer_channel_group(void *hdl, void* cb, const ADDON_HANDLE handle, const PVR_CHANNEL_GROUP *group)
{
if (cb == NULL)