Преглед изворни кода

Fixed parameter documentation mismatch

Sam Lantinga пре 2 година
родитељ
комит
92b3969ea3
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      src/hidapi/windows/hidapi_descriptor_reconstruct.c
  2. 1 1
      src/hidapi/windows/hidapi_winapi.h

+ 1 - 1
src/hidapi/windows/hidapi_descriptor_reconstruct.c

@@ -46,7 +46,7 @@ static void rd_append_byte(unsigned char byte, struct rd_buffer* rpt_desc) {
  *
  *
  * @param[in]  rd_item  Enumeration identifying type (Main, Global, Local) and function (e.g Usage or Report Count) of the item.
  * @param[in]  rd_item  Enumeration identifying type (Main, Global, Local) and function (e.g Usage or Report Count) of the item.
  * @param[in]  data     Data (Size depends on rd_item 0,1,2 or 4bytes).
  * @param[in]  data     Data (Size depends on rd_item 0,1,2 or 4bytes).
- * @param      list     Chained list of report descriptor bytes.
+ * @param      rpt_desc Pointer to report descriptor buffer struct.
  *
  *
  * @return Returns 0 if successful, -1 for error.
  * @return Returns 0 if successful, -1 for error.
  */
  */

+ 1 - 1
src/hidapi/windows/hidapi_winapi.h

@@ -46,7 +46,7 @@ extern "C" {
 
 
 			@ingroup API
 			@ingroup API
 			@param dev A device handle returned from hid_open().
 			@param dev A device handle returned from hid_open().
-			@param guid The device's container ID on return.
+			@param container_id The device's container ID on return.
 
 
 			@returns
 			@returns
 				This function returns 0 on success and -1 on error.
 				This function returns 0 on success and -1 on error.