29#ifndef OCEANDIRECTAPICONSTANTS_H
30#define OCEANDIRECTAPICONSTANTS_H
32#include "api/DllDecl.h"
35#define SET_ERROR_CODE(code) do { if(NULL != errorCode) { *errorCode = code; } } while(0)
41#define UNUSED(x) (void)(x)
DLL_DECL const int ERROR_TRANSFER_ERROR
DLL_DECL const int ERROR_COMMAND_NOT_SUPPORTED
DLL_DECL const int ERROR_CODE_COLOR_CONVERSION_ERROR
DLL_DECL const int ERROR_CODE_NO_PEAK_FOUND_ERROR
DLL_DECL const int ERROR_CODE_ARRAY_INDEX_OUT_OF_BOUNDS
DLL_DECL const int ERROR_CODE_ARRAY_LENGTH
DLL_DECL const int ERROR_CODE_ILLEGAL_STATE_ERROR
DLL_DECL const int ERROR_NO_DEVICE
DLL_DECL const int ERROR_INVALID_ERROR
DLL_DECL const int ERROR_CODE_MAX_INT_TIME_REACHED
DLL_DECL const int ERROR_CODE_MIN_INT_TIME_REACHED
DLL_DECL const int ERROR_CODE_INVALID_ARGUMENT
DLL_DECL const int ERROR_SUCCESS
DLL_DECL const int ERROR_CODE_DIVIDE_BY_ZERO
DLL_DECL const int ERROR_INTEGRATION_TIME_BELOW_AVERAGING_MIN
DLL_DECL const int ERROR_BAD_USER_BUFFER
DLL_DECL const int ERROR_INPUT_OUT_OF_BOUNDS
DLL_DECL const int ERROR_CODE_NONINVERTIBLE_MATRIX
DLL_DECL const int ERROR_DARK_NONLINEARITY_CORRECTION_CONFLICT
DLL_DECL const int ERROR_FEATURE_NOT_FOUND
DLL_DECL const int ERROR_NOT_ENOUGH_BUFFER_SPACE
DLL_DECL const int ERROR_SPECTROMETER_SATURATED
DLL_DECL const int ERROR_FAILED_TO_CLOSE
DLL_DECL const int ERROR_VALUE_NOT_FOUND
DLL_DECL const int ERROR_ENSURE_LAMP_IS_ON
DLL_DECL const int ERROR_CODE_EMPTY_VECTOR
DLL_DECL const int ERROR_NOT_IMPLEMENTED