Browse Source

Update bindings dependencies

pull/125/head
Andrea Ciliberti 2 years ago
parent
commit
38d92d63cc
  1. 4
      ctru-sys/bindgen-ctru-sys/Cargo.toml
  2. 62
      ctru-sys/src/bindings.rs

4
ctru-sys/bindgen-ctru-sys/Cargo.toml

@ -4,5 +4,5 @@ version = "0.1.0" @@ -4,5 +4,5 @@ version = "0.1.0"
edition = "2021"
[dependencies]
bindgen = "0.64"
doxygen-rs = "0.4"
bindgen = "0.65.1"
doxygen-rs = "0.4.2"

62
ctru-sys/src/bindings.rs generated

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.64.0 */
/* automatically generated by rust-bindgen 0.65.1 */
#[repr(C)]
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
@ -2356,7 +2356,7 @@ impl Default for StartupInfo { @@ -2356,7 +2356,7 @@ impl Default for StartupInfo {
}
extern "C" {
#[must_use]
#[doc = "Memory management\n# **\n* Controls memory mapping\n* # Arguments\n\n* `addr_out` (direction out) - The virtual address resulting from the operation. Usually the same as addr0.\n* * `addr0` - The virtual address to be used for the operation.\n* * `addr1` - The virtual address to be (un)mirrored by `addr0` when using MEMOP_MAP or MEMOP_UNMAP.\n* It has to be pointing to a RW memory.\n* Use NULL if the operation is MEMOP_FREE or MEMOP_ALLOC.\n* * `size` - The requested size for MEMOP_ALLOC and MEMOP_ALLOC_LINEAR.\n* * `op` - Operation flags. See MemOp.\n* * `perm` - A combination of MEMPERM_READ and MEMPERM_WRITE. Using MEMPERM_EXECUTE will return an error.\n* Value 0 is used when unmapping memory.\n*\n* If a memory is mapped for two or more addresses, you have to use MEMOP_UNMAP before being able to MEMOP_FREE it.\n* MEMOP_MAP will fail if `addr1` was already mapped to another address.\n*\n* More information is available at http://3dbrew.org/wiki/SVC#Memory_Mapping.\n*\n* [`svcControlProcessMemory`]\n*/"]
#[doc = "Memory management\n# *\n* Controls memory mapping\n # Arguments\n\n* `addr_out` (direction out) - The virtual address resulting from the operation. Usually the same as addr0.\n * `addr0` - The virtual address to be used for the operation.\n * `addr1` - The virtual address to be (un)mirrored by `addr0` when using MEMOP_MAP or MEMOP_UNMAP.\n It has to be pointing to a RW memory.\n* Use NULL if the operation is MEMOP_FREE or MEMOP_ALLOC.\n * `size` - The requested size for MEMOP_ALLOC and MEMOP_ALLOC_LINEAR.\n * `op` - Operation flags. See MemOp.\n * `perm` - A combination of MEMPERM_READ and MEMPERM_WRITE. Using MEMPERM_EXECUTE will return an error.\n Value 0 is used when unmapping memory.\n*\n* If a memory is mapped for two or more addresses, you have to use MEMOP_UNMAP before being able to MEMOP_FREE it.\n* MEMOP_MAP will fail if `addr1` was already mapped to another address.\n\n* More information is available at http://3dbrew.org/wiki/SVC#Memory_Mapping.\n*\n* [`svcControlProcessMemory`]\n/"]
pub fn svcControlMemory(
addr_out: *mut u32_,
addr0: u32_,
@ -2431,7 +2431,7 @@ extern "C" { @@ -2431,7 +2431,7 @@ extern "C" {
}
extern "C" {
#[must_use]
#[doc = "Process management\n# **\n* Gets the handle of a process.\n* # Arguments\n\n* `process` (direction out) - The handle of the process\n* processId The ID of the process to open\n*/"]
#[doc = "Process management\n# *\n* Gets the handle of a process.\n # Arguments\n\n* `process` (direction out) - The handle of the process\n * `processId` - The ID of the process to open\n/"]
pub fn svcOpenProcess(process: *mut Handle, processId: u32_) -> Result;
}
extern "C" {
@ -2543,7 +2543,7 @@ extern "C" { @@ -2543,7 +2543,7 @@ extern "C" {
}
extern "C" {
#[must_use]
#[doc = "Multithreading\n# **\n* Creates a new thread.\n* # Arguments\n\n* `thread` (direction out) - The thread handle\n* * `entrypoint` - The function that will be called first upon thread creation\n* * `arg` - The argument passed to `entrypoint`\n* * `stack_top` - The top of the thread's stack. Must be 0x8 bytes mem-aligned.\n* * `thread_priority` - Low values gives the thread higher priority.\n* For userland apps, this has to be within the range [0x18;0x3F]\n* * `processor_id` - The id of the processor the thread should be ran on. Those are labelled starting from 0.\n* For old 3ds it has to be <2, and for new 3DS <4.\n* Value -1 means all CPUs and -2 read from the Exheader.\n*\n* The processor with ID 1 is the system processor.\n* To enable multi-threading on this core you need to call APT_SetAppCpuTimeLimit at least once with a non-zero value.\n*\n* Since a thread is considered as a waitable object, you can use svcWaitSynchronization\n* and svcWaitSynchronizationN to join with it.\n*\n* > **Note:** The kernel will clear the `stack_top's` address low 3 bits to make sure it is 0x8-bytes aligned.\n*/"]
#[doc = "Multithreading\n# *\n* Creates a new thread.\n # Arguments\n\n* `thread` (direction out) - The thread handle\n * `entrypoint` - The function that will be called first upon thread creation\n * `arg` - The argument passed to `entrypoint`\n * `stack_top` - The top of the thread's stack. Must be 0x8 bytes mem-aligned.\n * `thread_priority` - Low values gives the thread higher priority.\n For userland apps, this has to be within the range [0x18;0x3F]\n* * `processor_id` - The id of the processor the thread should be ran on. Those are labelled starting from 0.\n For old 3ds it has to be <2, and for new 3DS <4.\n* Value -1 means all CPUs and -2 read from the Exheader.\n*\n* The processor with ID 1 is the system processor.\n* To enable multi-threading on this core you need to call APT_SetAppCpuTimeLimit at least once with a non-zero value.\n*\n* Since a thread is considered as a waitable object, you can use svcWaitSynchronization\n and svcWaitSynchronizationN to join with it.\n\n* > **Note:** The kernel will clear the `stack_top's` address low 3 bits to make sure it is 0x8-bytes aligned.\n/"]
pub fn svcCreateThread(
thread: *mut Handle,
entrypoint: ThreadFunc,
@ -2555,7 +2555,7 @@ extern "C" { @@ -2555,7 +2555,7 @@ extern "C" {
}
extern "C" {
#[must_use]
#[doc = " Gets the handle of a thread.\n # Arguments\n\n* `thread` (direction out) - The handle of the thread\n process The ID of the process linked to the thread"]
#[doc = "Gets the handle of a thread.\n # Arguments\n\n* `thread` (direction out) - The handle of the thread\n * `process` - The ID of the process linked to the thread"]
pub fn svcOpenThread(thread: *mut Handle, process: Handle, threadId: u32_) -> Result;
}
extern "C" {
@ -2670,7 +2670,7 @@ extern "C" { @@ -2670,7 +2670,7 @@ extern "C" {
}
extern "C" {
#[must_use]
#[doc = "Synchronization\n# **\n* Creates a mutex.\n* # Arguments\n\n* `mutex` (direction out) - Pointer to output the handle of the created mutex to.\n* * `initially_locked` - Whether the mutex should be initially locked.\n*/"]
#[doc = "Synchronization\n# *\n* Creates a mutex.\n # Arguments\n\n* `mutex` (direction out) - Pointer to output the handle of the created mutex to.\n * `initially_locked` - Whether the mutex should be initially locked.\n/"]
pub fn svcCreateMutex(mutex: *mut Handle, initially_locked: bool) -> Result;
}
extern "C" {
@ -2778,7 +2778,7 @@ extern "C" { @@ -2778,7 +2778,7 @@ extern "C" {
}
extern "C" {
#[must_use]
#[doc = "Time\n# **\n* Creates a timer.\n* # Arguments\n\n* `timer` (direction out) - Pointer to output the handle of the created timer to.\n* * `reset_type` - Type of reset to perform on the timer.\n*/"]
#[doc = "Time\n# *\n* Creates a timer.\n # Arguments\n\n* `timer` (direction out) - Pointer to output the handle of the created timer to.\n * `reset_type` - Type of reset to perform on the timer.\n/"]
pub fn svcCreateTimer(timer: *mut Handle, reset_type: ResetType) -> Result;
}
extern "C" {
@ -2802,7 +2802,7 @@ extern "C" { @@ -2802,7 +2802,7 @@ extern "C" {
}
extern "C" {
#[must_use]
#[doc = "System\n# **\n* Closes a handle.\n* # Arguments\n\n* `handle` - Handle to close.\n*/"]
#[doc = "System\n# *\n* Closes a handle.\n # Arguments\n\n* `handle` - Handle to close.\n/"]
pub fn svcCloseHandle(handle: Handle) -> Result;
}
extern "C" {
@ -2900,7 +2900,7 @@ extern "C" { @@ -2900,7 +2900,7 @@ extern "C" {
pub fn svcSetWifiEnabled(enabled: bool) -> Result;
}
extern "C" {
#[doc = "Debugging\n# **\n* Breaks execution.\n* # Arguments\n\n* `breakReason` - Reason for breaking.\n*/"]
#[doc = "Debugging\n# *\n* Breaks execution.\n # Arguments\n\n* `breakReason` - Reason for breaking.\n/"]
pub fn svcBreak(breakReason: UserBreakType);
}
extern "C" {
@ -5045,7 +5045,7 @@ extern "C" { @@ -5045,7 +5045,7 @@ extern "C" {
) -> isize;
}
extern "C" {
#[doc = " Decode decompression header\n # Arguments\n\n* `type` (direction out) - Decompression type\n * `size` (direction out) - Decompressed size\n callback Data callback (see decompressV())\n userdata User data passed to callback (see decompressV())\n insize Size of userdata (see decompressV())\n # Returns\n\nBytes consumed\n * `-1` - error"]
#[doc = "Decode decompression header\n # Arguments\n\n* `type` (direction out) - Decompression type\n * `size` (direction out) - Decompressed size\n * `callback` (direction in) - Data callback (see decompressV())\n * `userdata` (direction in) - User data passed to callback (see decompressV())\n * `insize` (direction in) - Size of userdata (see decompressV())\n # Returns\n\nBytes consumed\n * `-1` - error"]
pub fn decompressHeader(
type_: *mut decompressType,
size: *mut usize,
@ -5106,43 +5106,43 @@ extern "C" { @@ -5106,43 +5106,43 @@ extern "C" {
) -> bool;
}
extern "C" {
#[doc = " Convert a UTF-8 sequence into a UTF-32 codepoint\n\n # Arguments\n\n* `out` (direction out) - Output codepoint\n in Input sequence\n\n # Returns\n\nnumber of input code units consumed\n -1 for error"]
#[doc = "Convert a UTF-8 sequence into a UTF-32 codepoint\n\n # Arguments\n\n* `out` (direction out) - Output codepoint\n * `in` (direction in) - Input sequence\n\n # Returns\n\nnumber of input code units consumed\n -1 for error"]
pub fn decode_utf8(out: *mut u32, in_: *const u8) -> isize;
}
extern "C" {
#[doc = " Convert a UTF-16 sequence into a UTF-32 codepoint\n\n # Arguments\n\n* `out` (direction out) - Output codepoint\n in Input sequence\n\n # Returns\n\nnumber of input code units consumed\n -1 for error"]
#[doc = "Convert a UTF-16 sequence into a UTF-32 codepoint\n\n # Arguments\n\n* `out` (direction out) - Output codepoint\n * `in` (direction in) - Input sequence\n\n # Returns\n\nnumber of input code units consumed\n -1 for error"]
pub fn decode_utf16(out: *mut u32, in_: *const u16) -> isize;
}
extern "C" {
#[doc = " Convert a UTF-32 codepoint into a UTF-8 sequence\n\n # Arguments\n\n* `out` (direction out) - Output sequence\n in Input codepoint\n\n # Returns\n\nnumber of output code units produced\n -1 for error\n\n > **Note:** _out_ must be able to store 4 code units"]
#[doc = "Convert a UTF-32 codepoint into a UTF-8 sequence\n\n # Arguments\n\n* `out` (direction out) - Output sequence\n * `in` (direction in) - Input codepoint\n\n # Returns\n\nnumber of output code units produced\n -1 for error\n\n > **Note:** _out_ must be able to store 4 code units"]
pub fn encode_utf8(out: *mut u8, in_: u32) -> isize;
}
extern "C" {
#[doc = " Convert a UTF-32 codepoint into a UTF-16 sequence\n\n # Arguments\n\n* `out` (direction out) - Output sequence\n in Input codepoint\n\n # Returns\n\nnumber of output code units produced\n -1 for error\n\n > **Note:** _out_ must be able to store 2 code units"]
#[doc = "Convert a UTF-32 codepoint into a UTF-16 sequence\n\n # Arguments\n\n* `out` (direction out) - Output sequence\n * `in` (direction in) - Input codepoint\n\n # Returns\n\nnumber of output code units produced\n -1 for error\n\n > **Note:** _out_ must be able to store 2 code units"]
pub fn encode_utf16(out: *mut u16, in_: u32) -> isize;
}
extern "C" {
#[doc = " Convert a UTF-8 sequence into a UTF-16 sequence\n\n Fills the output buffer up to _len_ code units.\n Returns the number of code units that the input would produce;\n if it returns greater than _len,_ the output has been\n truncated.\n\n # Arguments\n\n* `out` (direction out) - Output sequence\n in Input sequence (null-terminated)\n len Output length\n\n # Returns\n\nnumber of output code units produced\n -1 for error\n\n > **Note:** _out_ is not null-terminated"]
#[doc = "Convert a UTF-8 sequence into a UTF-16 sequence\n\n Fills the output buffer up to _len_ code units.\n Returns the number of code units that the input would produce;\n if it returns greater than _len,_ the output has been\n truncated.\n\n # Arguments\n\n* `out` (direction out) - Output sequence\n * `in` (direction in) - Input sequence (null-terminated)\n * `len` (direction in) - Output length\n\n # Returns\n\nnumber of output code units produced\n -1 for error\n\n > **Note:** _out_ is not null-terminated"]
pub fn utf8_to_utf16(out: *mut u16, in_: *const u8, len: usize) -> isize;
}
extern "C" {
#[doc = " Convert a UTF-8 sequence into a UTF-32 sequence\n\n Fills the output buffer up to _len_ code units.\n Returns the number of code units that the input would produce;\n if it returns greater than _len,_ the output has been\n truncated.\n\n # Arguments\n\n* `out` (direction out) - Output sequence\n in Input sequence (null-terminated)\n len Output length\n\n # Returns\n\nnumber of output code units produced\n -1 for error\n\n > **Note:** _out_ is not null-terminated"]
#[doc = "Convert a UTF-8 sequence into a UTF-32 sequence\n\n Fills the output buffer up to _len_ code units.\n Returns the number of code units that the input would produce;\n if it returns greater than _len,_ the output has been\n truncated.\n\n # Arguments\n\n* `out` (direction out) - Output sequence\n * `in` (direction in) - Input sequence (null-terminated)\n * `len` (direction in) - Output length\n\n # Returns\n\nnumber of output code units produced\n -1 for error\n\n > **Note:** _out_ is not null-terminated"]
pub fn utf8_to_utf32(out: *mut u32, in_: *const u8, len: usize) -> isize;
}
extern "C" {
#[doc = " Convert a UTF-16 sequence into a UTF-8 sequence\n\n Fills the output buffer up to _len_ code units.\n Returns the number of code units that the input would produce;\n if it returns greater than _len,_ the output has been\n truncated.\n\n # Arguments\n\n* `out` (direction out) - Output sequence\n in Input sequence (null-terminated)\n len Output length\n\n # Returns\n\nnumber of output code units produced\n -1 for error\n\n > **Note:** _out_ is not null-terminated"]
#[doc = "Convert a UTF-16 sequence into a UTF-8 sequence\n\n Fills the output buffer up to _len_ code units.\n Returns the number of code units that the input would produce;\n if it returns greater than _len,_ the output has been\n truncated.\n\n # Arguments\n\n* `out` (direction out) - Output sequence\n * `in` (direction in) - Input sequence (null-terminated)\n * `len` (direction in) - Output length\n\n # Returns\n\nnumber of output code units produced\n -1 for error\n\n > **Note:** _out_ is not null-terminated"]
pub fn utf16_to_utf8(out: *mut u8, in_: *const u16, len: usize) -> isize;
}
extern "C" {
#[doc = " Convert a UTF-16 sequence into a UTF-32 sequence\n\n Fills the output buffer up to _len_ code units.\n Returns the number of code units that the input would produce;\n if it returns greater than _len,_ the output has been\n truncated.\n\n # Arguments\n\n* `out` (direction out) - Output sequence\n in Input sequence (null-terminated)\n len Output length\n\n # Returns\n\nnumber of output code units produced\n -1 for error\n\n > **Note:** _out_ is not null-terminated"]
#[doc = "Convert a UTF-16 sequence into a UTF-32 sequence\n\n Fills the output buffer up to _len_ code units.\n Returns the number of code units that the input would produce;\n if it returns greater than _len,_ the output has been\n truncated.\n\n # Arguments\n\n* `out` (direction out) - Output sequence\n * `in` (direction in) - Input sequence (null-terminated)\n * `len` (direction in) - Output length\n\n # Returns\n\nnumber of output code units produced\n -1 for error\n\n > **Note:** _out_ is not null-terminated"]
pub fn utf16_to_utf32(out: *mut u32, in_: *const u16, len: usize) -> isize;
}
extern "C" {
#[doc = " Convert a UTF-32 sequence into a UTF-8 sequence\n\n Fills the output buffer up to _len_ code units.\n Returns the number of code units that the input would produce;\n if it returns greater than _len,_ the output has been\n truncated.\n\n # Arguments\n\n* `out` (direction out) - Output sequence\n in Input sequence (null-terminated)\n len Output length\n\n # Returns\n\nnumber of output code units produced\n -1 for error\n\n > **Note:** _out_ is not null-terminated"]
#[doc = "Convert a UTF-32 sequence into a UTF-8 sequence\n\n Fills the output buffer up to _len_ code units.\n Returns the number of code units that the input would produce;\n if it returns greater than _len,_ the output has been\n truncated.\n\n # Arguments\n\n* `out` (direction out) - Output sequence\n * `in` (direction in) - Input sequence (null-terminated)\n * `len` (direction in) - Output length\n\n # Returns\n\nnumber of output code units produced\n -1 for error\n\n > **Note:** _out_ is not null-terminated"]
pub fn utf32_to_utf8(out: *mut u8, in_: *const u32, len: usize) -> isize;
}
extern "C" {
#[doc = " Convert a UTF-32 sequence into a UTF-16 sequence\n\n # Arguments\n\n* `out` (direction out) - Output sequence\n in Input sequence (null-terminated)\n len Output length\n\n # Returns\n\nnumber of output code units produced\n -1 for error\n\n > **Note:** _out_ is not null-terminated"]
#[doc = "Convert a UTF-32 sequence into a UTF-16 sequence\n\n # Arguments\n\n* `out` (direction out) - Output sequence\n * `in` (direction in) - Input sequence (null-terminated)\n * `len` (direction in) - Output length\n\n # Returns\n\nnumber of output code units produced\n -1 for error\n\n > **Note:** _out_ is not null-terminated"]
pub fn utf32_to_utf16(out: *mut u16, in_: *const u32, len: usize) -> isize;
}
extern "C" {
@ -17069,7 +17069,7 @@ pub struct ndspAdpcmData { @@ -17069,7 +17069,7 @@ pub struct ndspAdpcmData {
#[doc = "< Second to last outputted PCM16 sample."]
pub history1: s16,
}
#[doc = " Wave buffer struct."]
#[doc = "Wave buffer type."]
pub type ndspWaveBuf = tag_ndspWaveBuf;
#[doc = "< The wave buffer is not queued."]
pub const NDSP_WBUF_FREE: _bindgen_ty_29 = 0;
@ -17142,7 +17142,7 @@ pub type ndspAuxCallback = ::core::option::Option< @@ -17142,7 +17142,7 @@ pub type ndspAuxCallback = ::core::option::Option<
),
>;
extern "C" {
#[doc = "Initialization and basic operations\n# **\n* Sets up the DSP component.\n* # Arguments\n\n* `binary` - DSP binary to load.\n* * `size` - Size of the DSP binary.\n* * `progMask` - Program RAM block mask to load the binary to.\n* * `dataMask` - Data RAM block mask to load the binary to.\n*/"]
#[doc = "Initialization and basic operations\n# *\n* Sets up the DSP component.\n # Arguments\n\n* `binary` - DSP binary to load.\n * `size` - Size of the DSP binary.\n * `progMask` - Program RAM block mask to load the binary to.\n * `dataMask` - Data RAM block mask to load the binary to.\n/"]
pub fn ndspUseComponent(
binary: *const ::libc::c_void,
size: u32_,
@ -17168,7 +17168,7 @@ extern "C" { @@ -17168,7 +17168,7 @@ extern "C" {
pub fn ndspGetFrameCount() -> u32_;
}
extern "C" {
#[doc = "General parameters\n# **\n* Sets the master volume.\n* # Arguments\n\n* `volume` - Volume to set. Defaults to 1.0f.\n*/"]
#[doc = "General parameters\n# *\n* Sets the master volume.\n # Arguments\n\n* `volume` - Volume to set. Defaults to 1.0f.\n/"]
pub fn ndspSetMasterVol(volume: f32);
}
extern "C" {
@ -17208,7 +17208,7 @@ extern "C" { @@ -17208,7 +17208,7 @@ extern "C" {
pub fn ndspSetCallback(callback: ndspCallback, data: *mut ::libc::c_void);
}
extern "C" {
#[doc = "Surround\n# **\n* Sets the surround sound depth.\n* # Arguments\n\n* `depth` - Depth to set. Defaults to 0x7FFF.\n*/"]
#[doc = "Surround\n# *\n* Sets the surround sound depth.\n # Arguments\n\n* `depth` - Depth to set. Defaults to 0x7FFF.\n/"]
pub fn ndspSurroundSetDepth(depth: u16_);
}
extern "C" {
@ -17232,7 +17232,7 @@ extern "C" { @@ -17232,7 +17232,7 @@ extern "C" {
pub fn ndspSurroundGetRearRatio() -> u16_;
}
extern "C" {
#[doc = "Auxiliary output\n# **\n* Configures whether an auxiliary output is enabled.\n* # Arguments\n\n* `id` - ID of the auxiliary output.\n* * `enable` - Whether to enable the auxiliary output.\n*/"]
#[doc = "Auxiliary output\n# *\n* Configures whether an auxiliary output is enabled.\n # Arguments\n\n* `id` - ID of the auxiliary output.\n * `enable` - Whether to enable the auxiliary output.\n/"]
pub fn ndspAuxSetEnable(id: ::libc::c_int, enable: bool);
}
extern "C" {
@ -17302,7 +17302,7 @@ pub const NDSP_INTERP_NONE: ndspInterpType = 2; @@ -17302,7 +17302,7 @@ pub const NDSP_INTERP_NONE: ndspInterpType = 2;
#[doc = "Interpolation types."]
pub type ndspInterpType = ::libc::c_uint;
extern "C" {
#[doc = "Basic channel operation\n# **\n* Resets a channel.\n* # Arguments\n\n* `id` - ID of the channel (0..23).\n*/"]
#[doc = "Basic channel operation\n# *\n* Resets a channel.\n # Arguments\n\n* `id` - ID of the channel (0..23).\n/"]
pub fn ndspChnReset(id: ::libc::c_int);
}
extern "C" {
@ -17330,7 +17330,7 @@ extern "C" { @@ -17330,7 +17330,7 @@ extern "C" {
pub fn ndspChnSetPaused(id: ::libc::c_int, paused: bool);
}
extern "C" {
#[doc = "Configuration\n# **\n* Sets the format of a channel.\n* # Arguments\n\n* `id` - ID of the channel (0..23).\n* * `format` - Format to use.\n*/"]
#[doc = "Configuration\n# *\n* Sets the format of a channel.\n # Arguments\n\n* `id` - ID of the channel (0..23).\n * `format` - Format to use.\n/"]
pub fn ndspChnSetFormat(id: ::libc::c_int, format: u16_);
}
extern "C" {
@ -17366,7 +17366,7 @@ extern "C" { @@ -17366,7 +17366,7 @@ extern "C" {
pub fn ndspChnSetAdpcmCoefs(id: ::libc::c_int, coefs: *mut u16_);
}
extern "C" {
#[doc = "Wave buffers\n# **\n* Clears the wave buffer queue of a channel and stops playback.\n* # Arguments\n\n* `id` - ID of the channel (0..23).\n*/"]
#[doc = "Wave buffers\n# *\n* Clears the wave buffer queue of a channel and stops playback.\n # Arguments\n\n* `id` - ID of the channel (0..23).\n/"]
pub fn ndspChnWaveBufClear(id: ::libc::c_int);
}
extern "C" {
@ -17374,7 +17374,7 @@ extern "C" { @@ -17374,7 +17374,7 @@ extern "C" {
pub fn ndspChnWaveBufAdd(id: ::libc::c_int, buf: *mut ndspWaveBuf);
}
extern "C" {
#[doc = "IIR filters\n# **\n* Configures whether the IIR monopole filter of a channel is enabled.\n* # Arguments\n\n* `id` - ID of the channel (0..23).\n* * `enable` - Whether to enable the IIR monopole filter.\n*/"]
#[doc = "IIR filters\n# *\n* Configures whether the IIR monopole filter of a channel is enabled.\n # Arguments\n\n* `id` - ID of the channel (0..23).\n * `enable` - Whether to enable the IIR monopole filter.\n/"]
pub fn ndspChnIirMonoSetEnable(id: ::libc::c_int, enable: bool);
}
extern "C" {
@ -18176,7 +18176,7 @@ impl Default for TGLP_s { @@ -18176,7 +18176,7 @@ impl Default for TGLP_s {
}
}
}
#[doc = " Font character width information block structure."]
#[doc = "Font character width information block type."]
pub type CWDH_s = tag_CWDH_s;
#[doc = "Font character width information block structure."]
#[repr(C)]
@ -18208,7 +18208,7 @@ pub const CMAP_TYPE_TABLE: _bindgen_ty_36 = 1; @@ -18208,7 +18208,7 @@ pub const CMAP_TYPE_TABLE: _bindgen_ty_36 = 1;
pub const CMAP_TYPE_SCAN: _bindgen_ty_36 = 2;
#[doc = "Font character map methods."]
pub type _bindgen_ty_36 = ::libc::c_uint;
#[doc = " Font character map structure."]
#[doc = "Font character map type."]
pub type CMAP_s = tag_CMAP_s;
#[doc = "Font character map structure."]
#[repr(C)]

Loading…
Cancel
Save