update libidm and headers - apply error codes 16/207116/1
authorJeonghoon Park <jh1979.park@samsung.com>
Thu, 30 May 2019 06:57:26 +0000 (15:57 +0900)
committerJeonghoon Park <jh1979.park@samsung.com>
Thu, 30 May 2019 07:00:55 +0000 (16:00 +0900)
Change-Id: Ie241325cbd0117b44dca4438056a8c3a442135c0

inc/iot-device-manage-type.h
inc/iot-device-manage.h
lib/libiot-device-manage.so.0

index fa8e659..0a29e96 100644 (file)
@@ -17,6 +17,8 @@
 #ifndef __IOT_DEVICE_MANAGE_TYPE_H__
 #define __IOT_DEVICE_MANAGE_TYPE_H__
 
+#include <tizen_error.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -62,18 +64,36 @@ typedef enum {
 * @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
 */
@@ -83,9 +103,8 @@ typedef struct __idm_command_h *idm_command_h;
 * @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
index d6250ad..42b2220 100644 (file)
@@ -124,9 +124,8 @@ int idm_command_get_type(idm_command_h command, idm_cmd_type_e *type);
  *          #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
index 474d10f..b9d2bdc 100644 (file)
Binary files a/lib/libiot-device-manage.so.0 and b/lib/libiot-device-manage.so.0 differ