CHAILink SDK  Version 1.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
typedef void(* NH_LOCALDEVICE_SNAPSHOT_REQUESTRESTORESNAPSHOTDATA)(CPHOBJECT const hLocalDevice, ObjectTypes const deviceType, CPUINT32 const dwDeviceUserData, CPUINT16 const wRequestID, SnapshotTypes const snapshotType, CPUINT32 const dwOffset, CPUINT32 const dwSnapshotContextData, CPUINT16 const wBlockSize, CPBOOLEAN const fIsLastBlock, CPBYTE const *const pBlockData)

Called by the CHAI to restore snapshot data related to the device.

This handler should call LocalDevice_Reply_InvalidRequest | LocalDevice_Reply_RequestRestoreSnapshotData

Parameters
[in]hLocalDeviceHandle to the notified local device.
[in]deviceTypeType of the notified local device. See ObjectTypes
[in]dwDeviceUserDataThe user data associated to the device handle during its creation.
[in]wRequestIDThe request ID, it MUST be used with the response (LocalDevice_Reply_*).
[in]snapshotTypeSnapshot data information type. See SnapshotTypes enumeration in CLC_Enums.h.
[in]dwOffsetData block offset. First call is done with an offset 0.
[in]dwSnapshotContextDataContext data related to the collected device. 0 during the 1st call, then value transmitted with the previous reply
[in]wBlockSizeData block size
[in]fLastBlockTRUE if this is the last block
[in]pBlockDataPointer to the data block
Remarks
This notification is activated by using LocalDevice_RegisterSnapshotNotificationHandler. When this function is defined NH_LOCALDEVICE_SNAPSHOT_REQUESTCOLLECTSNAPSHOTDATA must also be defined.