Add notification framework with test and dummy driver

This commit is contained in:
Frank Praznik
2026-04-06 12:42:57 -04:00
parent 513b5d067d
commit 068e405912
22 changed files with 759 additions and 3 deletions

View File

@@ -1294,3 +1294,7 @@ _SDL_aligned_alloc_zero
_SDL_wcstoul
_SDL_wcstoll
_SDL_wcstoull
_SDL_RequestNotificationPermission
_SDL_ShowNotificationWithProperties
_SDL_ShowNotification
_SDL_RemoveNotification

View File

@@ -1295,6 +1295,10 @@ SDL3_0.0.0 {
SDL_wcstoul;
SDL_wcstoll;
SDL_wcstoull;
SDL_RequestNotificationPermission;
SDL_ShowNotificationWithProperties;
SDL_ShowNotification;
SDL_RemoveNotification;
# extra symbols go here (don't modify this line)
local: *;
};

View File

@@ -1321,3 +1321,7 @@
#define SDL_wcstoul SDL_wcstoul_REAL
#define SDL_wcstoll SDL_wcstoll_REAL
#define SDL_wcstoull SDL_wcstoull_REAL
#define SDL_RequestNotificationPermission SDL_RequestNotificationPermission_REAL
#define SDL_ShowNotificationWithProperties SDL_ShowNotificationWithProperties_REAL
#define SDL_ShowNotification SDL_ShowNotification_REAL
#define SDL_RemoveNotification SDL_RemoveNotification_REAL

View File

@@ -1329,3 +1329,7 @@ SDL_DYNAPI_PROC(void*,SDL_aligned_alloc_zero,(size_t a,size_t b),(a,b),return)
SDL_DYNAPI_PROC(unsigned long,SDL_wcstoul,(const wchar_t *a,wchar_t **b,int c),(a,b,c),return)
SDL_DYNAPI_PROC(long long,SDL_wcstoll,(const wchar_t *a,wchar_t **b,int c),(a,b,c),return)
SDL_DYNAPI_PROC(unsigned long long,SDL_wcstoull,(const wchar_t *a,wchar_t **b,int c),(a,b,c),return)
SDL_DYNAPI_PROC(bool,SDL_RequestNotificationPermission,(void),(),return)
SDL_DYNAPI_PROC(SDL_NotificationID,SDL_ShowNotificationWithProperties,(SDL_PropertiesID a),(a),return)
SDL_DYNAPI_PROC(SDL_NotificationID,SDL_ShowNotification,(const char *a,const char *b,SDL_Surface *c,SDL_NotificationAction *d,int e),(a,b,c,d,e),return)
SDL_DYNAPI_PROC(bool,SDL_RemoveNotification,(SDL_NotificationID a),(a),return)