diff --git a/nx/include/switch/services/usbds.h b/nx/include/switch/services/usbds.h index 2d33481f..a2f2a594 100644 --- a/nx/include/switch/services/usbds.h +++ b/nx/include/switch/services/usbds.h @@ -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 diff --git a/nx/source/services/usbds.c b/nx/source/services/usbds.c index b978d735..14d74452 100644 --- a/nx/source/services/usbds.c +++ b/nx/source/services/usbds.c @@ -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;