OperationResult information

GetCRSDKOperationResultsSupported

Overview

For some DeviceProperty, SetDeviceProperty() or SendCommand() will notify the user of the update result using a new callback called OnWarningExt(). This API can acquire a list of CrDevicePropertyCode and CrCommandId to be notified by OnWarningExt().

Definition

CrError GetCRSDKOperationResultsSupported(CrDeviceHandle deviceHandle, CrOperationResultSupportedInfo** opeResSupportInfo, CrInt32u* numOfInfo);

Input parameters

Type

Explanation

CrDeviceHandle

deviceHandle

Output parameters

Type

Explanation

CrOperationResultSupportedInfo**

opeResSupportInfo
The CrOperationResultSupportedInfo list pointer. Developers should pass the address of a modifiable CrOperationResultSupportedInfo pointer.

CrInt32u*

numOfInfo
An integer pointer that indicates the number of CrOperationResultSupportedInfo returned by the list pointer.
Developers should pass the address of a modifiable CrInt32u variable.

Return value

Type

Explanation

CrError

CrError_None on Success
Other than errors above, see Status code & Error
Related API
Special note (details)

OK events are not notified for the following Operations. When OK (NG was not notified), Check the result of the operation with the respective CrDeviceProperty.

ReleaseCRSDKOperationResultsSupported

Overview

This function releases the CrOperationResultSupportedInfo allocated by GetCRSDKOperationResultsSupported().

Definition

CrError ReleaseCRSDKOperationResultsSupported(CrDeviceHandle deviceHandle, CrOperationResultSupportedInfo* opeResSupportInfo);

Input parameters

Type

Explanation

CrDeviceHandle

deviceHandle

CrOperationResultSupportedInfo*

opeResSupportInfo
CrOperationResultSupportedInfo list pointer to release.
Output parameters

None

Return value

Type

Explanation

CrError

CrError_None If the list is released successfully
CrError_Init if the SDK is uninitialized
CrError_Generic_InvalidHandle If the deviceHandle is an invalid handle
Other than errors above, see Status code & Error
Related API
Special note (details)

None in particular