mirror of
				https://github.com/davidgiven/fluxengine.git
				synced 2025-10-24 11:11:02 -07:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			384 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			384 B
		
	
	
	
		
			C
		
	
	
	
	
	
| // 9 may 2015
 | |
| #include "../ui.h"
 | |
| #include "uipriv.h"
 | |
| 
 | |
| static int defaultOnShouldQuit(void *data)
 | |
| {
 | |
| 	return 0;
 | |
| }
 | |
| 
 | |
| static int (*onShouldQuit)(void *) = defaultOnShouldQuit;
 | |
| static void *onShouldQuitData = NULL;
 | |
| 
 | |
| void uiOnShouldQuit(int (*f)(void *), void *data)
 | |
| {
 | |
| 	onShouldQuit = f;
 | |
| 	onShouldQuitData = data;
 | |
| }
 | |
| 
 | |
| int uiprivShouldQuit(void)
 | |
| {
 | |
| 	return (*onShouldQuit)(onShouldQuitData);
 | |
| }
 |