with latest version of cmake, C++, C, python3 and last java version. It has not been possible to reach a successfull compilation with node and cordova. Most of the modifications are workarouds because the software requires an heavy revision from a tue dev whom I am not. Modifications qui seront validées : modifié : CMakeLists.txt modifié : cmake/modules/FindNode.cmake modifié : cmake/modules/FindNpm.cmake modifié : cmake/modules/OpenCVDetectPython.cmake nouveau fichier : cmake/modules/OpenCVDetectPython.oldcmake modifié : include/upm_types.h modifié : src/CMakeLists.txt modifié : src/ehr/ehr.cxx supprimé : src/hp20x/CMakeLists.txt supprimé : src/hp20x/hp20x.cxx supprimé : src/hp20x/hp20x.hpp supprimé : src/hp20x/hp20x.json
45 lines
1.5 KiB
C
45 lines
1.5 KiB
C
/*
|
|
* Authors:
|
|
* Copyright (c) 2016 Intel Corporation.
|
|
*
|
|
* This program and the accompanying materials are made available under the
|
|
* terms of the The MIT License which is available at
|
|
* https://opensource.org/licenses/MIT.
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
#ifndef UPM_TYPES_H_
|
|
#define UPM_TYPES_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef C99
|
|
#include <stdbool.h>
|
|
#elif __cplusplus
|
|
#else
|
|
typedef enum {TRUE =1 , FALSE = 0} boolean;
|
|
#endif
|
|
|
|
typedef enum {
|
|
UPM_SUCCESS = 0, /* Operation is successful, expected response */
|
|
UPM_ERROR_NOT_IMPLEMENTED = 1, /* Trying to access a feature or mode that is not implemented */
|
|
UPM_ERROR_NOT_SUPPORTED = 2, /* Trying to access a feature or mode that is not supported */
|
|
UPM_ERROR_NO_RESOURCES = 3, /* No resources to perform operation */
|
|
UPM_ERROR_NO_DATA = 4, /* No data received or available from the sensor */
|
|
UPM_ERROR_INVALID_PARAMETER = 5, /* Invalid parameter passed to the function*/
|
|
UPM_ERROR_INVALID_SIZE = 6, /* Invalid buffer size */
|
|
UPM_ERROR_OUT_OF_RANGE = 7, /* When the input to drive is too high/low or -ve */
|
|
UPM_ERROR_OPERATION_FAILED = 8, /* When a function isn't able to perform as expected */
|
|
UPM_ERROR_TIMED_OUT = 9, /* Timed out while communicating with the sensor */
|
|
|
|
UPM_ERROR_UNSPECIFIED = 99 /* Unspecified/Unknown error */
|
|
} upm_result_t;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* UPM_TYPES_H_ */
|