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 */
* @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
* @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
--- /dev/null
+{
+ "$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"
+ ]
+ }
+ }
+}
--- /dev/null
+{
+ "idSeed": "SQPp02DOEN2eOeoEAD"
+}
--- /dev/null
+{
+ "$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"
+ ]
+ }
+ }
+}
--- /dev/null
+{
+ "deviceID": "6ba7a810-9aad-11c1-80b4-00c07fd630c8"
+}