const params for usbDs

This commit is contained in:
Michael Theall 2019-03-15 17:58:44 -05:00 committed by fincs
parent 093471609d
commit b49cb8a1a6
2 changed files with 4 additions and 4 deletions

View File

@ -85,7 +85,7 @@ Result usbDsAddUsbStringDescriptor(u8* out_index, const char* string);
Result usbDsAddUsbLanguageStringDescriptor(u8* out_index, const u16* lang_ids, u16 num_langs);
Result usbDsDeleteUsbStringDescriptor(u8 index);
Result usbDsSetUsbDeviceDescriptor(UsbDeviceSpeed speed, struct usb_device_descriptor* descriptor);
Result usbDsSetBinaryObjectStore(void* bos, size_t bos_size);
Result usbDsSetBinaryObjectStore(const void* bos, size_t bos_size);
Result usbDsEnable(void);
Result usbDsDisable(void);
@ -106,7 +106,7 @@ Result usbDsInterface_GetDsEndpoint(UsbDsInterface* interface, UsbDsEndpoint** e
/// Added in 5.0.0
Result usbDsInterface_RegisterEndpoint(UsbDsInterface* interface, UsbDsEndpoint** endpoint, u8 endpoint_address);
Result usbDsInterface_AppendConfigurationData(UsbDsInterface* interface, UsbDeviceSpeed speed, void* buffer, size_t size);
Result usbDsInterface_AppendConfigurationData(UsbDsInterface* interface, UsbDeviceSpeed speed, const void* buffer, size_t size);
/// IDsEndpoint

View File

@ -860,7 +860,7 @@ Result usbDsSetUsbDeviceDescriptor(UsbDeviceSpeed speed, struct usb_device_descr
return rc;
}
Result usbDsSetBinaryObjectStore(void* bos, size_t bos_size) {
Result usbDsSetBinaryObjectStore(const void* bos, size_t bos_size) {
IpcCommand c;
ipcInitialize(&c);
@ -1061,7 +1061,7 @@ Result usbDsInterface_RegisterEndpoint(UsbDsInterface* interface, UsbDsEndpoint*
return rc;
}
Result usbDsInterface_AppendConfigurationData(UsbDsInterface* interface, UsbDeviceSpeed speed, void* buffer, size_t size) {
Result usbDsInterface_AppendConfigurationData(UsbDsInterface* interface, UsbDeviceSpeed speed, const void* buffer, size_t size) {
if(!interface->initialized)return MAKERESULT(Module_Libnx, LibnxError_NotInitialized);
IpcCommand c;