mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-27 23:32:39 +02:00
gcc 13 fixes (#610)
This commit is contained in:
parent
d219884bfa
commit
8747689be1
@ -1270,7 +1270,7 @@ Result btdrvUnregisterGattNotification(u32 connection_handle, bool primary_servi
|
||||
* @param[in] size Output buffer size.
|
||||
* @oaram[out] type Output BleEventType.
|
||||
*/
|
||||
Result btdrvGetLeHidEventInfo(void* buffer, size_t size, u32 *type);
|
||||
Result btdrvGetLeHidEventInfo(void* buffer, size_t size, BtdrvBleEventType *type);
|
||||
|
||||
/**
|
||||
* @brief RegisterBleHidEvent
|
||||
|
@ -91,13 +91,13 @@ typedef struct CmifResponse {
|
||||
Handle* move_handles;
|
||||
} CmifResponse;
|
||||
|
||||
NX_CONSTEXPR void* cmifGetAlignedDataStart(u32* data_words, void* base)
|
||||
NX_INLINE void* cmifGetAlignedDataStart(u32* data_words, void* base)
|
||||
{
|
||||
intptr_t data_start = ((u8*)data_words - (u8*)base + 15) &~ 15;
|
||||
return (u8*)base + data_start;
|
||||
}
|
||||
|
||||
NX_CONSTEXPR CmifRequest cmifMakeRequest(void* base, CmifRequestFormat fmt)
|
||||
NX_INLINE CmifRequest cmifMakeRequest(void* base, CmifRequestFormat fmt)
|
||||
{
|
||||
// First of all, we need to figure out what size we need.
|
||||
u32 actual_size = 16;
|
||||
@ -156,7 +156,7 @@ NX_CONSTEXPR CmifRequest cmifMakeRequest(void* base, CmifRequestFormat fmt)
|
||||
return req;
|
||||
}
|
||||
|
||||
NX_CONSTEXPR void* cmifMakeControlRequest(void* base, u32 request_id, u32 size)
|
||||
NX_INLINE void* cmifMakeControlRequest(void* base, u32 request_id, u32 size)
|
||||
{
|
||||
u32 actual_size = 16 + sizeof(CmifInHeader) + size;
|
||||
HipcRequest hipc = hipcMakeRequestInline(base,
|
||||
@ -173,7 +173,7 @@ NX_CONSTEXPR void* cmifMakeControlRequest(void* base, u32 request_id, u32 size)
|
||||
return hdr+1;
|
||||
}
|
||||
|
||||
NX_CONSTEXPR void cmifMakeCloseRequest(void* base, u32 object_id)
|
||||
NX_INLINE void cmifMakeCloseRequest(void* base, u32 object_id)
|
||||
{
|
||||
if (object_id) {
|
||||
HipcRequest hipc = hipcMakeRequestInline(base,
|
||||
@ -257,7 +257,7 @@ NX_CONSTEXPR void cmifRequestHandle(CmifRequest* req, Handle handle)
|
||||
*req->hipc.copy_handles++ = handle;
|
||||
}
|
||||
|
||||
NX_CONSTEXPR Result cmifParseResponse(CmifResponse* res, void* base, bool is_domain, u32 size)
|
||||
NX_INLINE Result cmifParseResponse(CmifResponse* res, void* base, bool is_domain, u32 size)
|
||||
{
|
||||
HipcResponse hipc = hipcParseResponse(base);
|
||||
void* start = cmifGetAlignedDataStart(hipc.data_words, base);
|
||||
|
@ -582,7 +582,7 @@ Result webConfigSetWebAudio(WebCommonConfig* config, bool flag) {
|
||||
return _webConfigSetFlag(config, WebArgType_WebAudio, flag);
|
||||
}
|
||||
|
||||
Result webConfigSetFooterFixedKind(WebCommonConfig* config, u32 kind) {
|
||||
Result webConfigSetFooterFixedKind(WebCommonConfig* config, WebFooterFixedKind kind) {
|
||||
WebShimKind shim = _webGetShimKind(config);
|
||||
if (shim != WebShimKind_Offline && shim != WebShimKind_Web) return MAKERESULT(Module_Libnx, LibnxError_NotInitialized);
|
||||
if (hosversionBefore(5,0,0)) return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||
|
@ -1722,7 +1722,7 @@ bool appletHolderCheckFinished(AppletHolder *h) {
|
||||
return R_SUCCEEDED(eventWait(&h->StateChangedEvent, 0));
|
||||
}
|
||||
|
||||
u32 appletHolderGetExitReason(AppletHolder *h) {
|
||||
LibAppletExitReason appletHolderGetExitReason(AppletHolder *h) {
|
||||
return h->exitreason;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user