RDK Documentation (Open Sourced RDK Components)
hostIf_dsClient_ReqHandler.cpp
Go to the documentation of this file.
1 /*
2  * If not stated otherwise in this file or this component's Licenses.txt file the
3  * following copyright and licenses apply:
4  *
5  * Copyright 2016 RDK Management
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18 */
19 
20 /**
21  * @file hostIf_dsClient_ReqHandler.cpp
22  * @brief The header file provides HostIf ds client request handler information APIs.
23  */
24 
25 /**
26 * @defgroup tr69hostif
27 * @{
28 * @defgroup hostif
29 * @{
30 **/
31 
32 
33 #include "hostIf_main.h"
35 
36 #ifdef USE_XRDK_SDCARD_PROFILE
37 #include "Components_XrdkSDCard.h"
38 #endif
39 #ifdef USE_XRDK_EMMC_PROFILE
40 #include "Components_XrdkEMMC.h"
41 #endif
42 
43 #include "Capabilities.h"
44 #include "Components_AudioOutput.h"
45 #include "Components_SPDIF.h"
46 #include "Components_HDMI.h"
47 #include "Components_VideoOutput.h"
49 #include "hostIf_utils.h"
50 #include "host.hpp"
51 #include "manager.hpp"
52 #include "dsError.h"
53 #include "libIBus.h"
54 
55 #ifdef USE_XRDK_RF4CE_PROFILE
56 #include "Components_XrdkRf4ce.h"
57 #endif
58 #define CAPABILTIES_OBJ "Device.Services.STBService.1.Capabilities."
59 
60 DSClientReqHandler* DSClientReqHandler::pInstance = NULL;
61 
62 updateCallback DSClientReqHandler::mUpdateCallback = NULL;
63 
64 msgHandler* DSClientReqHandler::getInstance()
65 {
66 
67  if(!pInstance)
68  pInstance = new DSClientReqHandler();
69  return pInstance;
70 }
71 
72 /**
73  * @brief This function is used to initialize the device manager.
74  *
75  * @return Returns the status of the operation.
76  *
77  * @retval true if initialization is successful.
78  * @retval false if initialization is not successful.
79  * @ingroup TR-069HOSTIF_DSCLIENT_REQHANDLER_CLASSES
80  */
82 {
83  RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,"[%s:%s] Entering..\n", __FUNCTION__, __FILE__);
84  RDK_LOG(RDK_LOG_DEBUG,LOG_TR69HOSTIF,"[%s()] Device manager Initializing\n", __FUNCTION__);
85  try
86  {
88  }
89  catch(const std::exception e)
90  {
91  RDK_LOG(RDK_LOG_ERROR,LOG_TR69HOSTIF,"Exception thrown while initializing device manager %s\n", e.what());
92  }
93  RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,"[%s:%s] Exiting..\n", __FUNCTION__, __FILE__);
94  return true;
95 }
96 
97 /**
98  * @brief This function is used to close all the instances of STB services such as
99  * HDMI, VideoOutput, VideoDecoder, AudioInterface and SPDIF. It also deinitialize the
100  * device manager.
101  *
102  * @return Returns the status of the operation.
103  *
104  * @retval true if it successfully close all the instances.
105  * @retval false if not able to close all the instances.
106  * @ingroup TR-069HOSTIF_DSCLIENT_REQHANDLER_CLASSES
107  */
109 {
110  RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,"[%s:%s] Entering..\n", __FUNCTION__, __FILE__);
111  RDK_LOG(RDK_LOG_DEBUG,LOG_TR69HOSTIF,"[%s()] Device manager DeInitializing\n", __FUNCTION__);
112  hostIf_STBServiceHDMI::closeAllInstances();
113  hostIf_STBServiceVideoOutput::closeAllInstances();
114  hostIf_STBServiceVideoDecoder::closeAllInstances();
115  hostIf_STBServiceAudioInterface::closeAllInstances();
116  hostIf_STBServiceSPDIF::closeAllInstances();
118  RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,"[%s:%s] Exiting..\n", __FUNCTION__, __FILE__);
119  return true;
120 }
121 
122 /**
123  * @brief This function is used to handle the set message request of DsClient i.c STBService such as
124  * "HDMI", "VideoDecoder", "AudioOutput" and "SPDIF".
125  *
126  * @param[out] stMsgData TR-069 Host interface message request.
127  *
128  * @return Returns the status of the operation.
129  *
130  * @retval OK if successful.
131  * @retval ERR_INTERNAL_ERROR if not able to set the data to the device.
132  * @ingroup TR-069HOSTIF_DSCLIENT_REQHANDLER_CLASSES
133  */
135 {
136  int ret = NOT_HANDLED;
137 
138  const char *pSetting;
139  int instanceNumber;
140  hostIf_STBServiceHDMI::getLock();
141  RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,"[%s:%s:%d] Found string as %s\n", __FUNCTION__, __FILE__, __LINE__, stMsgData->paramName);
142  if(matchComponent(stMsgData->paramName,"Device.Services.STBService.1.Components.HDMI",&pSetting,instanceNumber))
143  {
145  if(!pIface)
146  {
147  hostIf_STBServiceHDMI::releaseLock();
148  return NOK;
149  }
150  stMsgData->instanceNum = instanceNumber;
151  ret = pIface->handleSetMsg(pSetting, stMsgData);
152 
153  }
154  else if(matchComponent(stMsgData->paramName,
155  "Device.Services.STBService.1.Components.VideoDecoder",&pSetting,instanceNumber))
156  {
157  hostIf_STBServiceVideoDecoder *pIface = hostIf_STBServiceVideoDecoder::getInstance(instanceNumber);
158  if(!pIface)
159  {
160  hostIf_STBServiceHDMI::releaseLock();
161  return NOK;
162  }
163  stMsgData->instanceNum = instanceNumber;
164  ret = pIface->handleSetMsg(pSetting, stMsgData);
165  }
166  else if(matchComponent(stMsgData->paramName,
167  "Device.Services.STBService.1.Components.AudioOutput",&pSetting,instanceNumber))
168  {
169  hostIf_STBServiceAudioInterface *pIfaceAudio = hostIf_STBServiceAudioInterface::getInstance(instanceNumber);
170  if(!pIfaceAudio)
171  {
172  hostIf_STBServiceHDMI::releaseLock();
173  return NOK;
174  }
175  stMsgData->instanceNum = instanceNumber;
176  ret = pIfaceAudio->handleSetMsg(pSetting, stMsgData);
177 
178  }
179  else if(matchComponent(stMsgData->paramName,
180  "Device.Services.STBService.1.Components.SPDIF",&pSetting,instanceNumber))
181  {
182  hostIf_STBServiceSPDIF *pIfaceSpdif = hostIf_STBServiceSPDIF::getInstance(instanceNumber);
183  if(!pIfaceSpdif)
184  {
185  hostIf_STBServiceHDMI::releaseLock();
186  return NOK;
187  }
188  stMsgData->instanceNum = instanceNumber;
189  ret = pIfaceSpdif->handleSetMsg(pSetting, stMsgData);
190  }
191  else
192  {
193  ret = NOK;
194  stMsgData->faultCode = fcAttemptToSetaNonWritableParameter;
195  RDK_LOG(RDK_LOG_ERROR,LOG_TR69HOSTIF,"[%s] Failed, since Attempt To Set a NonWritable Parameter \"%s\"\n", __FUNCTION__, stMsgData->paramName);
196  }
197  hostIf_STBServiceHDMI::releaseLock();
198  return ret;
199 }
200 
201 /**
202  * @brief This function is used to handle the get message request of DsClient i.e STBServices
203  * components and the total number of active entries of "VideoDecode", "AudioOutput",
204  * "VideoOutput", "HDMI", "SPDIF".
205  *
206  * @param[out] stMsgData TR-069 Host interface message request.
207  *
208  * @return Returns the status of the operation.
209  *
210  * @retval OK if it is gets the data successfully.
211  * @retval ERR_INTERNAL_ERROR if not able to get the data from the device.
212  * @ingroup TR-069HOSTIF_DSCLIENT_REQHANDLER_CLASSES
213  */
215 {
216  int ret = NOT_HANDLED;
217  const char *paramName;
218  int index = -1;
219  hostIf_STBServiceHDMI::getLock();
220 
221 
222  RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,"[%s:%s:%d] Found string as %s\n", __FUNCTION__, __FILE__, __LINE__, stMsgData->paramName);
223  if(strncasecmp(stMsgData->paramName,
224  CAPABILTIES_OBJ, strlen(CAPABILTIES_OBJ)) == 0)
225  {
226  hostIf_STBServiceCapabilities *pIface = hostIf_STBServiceCapabilities::getInstance();
227  if(!pIface)
228  {
229  hostIf_STBServiceHDMI::releaseLock();
230  stMsgData->faultCode = fcInternalError;
231  return NOK;
232  }
233  ret = pIface->handleGetMsg(stMsgData);
234  if(OK == ret)
235  {
236  stMsgData->faultCode = fcNoFault;
237  }
238  hostIf_STBServiceCapabilities::closeInstance(pIface); //CID:80678- Resource leak
239  }
240  else if(strcasecmp(stMsgData->paramName,
241  "Device.Services.STBService.1.Enable") == 0)
242  {
243  put_int(stMsgData->paramValue,1);
244  stMsgData->paramtype = hostIf_UnsignedIntType;
245  ret = OK;
246  }
247  else if(strcasecmp(stMsgData->paramName,
248  "Device.Services.STBService.1.Components.VideoDecoderNumberOfEntries") == 0)
249  {
250  put_int(stMsgData->paramValue,1);
251  stMsgData->paramtype = hostIf_UnsignedIntType;
252  ret = OK;
253  }
254  else if(strcasecmp(stMsgData->paramName,
255  "Device.Services.STBServiceNumberOfEntries") == 0)
256  {
257  put_int(stMsgData->paramValue,1);
258  stMsgData->paramtype = hostIf_UnsignedIntType;
259  ret = OK;
260  }
261  else if(strcasecmp(stMsgData->paramName,
262  "Device.Services.STBService.1.Components.AudioOutputNumberOfEntries") == 0)
263  {
264  ret = hostIf_STBServiceAudioInterface::getNumberOfInstances(stMsgData);
265  }
266  else if(strcasecmp(stMsgData->paramName,
267  "Device.Services.STBService.1.Components.VideoOutputNumberOfEntries") == 0)
268  {
269  put_int(stMsgData->paramValue,1);
270  stMsgData->paramtype = hostIf_UnsignedIntType;
271  ret = OK;
272  }
273  else if(strcasecmp(stMsgData->paramName,
274  "Device.Services.STBService.1.Components.HDMINumberOfEntries") == 0)
275  {
276  put_int(stMsgData->paramValue,1);
277  stMsgData->paramtype = hostIf_UnsignedIntType;
278  ret = OK;
279  }
280  else if(strcasecmp(stMsgData->paramName,
281  "Device.Services.STBService.1.Components.SPDIFNumberOfEntries") == 0)
282  {
283  ret = hostIf_STBServiceSPDIF::getNumberOfInstances(stMsgData);
284  }
285  else if(matchComponent(stMsgData->paramName,
286  "Device.Services.STBService.1.Components.HDMI",&paramName,index))
287  {
288  RDK_LOG(RDK_LOG_DEBUG,LOG_TR69HOSTIF,"[%s:%s:%d] pSetting :[%s] instanceNumber: [%d]\n", __FILE__, __FUNCTION__, __LINE__, paramName,index);
290  if(!pIface)
291  {
292  hostIf_STBServiceHDMI::releaseLock();
293  return NOK;
294  }
295  stMsgData->instanceNum = index;
296  ret = pIface->handleGetMsg(paramName, stMsgData);
297 
298  }
299  else if(matchComponent(stMsgData->paramName,
300  "Device.Services.STBService.1.Components.VideoDecoder",
301  &paramName,index))
302  {
303  RDK_LOG(RDK_LOG_DEBUG,LOG_TR69HOSTIF,"[%s%s:%d] pSetting :[%s] instanceNumber: [%d]\n", __FILE__, __FUNCTION__, __LINE__, paramName,index);
304  hostIf_STBServiceVideoDecoder *pIface = hostIf_STBServiceVideoDecoder::getInstance(index);
305  if(!pIface)
306  {
307  hostIf_STBServiceHDMI::releaseLock();
308  return NOK;
309  }
310  stMsgData->instanceNum = index;
311  ret = pIface->handleGetMsg(paramName, stMsgData);
312  }
313  else if (matchComponent(stMsgData->paramName,
314  "Device.Services.STBService.1.Components.AudioOutput",
315  &paramName,index))
316  {
317  RDK_LOG(RDK_LOG_DEBUG,LOG_TR69HOSTIF,"[%s%s:%d] pSetting :[%s] instanceNumber: [%d]\n", __FILE__, __FUNCTION__, __LINE__, paramName,index);
318  hostIf_STBServiceAudioInterface *pIfaceAudio = hostIf_STBServiceAudioInterface::getInstance(index);
319  if(!pIfaceAudio)
320  {
321  hostIf_STBServiceHDMI::releaseLock();
322  return NOK;
323  }
324  stMsgData->instanceNum = index;
325  ret = pIfaceAudio->handleGetMsg(paramName, stMsgData);
326 
327  }
328  else if (matchComponent(stMsgData->paramName,"Device.Services.STBService.1.Components.SPDIF",
329  &paramName,index))
330  {
331  hostIf_STBServiceSPDIF *pIfaceSpdif = hostIf_STBServiceSPDIF::getInstance(index);
332  if(!pIfaceSpdif)
333  {
334  hostIf_STBServiceHDMI::releaseLock();
335  return NOK;
336  }
337  stMsgData->instanceNum = index;
338  ret = pIfaceSpdif->handleGetMsg(paramName, stMsgData);
339  }
340  else if (matchComponent(stMsgData->paramName,
341  "Device.Services.STBService.1.Components.VideoOutput",
342  &paramName,index))
343  {
344  hostIf_STBServiceVideoOutput *pIface = hostIf_STBServiceVideoOutput::getInstance(index);
345  if(!pIface)
346  {
347  hostIf_STBServiceHDMI::releaseLock();
348  return NOK;
349  }
350  RDK_LOG(RDK_LOG_DEBUG,LOG_TR69HOSTIF,"[%s%s:%d] pSetting :[%s] instanceNumber: [%d]\n", __FILE__, __FUNCTION__, __LINE__, paramName,index);
351  stMsgData->instanceNum = index;
352  ret = pIface->handleGetMsg(paramName, stMsgData);
353  }
354 
355 #ifdef USE_XRDK_SDCARD_PROFILE
356  else if(strncasecmp(stMsgData->paramName, X_SDCARD_OBJ, strlen(X_SDCARD_OBJ)) == 0)
357  {
358  RDK_LOG(RDK_LOG_DEBUG,LOG_TR69HOSTIF,"[%s:%s:%d] Parameter Name : [\'%s\'] \n", __FILE__, __FUNCTION__, __LINE__, stMsgData->paramName);
359  hostIf_STBServiceXSDCard *pIfaceSdcardif = hostIf_STBServiceXSDCard::getInstance();
360  if(!pIfaceSdcardif)
361  {
362  hostIf_STBServiceHDMI::releaseLock();
363  return NOK;
364  }
365  stMsgData->instanceNum = 0;
366  ret = pIfaceSdcardif->handleGetMsg(stMsgData);
367  }
368 #endif
369 #ifdef USE_XRDK_EMMC_PROFILE
370  else if(strncasecmp(stMsgData->paramName, X_EMMC_OBJ, strlen(X_EMMC_OBJ)) == 0)
371  {
372  RDK_LOG(RDK_LOG_DEBUG,LOG_TR69HOSTIF,"[%s:%s:%d] Parameter Name : [\'%s\'] \n", __FILE__, __FUNCTION__, __LINE__, stMsgData->paramName);
373  hostIf_STBServiceXeMMC *pIfaceEMMCif = hostIf_STBServiceXeMMC::getInstance();
374  if(!pIfaceEMMCif)
375  {
376  // TODO: why do we need to release some random HDMI lock here?
377  hostIf_STBServiceHDMI::releaseLock();
378  return NOK;
379  }
380  stMsgData->instanceNum = 0;
381  ret = pIfaceEMMCif->handleGetMsg(stMsgData);
382  }
383 #endif
384 
385 #ifdef USE_XRDK_RF4CE_PROFILE
386  else if(strncasecmp(stMsgData->paramName, X_RF4CE_REMOTE_OBJ, strlen(X_RF4CE_REMOTE_OBJ)) == 0)
387  {
388  RDK_LOG(RDK_LOG_DEBUG,LOG_TR69HOSTIF,"[%s:%s:%d] Parameter Name : [\'%s\'] \n", __FILE__, __FUNCTION__, __LINE__, stMsgData->paramName);
389  hostIf_STBServiceXrdkRf4ce *pIface = hostIf_STBServiceXrdkRf4ce::getInstance();
390  if(!pIface)
391  {
392  hostIf_STBServiceHDMI::releaseLock();
393  return NOK;
394  }
395  stMsgData->instanceNum = 0;
396  ret = pIface->handleGetMsg(stMsgData);
397  }
398 #endif /* USE_XRDK_RF4CE_PROFILE */
399  else
400  {
401  RDK_LOG(RDK_LOG_ERROR,LOG_TR69HOSTIF,"[%s%s] Failed to match STBSevice Object. Not supported \'%s\' object. \n", __FILE__, __FUNCTION__, stMsgData->paramName);
402  stMsgData->faultCode = fcInvalidParameterName;
403  ret = NOK;
404  }
405 
406 
407  hostIf_STBServiceHDMI::releaseLock();
408  return ret;
409 }
410 
411 
412 void DSClientReqHandler::registerUpdateCallback(updateCallback cb)
413 {
414  mUpdateCallback = cb;
415 }
416 
417 int DSClientReqHandler::handleGetAttributesMsg(HOSTIF_MsgData_t *stMsgData)
418 {
419  int ret = NOT_HANDLED;
420  hostIf_STBServiceHDMI::getLock();
421  // TODO: Retrieve notification value from DeviceInfo structure for given parameter
422  hostIf_STBServiceHDMI::releaseLock();
423  return ret;
424 }
425 
426 int DSClientReqHandler::handleSetAttributesMsg(HOSTIF_MsgData_t *stMsgData)
427 {
428  int ret = NOT_HANDLED;
429  hostIf_STBServiceHDMI::getLock();
430  // TODO: Set notification value from DeviceInfo structure for given parameter
431  hostIf_STBServiceHDMI::releaseLock();
432  return ret;
433 }
434 
435 
436 
437 void DSClientReqHandler::checkForUpdates()
438 {
439  HOSTIF_MsgData_t msgData;
440  bool bChanged;
441  GList *elem;
442  int index = 1;
443  char tmp_buff[TR69HOSTIFMGR_MAX_PARAM_LEN];
444  hostIf_STBServiceHDMI::getLock();
445 
446  memset(&msgData,0,sizeof(msgData));
447  memset(tmp_buff,0,TR69HOSTIFMGR_MAX_PARAM_LEN);
448 
449  GList *devList = hostIf_STBServiceHDMI::getAllInstances();
450  for(elem = devList; elem; elem = elem->next,index++)
451  {
452  hostIf_STBServiceHDMI *pIface = hostIf_STBServiceHDMI::getInstance((intptr_t)elem->data);
453  if(pIface)
454  {
455  pIface->doUpdates(mUpdateCallback);
456  }
457  }
458 
459  g_list_free(devList);
460 
461  devList = hostIf_STBServiceVideoOutput::getAllInstances();
462  for(elem = devList; elem; elem = elem->next,index++)
463  {
464  hostIf_STBServiceVideoOutput *pIface = hostIf_STBServiceVideoOutput::getInstance((intptr_t)elem->data);
465  if(pIface)
466  {
467  pIface->doUpdates(mUpdateCallback);
468  }
469  }
470 
471  g_list_free(devList);
472 
473  devList = hostIf_STBServiceVideoDecoder::getAllInstances();
474  for(elem = devList; elem; elem = elem->next,index++)
475  {
476  hostIf_STBServiceVideoDecoder *pIface = hostIf_STBServiceVideoDecoder::getInstance((intptr_t)elem->data);
477  if(pIface)
478  {
479  pIface->doUpdates(mUpdateCallback);
480  }
481  }
482 
483  g_list_free(devList);
484 
485  devList = hostIf_STBServiceAudioInterface::getAllInstances();
486 
487  for(elem = devList; elem; elem = elem->next,index++)
488  {
489  hostIf_STBServiceAudioInterface *pIfaceAudio = hostIf_STBServiceAudioInterface::getInstance((intptr_t)elem->data);
490 
491  if(pIfaceAudio)
492  {
493  pIfaceAudio->doUpdates(mUpdateCallback);
494  }
495  }
496  g_list_free(devList);
497 
498  devList = hostIf_STBServiceSPDIF::getAllInstances();
499 
500  for (elem = devList; elem; elem = elem->next, index++)
501  {
502  hostIf_STBServiceSPDIF *pIfaceSPDIF = hostIf_STBServiceSPDIF::getInstance((intptr_t)elem->data);
503  if (pIfaceSPDIF)
504  {
505  pIfaceSPDIF->doUpdates(mUpdateCallback);
506  }
507  }
508  if(devList)
509  g_list_free(devList);
510 
511  hostIf_STBServiceHDMI::releaseLock();
512 }
513 
514 
515 
516 
517 
518 
519 
520 /** @} */
521 /** @} */
hostIf_STBServiceSPDIF::doUpdates
void doUpdates(updateCallback mUpdateCallback)
This function updates the SPDIF interface updates such as Enable, Status, Alias, Name,...
Definition: Components_SPDIF.cpp:252
Components_XrdkSDCard.h
The header file provides components Xrdk SDCard information APIs.
_HostIf_MsgData_t::instanceNum
short instanceNum
Definition: hostIf_tr69ReqHandler.h:176
hostIf_STBServiceHDMI::doUpdates
void doUpdates(updateCallback mUpdateCallback)
This function updates the HDMI interface updates such as Status, Enable, ResolutionMode,...
Definition: Components_HDMI.cpp:311
Components_VideoDecoder.h
The header file provides capabilities video output information APIs.
hostIf_STBServiceAudioInterface::handleSetMsg
int handleSetMsg(const char *paramName, HOSTIF_MsgData_t *stMsgData)
This function set the audio interface such as mute status, audio encoding, audio level,...
Definition: Components_AudioOutput.cpp:243
Components_VideoOutput.h
The header file provides capabilities video output information APIs.
hostIf_STBServiceSPDIF
This class provides the TR-069 components SPDIF information.
Definition: Components_SPDIF.h:79
hostIf_STBServiceHDMI
This class provides the TR-069 components HDMI information.
Definition: Components_HDMI.h:89
hostIf_STBServiceVideoDecoder
This class provides the TR069 components video decoder information.
Definition: Components_VideoDecoder.h:79
Components_XrdkEMMC.h
eMMC diagnostic APIs.
Components_HDMI.h
The header file provides capabilities HDMI information APIs.
hostIf_STBServiceVideoOutput::doUpdates
void doUpdates(updateCallback mUpdateCallback)
This function updates the video interface such as status, display format, video format,...
Definition: Components_VideoOutput.cpp:270
manager.hpp
It contains class referenced by manager.cpp file.
DSClientReqHandler::handleSetMsg
virtual int handleSetMsg(HOSTIF_MsgData_t *stMsgData)
This function is used to handle the set message request of DsClient i.c STBService such as "HDMI",...
Definition: hostIf_dsClient_ReqHandler.cpp:134
_HostIf_MsgData_t
Definition: hostIf_tr69ReqHandler.h:170
hostIf_STBServiceHDMI::handleSetMsg
int handleSetMsg(const char *paramName, HOSTIF_MsgData_t *stMsgData)
This function set the HDMI interface updates such as Status, Enable, ResolutionMode,...
Definition: Components_HDMI.cpp:230
hostIf_STBServiceVideoOutput
This class provides the TR-069 components video output information.
Definition: Components_VideoOutput.h:92
hostIf_STBServiceSPDIF::handleGetMsg
int handleGetMsg(const char *paramName, HOSTIF_MsgData_t *stMsgData)
This function get the SPDIF interface updates such as Enable, Status, Alias, Name,...
Definition: Components_SPDIF.cpp:210
Components_AudioOutput.h
The header file provides capabilities audio output information APIs.
dsError.h
Device Settings HAL error codes.
Components_SPDIF.h
The header file provides components SPDIF(Sony/Philips Digital Interface Format) information APIs.
hostIf_main.h
hostIf_main API.
hostIf_STBServiceXeMMC
Definition: Components_XrdkEMMC.h:44
hostIf_STBServiceVideoDecoder::handleGetMsg
int handleGetMsg(const char *paramName, HOSTIF_MsgData_t *stMsgData)
This function get the video decoder interface updates such as Status, ContentAspectRatio,...
Definition: Components_VideoDecoder.cpp:182
device::Manager::Initialize
static void Initialize()
This API is used to initialize the Device Setting module. Each API should be called by any client of ...
Definition: manager.cpp:97
_HostIf_MsgData_t::paramtype
HostIf_ParamType_t paramtype
Definition: hostIf_tr69ReqHandler.h:177
RDK_LOG
#define RDK_LOG
Definition: rdk_debug.h:258
_HostIf_MsgData_t::faultCode
faultCode_t faultCode
Definition: hostIf_tr69ReqHandler.h:179
libIBus.h
RDK IARM-Bus API Declarations.
hostIf_STBServiceAudioInterface::handleGetMsg
int handleGetMsg(const char *paramName, HOSTIF_MsgData_t *stMsgData)
This function get the audio interface attribute values such as mute status, audio encoding,...
Definition: Components_AudioOutput.cpp:295
_HostIf_MsgData_t::paramName
char paramName[(4 *1024)]
Definition: hostIf_tr69ReqHandler.h:171
hostIf_STBServiceSPDIF::handleSetMsg
int handleSetMsg(const char *paramName, HOSTIF_MsgData_t *stMsgData)
This function set the SPDIF interface updates such as Enable, Status, Alias, Name,...
Definition: Components_SPDIF.cpp:187
hostIf_STBServiceHDMI::handleGetMsg
int handleGetMsg(const char *paramName, HOSTIF_MsgData_t *stMsgData)
This function get the HDMI interface updates such as Status, Enable, ResolutionMode,...
Definition: Components_HDMI.cpp:270
hostIf_STBServiceCapabilities
Definition: Capabilities.h:44
DSClientReqHandler::init
virtual bool init()
This function is used to initialize the device manager.
Definition: hostIf_dsClient_ReqHandler.cpp:81
hostIf_STBServiceAudioInterface
This class provides the TR069 components audio output information.
Definition: Components_AudioOutput.h:112
_HostIf_MsgData_t::paramValue
char paramValue[(4 *1024)]
Definition: hostIf_tr69ReqHandler.h:172
hostIf_dsClient_ReqHandler.h
The header file provides HostIf ds client request handler information APIs.
DSClientReqHandler
This class provides device setting Client ReqHandler Interface operations for STBService defined unde...
Definition: hostIf_dsClient_ReqHandler.h:55
device::Manager::DeInitialize
static void DeInitialize()
This API is used to deinitialize the device settings module. DeInitialize() must be called to release...
Definition: manager.cpp:138
hostIf_STBServiceHDMI::getInstance
static hostIf_STBServiceHDMI * getInstance(int dev_id)
Definition: Components_HDMI.cpp:90
hostIf_STBServiceXSDCard
This class provides the TR-069 components XSD Card information.
Definition: Components_XrdkSDCard.h:81
hostIf_STBServiceVideoOutput::handleGetMsg
int handleGetMsg(const char *paramName, HOSTIF_MsgData_t *stMsgData)
This function get the video interface attribute value such as status, display format,...
Definition: Components_VideoOutput.cpp:224
hostIf_STBServiceAudioInterface::doUpdates
void doUpdates(updateCallback mUpdateCallback)
This function updates the audio interface such as mute status, audio encoding, audio level,...
Definition: Components_AudioOutput.cpp:373
DSClientReqHandler::handleGetMsg
virtual int handleGetMsg(HOSTIF_MsgData_t *stMsgData)
This function is used to handle the get message request of DsClient i.e STBServices components and th...
Definition: hostIf_dsClient_ReqHandler.cpp:214
msgHandler
Definition: hostIf_msgHandler.h:103
DSClientReqHandler::unInit
virtual bool unInit()
This function is used to close all the instances of STB services such as HDMI, VideoOutput,...
Definition: hostIf_dsClient_ReqHandler.cpp:108
put_int
void put_int(char *ptr, int val)
This function converts the input data to integer type.
Definition: hostIf_utils.cpp:152
hostIf_STBServiceVideoDecoder::doUpdates
void doUpdates(updateCallback mUpdateCallback)
This function updates the video decoder interface updates such as Status, ContentAspectRatio,...
Definition: Components_VideoDecoder.cpp:228
hostIf_STBServiceVideoDecoder::handleSetMsg
int handleSetMsg(const char *paramName, HOSTIF_MsgData_t *stMsgData)
This function sets the video decoder interface updates such as Status, ContentAspectRatio,...
Definition: Components_VideoDecoder.cpp:159