[ACR-1626] Add usb.host privilege 58/255658/14 accepted/tizen/unified/20210420.090110 submit/tizen/20210419.112652
authorHyotaek Shim <hyotaek.shim@samsung.com>
Mon, 22 Mar 2021 07:19:07 +0000 (16:19 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Wed, 7 Apr 2021 08:23:52 +0000 (17:23 +0900)
Change-Id: I4eb9a45c8e34449810352e7a716ea95a593aa743
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
doc/usb_host_doc.h
include/usb_host.h

index 765291ca43c1d357423b64cebc73b39cdde362e3..02100ead40cf9d806b555d099e236046cce9e600 100644 (file)
  * \#include <usb_host.h>
  *
  * @section CAPI_USB_HOST_MODULE_OVERVIEW Overview
- * USB host API provides direct access to USB devices. Before using it, become
- * familiar with USB protocol specification.
- * Note, that this API is created for *host* mode USB, i.e. communication with
+ * USB host API provides direct access to USB devices.
+ * Applications with user confirmation can get access to external USB devices,
+ * which include card readers, NFC readers, printers, and QR code readers.
+ * Before using it, become familiar with USB protocol specification.
+ * Note that this API is created for *host* mode USB, i.e. communication with
  * connected devices.\n
  *
  * Before using any of usb_host API functions you must initialize API context.
index 12704d30b3e5ae90d878a6825fc38ed9db80b979..a529f923f5f361efaf38687d0639c83b22e1508f 100644 (file)
@@ -322,6 +322,8 @@ int usb_host_unref_device(usb_host_device_h dev);
  * @details This function opens a device, which allows performing operations on it
  * (including transfer operations and strings introspection).
  * @since_tizen 3.0
+ * @remarks An application having platform privilege level can use this api without user confirmation
+ * by declaring %http://tizen.org/privilege/usb.host, which has been added since 6.5.
  * @param[in] dev Device to open
  * @return 0 on success, otherwise a negative error value
  * @retval #USB_HOST_ERROR_NONE Successful
@@ -355,6 +357,8 @@ int usb_host_device_close(usb_host_device_h dev);
  * idProduct. If two or more devices have same vendor and product id only
  * first will be opened.
  * @since_tizen 3.0
+ * @remarks An application having platform privilege level can use this api without user confirmation
+ * by declaring %http://tizen.org/privilege/usb.host, which has been added since 6.5.
  * @param[in] ctx Context
  * @param[in] vendor_id idVendor of connected device
  * @param[in] product_id idProduct of connected device