Skip to content
Permalink
Browse files

bump protocol to 10, fixes for search timers

  • Loading branch information...
FernetMenta committed Dec 23, 2016
1 parent 1393420 commit cdd44e43276be807d0ad39b13ca2c9208f312b3f
Showing with 17 additions and 1 deletion.
  1. +16 −0 src/VNSIData.cpp
  2. +1 −1 src/vnsicommand.h
@@ -398,6 +398,11 @@ PVR_ERROR cVNSIData::GetTimerInfo(unsigned int timernumber, PVR_TIMER &tag)
strncpy(tag.strEpgSearchString, epgSearch, sizeof(tag.strEpgSearchString) - 1);
}

if (GetProtocol() >= 10)
{
tag.iParentClientIndex = vresp->extract_U32();
}

return PVR_ERROR_NO_ERROR;
}

@@ -455,6 +460,11 @@ bool cVNSIData::GetTimersList(ADDON_HANDLE handle)
strncpy(tag.strEpgSearchString, epgSearch, sizeof(tag.strEpgSearchString) - 1);
}

if (GetProtocol() >= 10)
{
tag.iParentClientIndex = vresp->extract_U32();
}

if (tag.startTime == 0)
tag.bStartAnyTime = true;
if (tag.endTime == 0)
@@ -548,6 +558,12 @@ PVR_ERROR cVNSIData::AddTimer(const PVR_TIMER &timerinfo)
vrp.add_String(timerinfo.strEpgSearchString);
}

if (GetProtocol() >= 10)
{
vrp.add_U32(timerinfo.iMarginStart*60);
vrp.add_U32(timerinfo.iMarginEnd*60);
}

auto vresp = ReadResult(&vrp);
if (vresp == NULL || vresp->noResponse())
{
@@ -23,7 +23,7 @@
#define VNSI_COMMAND_H

/** Current VNSI Protocol Version number */
#define VNSI_PROTOCOLVERSION 9
#define VNSI_PROTOCOLVERSION 10

/** Start of RDS support protocol Version */
#define VNSI_RDS_PROTOCOLVERSION 8

0 comments on commit cdd44e4

Please sign in to comment.
You can’t perform that action at this time.