1.1 --- a/src/ascension/context.h Tue Apr 16 22:06:17 2024 +0200 1.2 +++ b/src/ascension/context.h Tue Apr 16 22:20:17 2024 +0200 1.3 @@ -30,6 +30,7 @@ 1.4 1.5 #include "datatypes.h" 1.6 #include "window.h" 1.7 +#include "input.h" 1.8 #include "ui/font.h" 1.9 1.10 #include <cx/buffer.h> 1.11 @@ -49,6 +50,7 @@ 1.12 typedef struct AscContext { 1.13 unsigned int flags; 1.14 CxBuffer error_buffer; 1.15 + AscInput input; 1.16 AscWindow windows[ASC_MAX_WINDOWS]; 1.17 AscWindow *active_window; 1.18 AscFont fonts[ASC_MAX_FONTS]; 1.19 @@ -65,6 +67,10 @@ 1.20 void asc_context_initialize(void); 1.21 void asc_context_destroy(void); 1.22 1.23 +/** 1.24 + * Signals the context that we want to quit the application. 1.25 + */ 1.26 +void asc_context_quit(void); 1.27 1.28 /** 1.29 * Dispatches events and synchronizes all initialized windows.