mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-05 20:58:33 +02:00
- 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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user