#ifndef __IOT_DEVICE_MANAGE_TYPE_H__
#define __IOT_DEVICE_MANAGE_TYPE_H__
+#include <tizen_error.h>
+
#ifdef __cplusplus
extern "C" {
#endif
* @since_tizen 5.0
*/
typedef enum {
- IDM_REASON_NONE, /**< No error */
- IDM_REASON_UNKNOWN, /**< Unknown error */
- IDM_REASON_INVALID_PARAMETER, /**< Invalid parameter */
- IDM_REASON_OUT_OF_MEMORY, /**< Out of memory */
- IDM_REASON_IO_ERROR, /**< Input/output error */
- IDM_REASON_PERMISSION_DENIED, /**< Permission denied */
- IDM_REASON_INVALID_OPERATION, /**< Invalid operation */
- IDM_REASON_STOPPED, /**< Stopped */
- IDM_REASON_NOT_SUPPORTED, /**< Not supported */
+ IDM_REASON_NONE = TIZEN_ERROR_NONE, /**< No error */
+ IDM_REASON_UNKNOWN = TIZEN_ERROR_UNKNOWN, /**< Unknown error */
+ IDM_REASON_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid parameter */
+ IDM_REASON_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Out of memory */
+ IDM_REASON_IO_ERROR = TIZEN_ERROR_IO_ERROR, /**< Input/output error */
+ IDM_REASON_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED, /**< Permission denied */
+ IDM_REASON_INVALID_OPERATION = TIZEN_ERROR_INVALID_OPERATION, /**< Invalid operation */
+ IDM_REASON_STOPPED = TIZEN_ERROR_CANCELED, /**< Stopped */
+ IDM_REASON_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED, /**< Not supported */
} idm_reason_e;
/**
+* @brief Enumeration for error code
+* @since_tizen 5.0
+*/
+typedef enum {
+ IDM_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */
+ IDM_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Out of memory */
+ IDM_ERROR_NOT_PERMITTED = TIZEN_ERROR_NOT_PERMITTED, /**< Operation not permitted */
+ IDM_ERROR_IO_ERROR = TIZEN_ERROR_IO_ERROR, /**< I/O error */
+ IDM_ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED, /**< Permission denied */
+ IDM_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid function parameter */
+ IDM_ERROR_NO_DATA = TIZEN_ERROR_NO_DATA, /**< No data available */
+ IDM_ERROR_ALREADY_IN_PROGRESS = TIZEN_ERROR_ALREADY_IN_PROGRESS, /**< Operation already in */
+ IDM_ERROR_CANCELED = TIZEN_ERROR_CANCELED, /**< Operation Canceled */
+ IDM_ERROR_UNKNOWN = TIZEN_ERROR_UNKNOWN, /**< Unknown error */
+ IDM_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED, /**< Not supported */
+} idm_error_e;
+
+/**
* @brief Structure for command
* @since_tizen 5.0
*/
* @brief Type definition of result callback function
* @since_tizen 5.0
* @remarks Format of @p detail for receiving result detail depends on the type of @p command \n
-* #IDM_CMD_GET_LOG_ARCHIVE refers to 'schema/logArchiveResult.json' as JSON schema definition and 'schema/logArchiveResultExample.json' as example\n
* #IDM_CMD_GET_TASKINFO refers to 'schema/taskResult.json' as JSON schema definition and 'schema/taskResultExample.json' as example\n
-* #IDM_CMD_GET_SYSINFO refers to 'schema/sysInfoResult.json' as JSON schema definition and 'schema/sysInfoResultExample.json' as example\n
+* #IDM_CMD_GET_LOG_ARCHIVE refers to 'schema/logArchiveResult.json' as JSON schema definition and 'schema/logArchiveResultExample.json' as example\n
* @param command Command handle
* @param result Enum value for result
* @param reason Enum value for reason
* #IDM_CMD_REBOOT requires privilege http://tizen.org/privilege/reboot \n
* #IDM_CMD_GET_TASKINFO requires privilege http://tizen.org/privilege/systemmonitor \n
* @remarks Format of @p detail for sending cmd request depends on the type of @p cmd \n
- * #IDM_CMD_GET_LOG_ARCHIVE refers to 'schema/logArchiveRequest.json' as JSON schema definition and 'schema/logArchiveRequestExample.json' as example\n
* #IDM_CMD_GET_TASKINFO refers to 'schema/taskRequest.json' as JSON schema definition and 'schema/taskRequestExample.json' as example\n
- * #IDM_CMD_GET_SYSINFO refers to 'schema/sysInfoRequest.json' as JSON schema definition and 'schema/sysInfoRequestExample.json' as example\n
+ * #IDM_CMD_GET_LOG_ARCHIVE refers to 'schema/logArchiveRequest.json' as JSON schema definition and 'schema/logArchiveRequestExample.json' as example\n
* @remarks This is not thread safe.
* @param[in] command The idm_command handle
* @param[in] cmd The command for getting information