Fix documantation typo 66/216366/1 accepted/tizen/unified/20191112.125134 submit/tizen/20191112.053022
authorYoungjae Cho <y0.cho@samsung.com>
Thu, 24 Oct 2019 02:54:09 +0000 (11:54 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Thu, 24 Oct 2019 02:54:09 +0000 (11:54 +0900)
Change-Id: I6d2c164a31fb82bce83014b5178dcda2145868eb
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
doc/usb_host_doc.h

index 7a6b193fea35b6d0c3939ea0a93f0fe434d25d72..5183e60c6c2881d183b679f444ca86d178c6b0fa 100644 (file)
@@ -81,7 +81,7 @@
  *     usb_host_device_close(dev);
  * }
  *
- * usb_host_free_devices(devs);
+ * usb_host_free_device_list(devs);
  * @endcode
  *
  * The example code above shows how to open a device for communication and clean up
@@ -99,7 +99,7 @@
  * usb_host_unref_device() are used to ref or unref device. When ref counter
  * reach 0 device will be freed.
  * Devices reached by calling usb_host_get_devices() have a reference count of
- * 1, and usb_host_free_devices() can optionally decrease the reference count
+ * 1, and usb_host_free_device_list() can optionally decrease the reference count
  * on all devices in the list. usb_host_device_open() adds another reference which is
  * later destroyed by usb_host_device_close().
  *
  *
  * @code
  * int transferred;
- * usb_host_cfg_h cfg;
+ * usb_host_config_h cfg;
  * usb_host_interface_h iface;
  * usb_host_endpoint_h ep;
  *
  *    char *data;
  *
  *    // Get the status value
- *    usb_host_get_transfer_status(transfer, &status);
+ *    usb_host_transfer_get_status(transfer, &status);
  *
  *    // Check the status value
  *    if (status != USB_HOST_TRANSFER_COMPLETED) {
  *    }
  *
  *    // Get the data buffer
- *    usb_host_get_data(transfer, &data, &length);
+ *    usb_host_transfer_get_data(transfer, &data, &length);
  *
  *    // Handle received data
  *    // ...
  * Before submitting the transfer you must setup isochronous packets lengths (and data, if making out transfer).
  * @code
  * for (i = 0; i < num_iso_packets; ++i) {
- *    ret = usb_host_set_iso_packet_length(transfer, i, packet_lenght);
+ *    ret = usb_host_transfer_set_iso_packet_length(transfer, i, packet_lenght);
  *    //...
  *
- *    ret = usb_host_get_iso_packet_data(transfer, i, &data, &len);
+ *    ret = usb_host_transfer_get_iso_packet_data(transfer, i, &data, &len);
  *    // fill received buffer with your data
  *    // ...
  * }