 1c4e6ec74d
			
		
	
	
		1c4e6ec74d
		
			
		
	
	
	
	
		
			
			* refactoring p1 * refactoring p2 * cleanups * locked screen refresh rate fix * better locked view logic * seperate dolphin service and desktop app * Desktop: Favorite app acess (Left key), Settings app * Desktop settings version, submenu header * remove unused icon anomation + naming fix Co-authored-by: あく <alleteam@gmail.com>
		
			
				
	
	
		
			32 lines
		
	
	
		
			504 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			504 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <furi.h>
 | |
| #include <furi-hal.h>
 | |
| 
 | |
| #include "dolphin.h"
 | |
| #include "helpers/dolphin_state.h"
 | |
| 
 | |
| typedef enum {
 | |
|     DolphinEventTypeDeed,
 | |
|     DolphinEventTypeSave,
 | |
|     DolphinEventTypeTick,
 | |
| } DolphinEventType;
 | |
| 
 | |
| typedef struct {
 | |
|     DolphinEventType type;
 | |
|     union {
 | |
|         DolphinDeed deed;
 | |
|     };
 | |
| } DolphinEvent;
 | |
| 
 | |
| struct Dolphin {
 | |
|     // State
 | |
|     DolphinState* state;
 | |
|     // Queue
 | |
|     osMessageQueueId_t event_queue;
 | |
| };
 | |
| 
 | |
| Dolphin* dolphin_alloc();
 | |
| 
 | |
| void dolphin_free(Dolphin* dolphin);
 |