u8* -> void* and spaces -> tabs

This commit is contained in:
LiquidFenrir 2019-07-21 22:52:13 +02:00
parent 723fb3111f
commit b305b1e12b
2 changed files with 33 additions and 33 deletions

View File

@ -95,31 +95,31 @@ Result ACU_GetLastDetailErrorCode(u32* errorCode);
* @brief Prepares a buffer to hold the configuration data to start a connection. * @brief Prepares a buffer to hold the configuration data to start a connection.
* @param config Pointer to a buffer of size at least 0x200 to contain the data. * @param config Pointer to a buffer of size at least 0x200 to contain the data.
*/ */
Result ACU_CreateDefaultConfig(u8* config); Result ACU_CreateDefaultConfig(void* config);
/** /**
* @brief Sets something that makes the connection reliable. * @brief Sets something that makes the connection reliable.
* @param config Pointer to a buffer of size at least 0x200 used with ACU_CreateDefaultConfig previously. * @param config Pointer to a buffer of size at least 0x200 used with ACU_CreateDefaultConfig previously.
* @param area Always 2 ? * @param area Always 2 ?
*/ */
Result ACU_SetNetworkArea(u8* config, u8 area); Result ACU_SetNetworkArea(void* config, u8 area);
/** /**
* @brief Sets the slot to use when connecting. * @brief Sets the slot to use when connecting.
* @param config Pointer to a buffer of size at least 0x200 used with ACU_CreateDefaultConfig previously. * @param config Pointer to a buffer of size at least 0x200 used with ACU_CreateDefaultConfig previously.
* @param type Allowed slots flag. 1 for slot 1, 2 for slot 2, 4 for slot 3. * @param type Allowed slots flag. 1 for slot 1, 2 for slot 2, 4 for slot 3.
*/ */
Result ACU_SetAllowApType(u8* config, u8 type); Result ACU_SetAllowApType(void* config, u8 type);
/** /**
* @brief Sets something that makes the connection reliable. * @brief Sets something that makes the connection reliable.
* @param config Pointer to a buffer of size at least 0x200 used with ACU_CreateDefaultConfig previously. * @param config Pointer to a buffer of size at least 0x200 used with ACU_CreateDefaultConfig previously.
*/ */
Result ACU_SetRequestEulaVersion(u8* config); Result ACU_SetRequestEulaVersion(void* config);
/** /**
* @brief Starts the connection procedure. * @brief Starts the connection procedure.
* @param config Pointer to a buffer of size at least 0x200 used with ACU_CreateDefaultConfig previously. * @param config Pointer to a buffer of size at least 0x200 used with ACU_CreateDefaultConfig previously.
* @param connectionHandle Handle created with svcCreateEvent to wait on until the connection succeeds or fails. * @param connectionHandle Handle created with svcCreateEvent to wait on until the connection succeeds or fails.
*/ */
Result ACU_ConnectAsync(u8* config, Handle connectionHandle); Result ACU_ConnectAsync(const void* config, Handle connectionHandle);

View File

@ -198,7 +198,7 @@ Result ACU_GetLastDetailErrorCode(u32* errorCode)
return (Result)cmdbuf[1]; return (Result)cmdbuf[1];
} }
Result ACU_CreateDefaultConfig(u8* config) Result ACU_CreateDefaultConfig(void* config)
{ {
Result ret=0; Result ret=0;
u32 *cmdbuf = getThreadCommandBuffer(); u32 *cmdbuf = getThreadCommandBuffer();
@ -213,25 +213,25 @@ Result ACU_CreateDefaultConfig(u8* config)
return (Result)cmdbuf[1]; return (Result)cmdbuf[1];
} }
Result ACU_SetNetworkArea(u8* config, u8 area) Result ACU_SetNetworkArea(void* config, u8 area)
{ {
Result ret=0; Result ret=0;
u32 *cmdbuf = getThreadCommandBuffer(); u32 *cmdbuf = getThreadCommandBuffer();
u32 *staticbufs = getThreadStaticBuffers(); u32 *staticbufs = getThreadStaticBuffers();
cmdbuf[0] = IPC_MakeHeader(0x25,1,2); // 0x250042 cmdbuf[0] = IPC_MakeHeader(0x25,1,2); // 0x250042
cmdbuf[1] = area; cmdbuf[1] = area;
cmdbuf[2] = IPC_Desc_StaticBuffer(0x200, 0); cmdbuf[2] = IPC_Desc_StaticBuffer(0x200, 0);
cmdbuf[3] = (u32)config; cmdbuf[3] = (u32)config;
staticbufs[0] = IPC_Desc_StaticBuffer(0x200, 0); staticbufs[0] = IPC_Desc_StaticBuffer(0x200, 0);
staticbufs[1] = (u32)config; staticbufs[1] = (u32)config;
if(R_FAILED(ret = svcSendSyncRequest(acHandle))) return ret; if(R_FAILED(ret = svcSendSyncRequest(acHandle))) return ret;
return (Result)cmdbuf[1]; return (Result)cmdbuf[1];
} }
Result ACU_SetAllowApType(u8* config, u8 type) Result ACU_SetAllowApType(void* config, u8 type)
{ {
Result ret=0; Result ret=0;
u32 *cmdbuf = getThreadCommandBuffer(); u32 *cmdbuf = getThreadCommandBuffer();
@ -249,26 +249,26 @@ Result ACU_SetAllowApType(u8* config, u8 type)
return (Result)cmdbuf[1]; return (Result)cmdbuf[1];
} }
Result ACU_SetRequestEulaVersion(u8* config) Result ACU_SetRequestEulaVersion(void* config)
{ {
Result ret=0; Result ret=0;
u32 *cmdbuf = getThreadCommandBuffer(); u32 *cmdbuf = getThreadCommandBuffer();
u32 *staticbufs = getThreadStaticBuffers(); u32 *staticbufs = getThreadStaticBuffers();
cmdbuf[0] = IPC_MakeHeader(0x2D,2,2); // 0x2D0082 cmdbuf[0] = IPC_MakeHeader(0x2D,2,2); // 0x2D0082
cmdbuf[1] = 0; cmdbuf[1] = 0;
cmdbuf[2] = 0; cmdbuf[2] = 0;
cmdbuf[3] = IPC_Desc_StaticBuffer(0x200, 0); cmdbuf[3] = IPC_Desc_StaticBuffer(0x200, 0);
cmdbuf[4] = (u32)config; cmdbuf[4] = (u32)config;
staticbufs[0] = IPC_Desc_StaticBuffer(0x200, 0); staticbufs[0] = IPC_Desc_StaticBuffer(0x200, 0);
staticbufs[1] = (u32)config; staticbufs[1] = (u32)config;
if(R_FAILED(ret = svcSendSyncRequest(acHandle))) return ret; if(R_FAILED(ret = svcSendSyncRequest(acHandle))) return ret;
return (Result)cmdbuf[1]; return (Result)cmdbuf[1];
} }
Result ACU_ConnectAsync(u8* config, Handle connectionHandle) Result ACU_ConnectAsync(const void* config, Handle connectionHandle)
{ {
Result ret=0; Result ret=0;
u32 *cmdbuf = getThreadCommandBuffer(); u32 *cmdbuf = getThreadCommandBuffer();