- add getAspectRatio(); setAspectRatio(); void getMode43(); void setMode43(); to zapit. Patch by SnowHead. -> http://www.dbox2world.net/board293-coolstream-hd1/board314-coolstream-development/9240-framebuffer-blockiert/

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@519 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
striper
2010-03-20 22:04:31 +00:00
parent 662f2e7d72
commit 342aba0a72
5 changed files with 150 additions and 15 deletions

View File

@@ -1004,6 +1004,40 @@ bool CZapitClient::isRecordModeActive()
return response.activated;
}
void CZapitClient::getAspectRatio(int *ratio)
{
CZapitMessages::commandInt msg;
send(CZapitMessages::CMD_GET_ASPECTRATIO, 0, 0);
CBasicClient::receive_data((char* )&msg, sizeof(msg));
* ratio = msg.val;
close_connection();
}
void CZapitClient::setAspectRatio(int ratio)
{
CZapitMessages::commandInt msg;
msg.val = ratio;
send(CZapitMessages::CMD_SET_ASPECTRATIO, (char*)&msg, sizeof(msg));
close_connection();
}
void CZapitClient::getMode43(int *m43)
{
CZapitMessages::commandInt msg;
send(CZapitMessages::CMD_GET_MODE43, 0, 0);
CBasicClient::receive_data((char* )&msg, sizeof(msg));
* m43 = msg.val;
close_connection();
}
void CZapitClient::setMode43(int m43)
{
CZapitMessages::commandInt msg;
msg.val = m43;
send(CZapitMessages::CMD_SET_MODE43, (char*)&msg, sizeof(msg));
close_connection();
}
void CZapitClient::registerEvent(const unsigned int eventID, const unsigned int clientID, const char * const udsName)
{
CEventServer::commandRegisterEvent msg;