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