 |
RDK Documentation (Open Sourced RDK Components)
|
34 #include "libIBusDaemon.h"
36 #include "libIARMCore.h"
38 static void _evtHandler(
const char *owner, IARM_EventId_t eventId,
void *data,
size_t len)
40 unsigned long messageLength=0;
47 messageLength = eventData->data.xupnpData.deviceInfoLength;
48 printf(
" >>>>>>>>>> EVENT_XUPNP_DATA_UPDATE messageLength : %ld \n", messageLength);
59 IARM_Result_t retCode = IARM_RESULT_SUCCESS;
63 printf(
"Client Entering %d\r\n", getpid());
73 eventData.data.xupnpData.deviceInfoLength = 0;
76 printf(
">>>>> Generate IARM_BUS_SYSMGR_NAME EVENT ::: IARM_BUS_SYSMGR_EVENT_XUPNP_DATA_REQUEST \r\n");
83 printf(
"Sys Client Exiting\r\n");
IARM_Result_t IARM_Bus_Term(void)
This API is used to terminate the IARM-Bus library.
IARM-Bus Sys Manager Public API.
#define IARM_BUS_SYSMGR_NAME
@ IARM_BUS_SYSMGR_EVENT_XUPNP_DATA_UPDATE
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...
IARM_Result_t IARM_Bus_BroadcastEvent(const char *ownerName, IARM_EventId_t eventId, void *data, size_t len)
This API is used to publish an Asynchronous event to all IARM client registered for this perticular e...
RDK IARM-Bus API Declarations.
@ IARM_BUS_SYSMGR_EVENT_XUPNP_DATA_REQUEST
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_Init(const char *name)
This API is used to initialize the IARM-Bus library.