mirror of
https://github.com/wiiu-env/libnotifications.git
synced 2024-11-21 19:09:23 +01:00
Fix declarations
This commit is contained in:
parent
a8d4290981
commit
38e02d706a
@ -16,14 +16,15 @@ static NotificationModuleStatus (*sNMAddStaticNotification)(const char *,
|
||||
float,
|
||||
NMColor,
|
||||
NMColor,
|
||||
void (*)(void *context),
|
||||
void (*)(NotificationModuleHandle, void *),
|
||||
void *) = nullptr;
|
||||
|
||||
static NotificationModuleStatus (*sNMAddDynamicNotification)(const char *,
|
||||
NMColor,
|
||||
NMColor,
|
||||
void (*)(void *context),
|
||||
void *) = nullptr;
|
||||
void (*)(NotificationModuleHandle, void *),
|
||||
void *,
|
||||
NotificationModuleHandle *) = nullptr;
|
||||
|
||||
static NotificationModuleStatus (*sNMUpdateDynamicNotificationText)(NotificationModuleHandle,
|
||||
const char *) = nullptr;
|
||||
@ -180,13 +181,6 @@ NotificationModuleStatus NotificationModule_IsOverlayReady(bool *outIsReady) {
|
||||
return reinterpret_cast<decltype(&NotificationModule_IsOverlayReady)>(sNMIsOverlayReady)(outIsReady);
|
||||
}
|
||||
|
||||
NotificationModuleStatus NotificationModule_AddDynamicNotificationExDeclare(const char *text,
|
||||
NMColor textColor,
|
||||
NMColor backgroundColor,
|
||||
NotificationModuleNotificationFinishedCallback callback,
|
||||
void *callbackContext,
|
||||
NotificationModuleHandle *outHandle);
|
||||
|
||||
NotificationModuleStatus NotificationModule_AddDynamicNotificationEx(const char *text,
|
||||
NotificationModuleHandle *outHandle,
|
||||
NMColor textColor,
|
||||
@ -204,7 +198,7 @@ NotificationModuleStatus NotificationModule_AddDynamicNotificationEx(const char
|
||||
return NOTIFICATION_MODULE_RESULT_INVALID_ARGUMENT;
|
||||
}
|
||||
|
||||
return reinterpret_cast<decltype(&NotificationModule_AddDynamicNotificationExDeclare)>(sNMAddDynamicNotification)(text,
|
||||
return reinterpret_cast<decltype(sNMAddDynamicNotification)>(sNMAddDynamicNotification)(text,
|
||||
textColor,
|
||||
backgroundColor,
|
||||
finishFunc,
|
||||
@ -254,7 +248,7 @@ static NotificationModuleStatus NotificationModule_AddStaticNotification(const c
|
||||
return NOTIFICATION_MODULE_RESULT_INVALID_ARGUMENT;
|
||||
}
|
||||
|
||||
return reinterpret_cast<decltype(&NotificationModule_AddStaticNotification)>(sNMAddStaticNotification)(text,
|
||||
return reinterpret_cast<decltype(sNMAddStaticNotification)>(sNMAddStaticNotification)(text,
|
||||
type,
|
||||
durationBeforeFadeOutInSeconds,
|
||||
shakeDurationInSeconds,
|
||||
|
Loading…
Reference in New Issue
Block a user