update lib and headers for applying id feature 28/207828/3
authorJeonghoon Park <jh1979.park@samsung.com>
Thu, 13 Jun 2019 06:38:20 +0000 (15:38 +0900)
committerJeonghoon Park <jh1979.park@samsung.com>
Mon, 17 Jun 2019 07:54:53 +0000 (16:54 +0900)
Change-Id: I5c9a84429f2fd42cebee28ddb0edc81e76cd99a3

inc/iot-device-manage-type.h
inc/iot-device-manage.h
lib/libiot-device-manage.so.0
schemas/idRequest.json [new file with mode: 0644]
schemas/idRequestExample.json [new file with mode: 0644]
schemas/idResult.json [new file with mode: 0644]
schemas/idResultExample.json [new file with mode: 0644]

index 0a29e96..ae9d9d0 100644 (file)
@@ -32,6 +32,7 @@ typedef enum {
        IDM_CMD_GET_LOG_ARCHIVE, /**< Command for getting log archive file for diagnosis */
        IDM_CMD_GET_TASKINFO,    /**< Command for getting task information */
        IDM_CMD_GET_SYSINFO,     /**< Command for getting system information */
+       IDM_CMD_GET_ID,     /**< Command for getting device ID gerenated by libidm */
        // IDM_CMD_LCDOFF,          /**< TBD : Command for turning LCD off */
        // IDM_CMD_HIBERNATE,       /**< TBD : Command for hibernating device */
        // IDM_CMD_HALT,            /**< TBD : Command for halting device */
@@ -103,8 +104,10 @@ 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_TASKINFO refers to 'schema/taskResult.json' as JSON schema definition and 'schema/taskResultExample.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
+*          #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_ID refers to 'schema/idResult.json' as JSON schema definition and 'schema/idResultExample.json' as example\n
 * @param command Command handle
 * @param result Enum value for result
 * @param reason Enum value for reason
index 42b2220..e04061a 100644 (file)
@@ -120,19 +120,23 @@ int idm_command_get_type(idm_command_h command, idm_cmd_type_e *type);
  * @privlevel platform
  * @privilege %http://tizen.org/privilege/reboot
  * @privilege %http://tizen.org/privilege/systemmonitor
+ * @privilege %http://tizen.org/privilege/network.get
  * @remarks Required privilege depends on @p cmd \n
  *          #IDM_CMD_REBOOT requires privilege http://tizen.org/privilege/reboot \n
  *          #IDM_CMD_GET_TASKINFO requires privilege http://tizen.org/privilege/systemmonitor \n
+ *          #IDM_CMD_GET_ID requires privilege http://tizen.org/privilege/network.get \n
  * @remarks Format of @p detail for sending cmd request depends on the type of @p cmd \n
- *          #IDM_CMD_GET_TASKINFO refers to 'schema/taskRequest.json' as JSON schema definition and 'schema/taskRequestExample.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
+ *          #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_ID refers to 'schema/idRequest.json' as JSON schema definition and 'schema/idRequestExample.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
  * @param[in] detail The details for setting @p cmd
  *
  * @return 0 on success, otherwise a negative error value
- * @see idm_cmd_info_e
+ * @see idm_cmd_type_e
  *
  * @par Example
  * @code
index b9d2bdc..7505352 100644 (file)
Binary files a/lib/libiot-device-manage.so.0 and b/lib/libiot-device-manage.so.0 differ
diff --git a/schemas/idRequest.json b/schemas/idRequest.json
new file mode 100644 (file)
index 0000000..03e142e
--- /dev/null
@@ -0,0 +1,20 @@
+{
+  "$schema": "http://json-schema.org/draft-07/schema",
+  "$id": "http://tizen.org/idRequest.json",
+  "title": "ID Request",
+  "description": "Request for generating device ID",
+  "type": "object",
+  "required": [
+    "idSeed"
+  ],
+  "properties": {
+    "idSeed": {
+      "$id": "#/properties/idSeed",
+      "description": "A seed for generating device ID",
+      "type": "string",
+      "examples": [
+        "SQPp02DOEN2eOeoEAD"
+      ]
+    }
+  }
+}
diff --git a/schemas/idRequestExample.json b/schemas/idRequestExample.json
new file mode 100644 (file)
index 0000000..09aaf16
--- /dev/null
@@ -0,0 +1,3 @@
+{
+  "idSeed": "SQPp02DOEN2eOeoEAD"
+}
diff --git a/schemas/idResult.json b/schemas/idResult.json
new file mode 100644 (file)
index 0000000..82623b4
--- /dev/null
@@ -0,0 +1,20 @@
+{
+  "$schema": "http://json-schema.org/draft-07/schema",
+  "$id": "http://tizen.org/idResult.json",
+  "title": "ID Result",
+  "description": "Result of request for generating device ID",
+  "type": "object",
+  "required": [
+    "idSeed"
+  ],
+  "properties": {
+    "deviceID": {
+      "$id": "#/properties/deviceID",
+      "description": "A generated device ID",
+      "type": "string",
+      "examples": [
+        "6ba7a810-9aad-11c1-80b4-00c07fd630c8"
+      ]
+    }
+  }
+}
diff --git a/schemas/idResultExample.json b/schemas/idResultExample.json
new file mode 100644 (file)
index 0000000..8161fb5
--- /dev/null
@@ -0,0 +1,3 @@
+{
+  "deviceID": "6ba7a810-9aad-11c1-80b4-00c07fd630c8"
+}