mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
icsneolegacy: implemented icsneoGetLastAPIError()
This commit is contained in:
@@ -638,8 +638,13 @@ int LegacyDLLExport icsneoSetDeviceParameters(void* hObject, char* pParmValue, i
|
||||
// Error Functions
|
||||
int LegacyDLLExport icsneoGetLastAPIError(void* hObject, unsigned long* pErrorNumber)
|
||||
{
|
||||
// TODO Implement
|
||||
if(!icsneoValidateHObject(hObject))
|
||||
return false;
|
||||
|
||||
neoevent_t error;
|
||||
icsneo_getLastError(&error);
|
||||
*pErrorNumber = (unsigned long)error.eventNumber;
|
||||
return true;
|
||||
}
|
||||
|
||||
int LegacyDLLExport icsneoGetErrorMessages(void* hObject, int* pErrorMsgs, int* pNumberOfErrors)
|
||||
|
||||
Reference in New Issue
Block a user