nhttpd: add short ids for bouquests and epg

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@505 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Branch: ni/coolstream
Commit: 569c8948e0
Author: yjogol <yjogol2@online.de>
Date: 2010-03-18 (Thu, 18 Mar 2010)



------------------
This commit was generated by Migit
This commit is contained in:
yjogol
2010-03-18 18:31:19 +00:00
parent 46bccf520b
commit 8c56c85906

View File

@@ -842,9 +842,12 @@ void CControlAPI::GetBouquetCGI(CyhookHandler *hh)
CZapitChannel * channel = channels[j];
hh->printf("<channel>\n\t<number>%u</number>\n\t<id>"
PRINTF_CHANNEL_ID_TYPE_NO_LEADING_ZEROS
"</id>\n\t<name><![CDATA[%s]]></name>\n</channel>\n",
"</id>\n\t<short_id>"
PRINTF_CHANNEL_ID_TYPE_NO_LEADING_ZEROS
"</short_id>\n\t<name><![CDATA[%s]]></name>\n</channel>\n",
num + j,
channel->channel_id,
channel->channel_id&0xFFFFFFFFFFFFULL,
channel->getName().c_str());
}
hh->WriteLn("</bouquetlist>");
@@ -1012,6 +1015,9 @@ void CControlAPI::EpgCGI(CyhookHandler *hh)
hh->printf("<channel_id>"
PRINTF_CHANNEL_ID_TYPE_NO_LEADING_ZEROS
"</channel_id>\r\n", channel_id);
hh->printf("<channel_short_id>"
PRINTF_CHANNEL_ID_TYPE_NO_LEADING_ZEROS
"</channel_short_id>\r\n", channel_id&0xFFFFFFFFFFFFULL);
hh->printf("<channel_name><![CDATA[%s]]></channel_name>\r\n", NeutrinoAPI->GetServiceName(channel_id).c_str());
// max = maximal output items