 |
RDK Documentation (Open Sourced RDK Components)
|
36 static void _handler_IRKey(
const char *owner, IARM_EventId_t eventId,
void *data,
size_t len)
39 printf(
"_handler_IRKey event [%d] from [%s] for keyType=[%x]keyCode=[%x]\r\n", eventId, owner, eventData->data.irkey.keyType, eventData->data.irkey.keyCode);
43 printf(
" Recived FP Events............. \r\n" );
46 printf(
" Recived RF Events............. \r\n" );
49 printf(
" Recived IR key Events............. \r\n" );
57 printf(
"EventClient Entering %d\r\n", getpid());
64 printf(
"Client Hearbeat\r\n");
70 printf(
"Client Exiting\r\n");
IARM_Result_t IARM_Bus_Term(void)
This API is used to terminate the IARM-Bus library.
@ IARM_BUS_IRMGR_EVENT_IRKEY
@ IARM_BUS_IRMGR_KEYSRC_RF
@ IARM_BUS_IRMGR_KEYSRC_FP
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....
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...
RDK IARM-Bus API Declarations.
#define IARM_BUS_IRMGR_NAME
IARM_Result_t IARM_Bus_Connect(void)
This API is used to connect application to the IARM bus daemon. After connected, the application can ...
IARM_Result_t IARM_Bus_UnRegisterEventHandler(const char *ownerName, IARM_EventId_t eventId)
This API is used to Remove ALL handlers registered for the given event. This API remove the all the e...
IARM_Result_t IARM_Bus_Init(const char *name)
This API is used to initialize the IARM-Bus library.