From f73cecc31b37c096bedfd446892e7ae1969ef29c Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Tue, 2 May 2023 13:55:39 +0100 Subject: [PATCH] fix type mismatches --- nx/include/switch/services/btdrv.h | 2 +- nx/source/applets/web.c | 2 +- nx/source/services/applet.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nx/include/switch/services/btdrv.h b/nx/include/switch/services/btdrv.h index 48bd71ca..8fc6f0d7 100644 --- a/nx/include/switch/services/btdrv.h +++ b/nx/include/switch/services/btdrv.h @@ -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 diff --git a/nx/source/applets/web.c b/nx/source/applets/web.c index cd8a1f00..51026ec5 100644 --- a/nx/source/applets/web.c +++ b/nx/source/applets/web.c @@ -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); diff --git a/nx/source/services/applet.c b/nx/source/services/applet.c index 24885ca5..7836f862 100644 --- a/nx/source/services/applet.c +++ b/nx/source/services/applet.c @@ -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; }