|
RDK Documentation (Open Sourced RDK Components)
|
46 void _HDCPHandler(
const char *owner, IARM_EventId_t eventId,
void *data,
size_t len);
48 int main(
int argc,
char *argv[])
67 hdpcStatus = vPort.getHDCPStatus();
68 printf(
"\n >>>>>>>> hdpcStatus : %d\n",hdpcStatus);
72 printf(
"\n >>>>>>>> Perform a HDMI Hot Plug to get a HDCP status \r\n");
75 printf(
"\n >>>>>>>> Got a HDCP status .. \r\n");
81 hdpcStatus = vPort.getHDCPStatus();
82 printf(
"\n >>>>>>>> hdpcStatus : %d\n",hdpcStatus);
88 printf(
"\n >>>>>>>> HDCP Authenticated \r\n");
93 printf(
"\n >>>>>>>> HDCP Failure \r\n");
100 printf(
"\n >>>>>>>> HDCP Authentication not Initiated \r\n");
104 printf(
"\n >>>>>>>> hdpcStatus : %d\n",hdpcStatus);
108 printf(
"\t Display [%s] connected\r\n", vPort.
isDisplayConnected() ?
"is" :
"is NOT");
119 void _HDCPHandler(
const char *owner, IARM_EventId_t eventId,
void *data,
size_t len)
121 if (strcmp(owner,IARM_BUS_DSMGR_NAME) == 0)
123 printf(
"_HDCPHandler called %d ......... \r\n",eventId);
IARM_Result_t IARM_Bus_Term(void)
This API is used to terminate the IARM-Bus library.
@ dsHDCP_STATUS_AUTHENTICATED
bool isDisplayConnected() const
This API is used to Check if the port is currently connected to any display device.
Class extending enumerable to implement the videoooutputport interface.
@ dsHDCP_STATUS_UNAUTHENTICATED
It contains class referenced by manager.cpp file.
IARM_Result_t IARM_Bus_RegisterEventHandler(const char *ownerName, IARM_EventId_t eventId, IARM_EventHandler_t handler)
This API register to listen to event and provide the callback function for event notification....
Device Settings HAL error codes.
Device Settings HAL utilities.
@ IARM_BUS_DSMGR_EVENT_HDCP_STATUS
IARM_Result_t IARM_Bus_Disconnect(void)
This API disconnect Application from IARM Bus so the application will not receive any IARM event or R...
It contains structures and class referenced by the videoOutputportTypes.cpp file.
static void Initialize()
This API is used to initialize the Device Setting module. Each API should be called by any client of ...
It contains class and structure refrenced by the videoResolution.cpp file.
RDK IARM-Bus API Declarations.
It contains class and structure refrenced by the videooutputport.cpp file.
static void DeInitialize()
This API is used to deinitialize the device settings module. DeInitialize() must be called to release...
VideoOutputPort & getVideoOutputPort(const std::string &name)
This API is used to get the reference to the video output port by its name. The name of the port must...
static Host & getInstance(void)
This API is used to get a reference to the single instance of the Host object.
IARM_Result_t IARM_Bus_Connect(void)
This API is used to connect application to the IARM bus daemon. After connected, the application can ...
@ dsHDCP_STATUS_AUTHENTICATIONFAILURE
IARM_Result_t IARM_Bus_Init(const char *name)
This API is used to initialize the IARM-Bus library.