mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 18:42: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);
|
size_t usbCommsWriteEx(const void* buffer, size_t size, u32 interface);
|
||||||
|
|
||||||
/// Gets the raw usbDs data for the default usbComms 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.
|
/// 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);
|
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];
|
usbCommsInterface *inter = &g_usbCommsInterfaces[interface];
|
||||||
Result rc;
|
Result rc;
|
||||||
|
|
||||||
if interface >= TOTAL_INTERFACES || !inter->initialized {
|
if(interface >= TOTAL_INTERFACES || !inter->initialized){
|
||||||
*interface = NULL;
|
*interface_data = NULL;
|
||||||
*endpoint_in = NULL;
|
*endpoint_in = NULL;
|
||||||
*endpoint_out = NULL;
|
*endpoint_out = NULL;
|
||||||
rc = MAKERESULT(Module_Libnx, LibnxError_NotInitialized);
|
rc = MAKERESULT(Module_Libnx, LibnxError_NotInitialized);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
*interface = inter->interface;
|
*interface_data = inter->interface;
|
||||||
*endpoint_in = inter->endpoint_in;
|
*endpoint_in = inter->endpoint_in;
|
||||||
*endpoint_out = outter->endpoint_out;
|
*endpoint_out = outter->endpoint_out;
|
||||||
rc = 0;
|
rc = 0;
|
||||||
@ -620,6 +620,6 @@ Result usbCommsGetInfoEx(UsbDsInterface ** interface, UsbDsEndpoint ** endpoint_
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
Result usbCommsGetInfo(UsbDsInterface ** interface, UsbDsEndpoint ** endpoint_in, UsbDsEndpoint ** endpoint_out) {
|
Result usbCommsGetInfo(UsbDsInterface ** interface_data, UsbDsEndpoint ** endpoint_in, UsbDsEndpoint ** endpoint_out) {
|
||||||
return usbCommsGetInfoEx(interface, endpoint_in, endpoint_out, 0);
|
return usbCommsGetInfoEx(interface_data, endpoint_in, endpoint_out, 0);
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user