Changes between Version 4 and Version 5 of libwdi/usage
- Timestamp:
- 05/20/10 15:11:04 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
libwdi/usage
v4 v5 87 87 * '''bool is_composite''' ''(Mandatory)''[[BR]]Whether the device is a composite USB device. 88 88 * '''unsigned char mi''' ''(Optional)''[[BR]]Interface number for composite devices. If unused, set to 0. 89 * '''char* desc''' ''(Mandatory)''[[BR]]USB Device description string. U S-ASCII.89 * '''char* desc''' ''(Mandatory)''[[BR]]USB Device description string. UTF-8. 90 90 * '''char* driver''' ''(Optional)''[[BR]]Current driver (service) used by the device. If unused, set to NULL. 91 91 * '''char* device_id''' ''(Optional)''[[BR]]Microsoft's device URI string. If unused, set to NULL. … … 94 94 == Function calls == 95 95 96 * ''' wdi_strerror()'''96 * '''const char* wdi_strerror(int errcode)''' 97 97 98 === wdi_create_list() === 98 Convert a wdi error code to a human readable string. This can be used to provide a more explicit libwdi error message to the end users of your program. 99 99 100 will only return WDI_SUCCESS if the list is not empty. If the list is empty, WDI_NO_DEVICE is returned and lost is set to NULL 100 '''Parameters:''' 101 '''errcode''': The '''enum wdi_error''' value to convert to an error message. 101 102 102 === wdi_destroy_list() === 103 '''Return value:''' 104 The error message. 105 106 * '''int wdi_create_list(struct wdi_device_info** list, bool driverless_only)''' 107 108 This function returns a '''struct wdi_device_info''' list of USB device currently present on the system. 109 110 '''Parameters:''' 111 '''list''': a pointer to a '''struct wdi_device_info*''' to act as the start of the list[[BR]] 112 '''driverless_only''': indicates whether the list should enumerate USB devices that don't have a driver installed (true) or USB devices that have an existing valid driver (false) 113 114 '''Return value:''' 115 '''WDI_SUCCESS''' if the list of devices was successfully created.[[BR]] 116 '''WDI_ERROR_NO_DEVICE''' if the list is empty (*list will also be set to NULL).[[BR]] 117 '''WDI_ERROR_RESOURCE''' if memory could not be allocated internally. 118 119 * '''int wdi_destroy_list(struct wdi_device_info* list)''' 120 121 This function frees the '''struct wdi_device_info''' list returned by '''wdi_create_list''' 122 123 '''Parameters:''' 124 '''list''': a pointer to the first '''struct wdi_device_info''' device in the list[[BR]] 125 126 '''Return value:''' 127 This function always returns '''WDI_SUCCESS'''. 103 128 104 129 === wdi_create_inf() ===