mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
Renamed ipc_buffer_size to pointer_buffer_size for ipcAddSendSmart/ipcAddRecvSmart.
This commit is contained in:
parent
f92852fbe5
commit
836bb367aa
@ -198,13 +198,13 @@ static inline void ipcAddRecvStatic(IpcCommand* cmd, void* buffer, size_t size,
|
|||||||
/**
|
/**
|
||||||
* @brief Adds a smart-buffer (buffer + static-buffer pair) to an IPC command structure.
|
* @brief Adds a smart-buffer (buffer + static-buffer pair) to an IPC command structure.
|
||||||
* @param cmd IPC command structure.
|
* @param cmd IPC command structure.
|
||||||
* @param ipc_buffer_size IPC buffer size.
|
* @param pointer_buffer_size Pointer buffer size.
|
||||||
* @param buffer Address of the buffer.
|
* @param buffer Address of the buffer.
|
||||||
* @param size Size of the buffer.
|
* @param size Size of the buffer.
|
||||||
* @param index Index of buffer.
|
* @param index Index of buffer.
|
||||||
*/
|
*/
|
||||||
static inline void ipcAddSendSmart(IpcCommand* cmd, size_t ipc_buffer_size, const void* buffer, size_t size, u8 index) {
|
static inline void ipcAddSendSmart(IpcCommand* cmd, size_t pointer_buffer_size, const void* buffer, size_t size, u8 index) {
|
||||||
if (ipc_buffer_size != 0 && size <= ipc_buffer_size) {
|
if (pointer_buffer_size != 0 && size <= pointer_buffer_size) {
|
||||||
ipcAddSendBuffer(cmd, NULL, 0, BufferType_Normal);
|
ipcAddSendBuffer(cmd, NULL, 0, BufferType_Normal);
|
||||||
ipcAddSendStatic(cmd, buffer, size, index);
|
ipcAddSendStatic(cmd, buffer, size, index);
|
||||||
} else {
|
} else {
|
||||||
@ -216,13 +216,13 @@ static inline void ipcAddSendSmart(IpcCommand* cmd, size_t ipc_buffer_size, cons
|
|||||||
/**
|
/**
|
||||||
* @brief Adds a smart-receive-buffer (buffer + static-receive-buffer pair) to an IPC command structure.
|
* @brief Adds a smart-receive-buffer (buffer + static-receive-buffer pair) to an IPC command structure.
|
||||||
* @param cmd IPC command structure.
|
* @param cmd IPC command structure.
|
||||||
* @param ipc_buffer_size IPC buffer size.
|
* @param pointer_buffer_size Pointer buffer size.
|
||||||
* @param buffer Address of the buffer.
|
* @param buffer Address of the buffer.
|
||||||
* @param size Size of the buffer.
|
* @param size Size of the buffer.
|
||||||
* @param index Index of buffer.
|
* @param index Index of buffer.
|
||||||
*/
|
*/
|
||||||
static inline void ipcAddRecvSmart(IpcCommand* cmd, size_t ipc_buffer_size, void* buffer, size_t size, u8 index) {
|
static inline void ipcAddRecvSmart(IpcCommand* cmd, size_t pointer_buffer_size, void* buffer, size_t size, u8 index) {
|
||||||
if (ipc_buffer_size != 0 && size <= ipc_buffer_size) {
|
if (pointer_buffer_size != 0 && size <= pointer_buffer_size) {
|
||||||
ipcAddRecvBuffer(cmd, NULL, 0, BufferType_Normal);
|
ipcAddRecvBuffer(cmd, NULL, 0, BufferType_Normal);
|
||||||
ipcAddRecvStatic(cmd, buffer, size, index);
|
ipcAddRecvStatic(cmd, buffer, size, index);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user