mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
const params for usbDs
This commit is contained in:
parent
093471609d
commit
b49cb8a1a6
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user