CHAILink SDK  Version 1.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
typedef void(* NH_CHAI_DEVICEDECLARATION)(DeviceDeclarationNotificationTypes const declarationType, CPREMOTEDEVICEINFO const *const pRemoteDeviceInfo, CPCHAR8 const *const utf8DeviceName, CPHOOKEDOBJECT const hRemoteDevice)

Called on device declaration. Can occur if a new root device is connected to the network, if a device needs to reflect changes (capabilities, name...)

Parameters
[in]declarationTypeType of declaration (see DeviceDeclarationNotificationTypes enumeration in CLC_Enums.h)
[in]pRemoteDeviceInfoPointer to a CPREMOTEDEVICEINFO structure (see the structure details in CLCm_Defines.h)
[in]strDeviceNameDevice name
[in]hRemoteDeviceHandle to the Remote Device. This handle is only valid during notification. If application needs to keep this handle it must acquire it with HookedObject_Acquire and release it with HookedObject_Release when it is no longer used.
Remarks
This call is performed only for root devices (having null ModuleID).
This notification is activated by using CHAI_RegisterNotificationHandler.