mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 10:32:15 +02:00
Fixed typos.
This commit is contained in:
parent
27dcf8eab0
commit
8fc61674ee
@ -40,7 +40,7 @@ size_t usbCommsReadEx(void* buffer, size_t size, u32 interface);
|
||||
size_t usbCommsWriteEx(const void* buffer, size_t size, u32 interface);
|
||||
|
||||
/// Gets the raw usbDs data for the default usbComms interface.
|
||||
Result usbCommsGetInfo(UsbDsInterface ** interface, UsbDsEndpoint ** endpoint_in, UsbDsEndpoint ** endpoint_out);
|
||||
Result usbCommsGetInfo(UsbDsInterface ** interface_data, UsbDsEndpoint ** endpoint_in, UsbDsEndpoint ** endpoint_out);
|
||||
|
||||
/// Same as usbCommsGetInfo except with the specified interface.
|
||||
Result usbCommsGetInfoEx(UsbDsInterface ** interface, UsbDsEndpoint ** endpoint_in, UsbDsEndpoint ** endpoint_out, u32 interface);
|
||||
Result usbCommsGetInfoEx(UsbDsInterface ** interface_data, UsbDsEndpoint ** endpoint_in, UsbDsEndpoint ** endpoint_out, u32 interface);
|
@ -599,19 +599,19 @@ size_t usbCommsWrite(const void* buffer, size_t size)
|
||||
return usbCommsWriteEx(buffer, size, 0);
|
||||
}
|
||||
|
||||
Result usbCommsGetInfoEx(UsbDsInterface ** interface, UsbDsEndpoint ** endpoint_in, UsbDsEndpoint ** endpoint_out, u32 interface) {
|
||||
Result usbCommsGetInfoEx(UsbDsInterface ** interface_data, UsbDsEndpoint ** endpoint_in, UsbDsEndpoint ** endpoint_out, u32 interface) {
|
||||
|
||||
usbCommsInterface *inter = &g_usbCommsInterfaces[interface];
|
||||
Result rc;
|
||||
|
||||
if interface >= TOTAL_INTERFACES || !inter->initialized {
|
||||
*interface = NULL;
|
||||
if(interface >= TOTAL_INTERFACES || !inter->initialized){
|
||||
*interface_data = NULL;
|
||||
*endpoint_in = NULL;
|
||||
*endpoint_out = NULL;
|
||||
rc = MAKERESULT(Module_Libnx, LibnxError_NotInitialized);
|
||||
}
|
||||
else {
|
||||
*interface = inter->interface;
|
||||
*interface_data = inter->interface;
|
||||
*endpoint_in = inter->endpoint_in;
|
||||
*endpoint_out = outter->endpoint_out;
|
||||
rc = 0;
|
||||
@ -620,6 +620,6 @@ Result usbCommsGetInfoEx(UsbDsInterface ** interface, UsbDsEndpoint ** endpoint_
|
||||
return rc;
|
||||
}
|
||||
|
||||
Result usbCommsGetInfo(UsbDsInterface ** interface, UsbDsEndpoint ** endpoint_in, UsbDsEndpoint ** endpoint_out) {
|
||||
return usbCommsGetInfoEx(interface, endpoint_in, endpoint_out, 0);
|
||||
Result usbCommsGetInfo(UsbDsInterface ** interface_data, UsbDsEndpoint ** endpoint_in, UsbDsEndpoint ** endpoint_out) {
|
||||
return usbCommsGetInfoEx(interface_data, endpoint_in, endpoint_out, 0);
|
||||
}
|
Loading…
Reference in New Issue
Block a user