summaryrefslogtreecommitdiff
path: root/numlib/ui.h
diff options
context:
space:
mode:
Diffstat (limited to 'numlib/ui.h')
-rw-r--r--numlib/ui.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/numlib/ui.h b/numlib/ui.h
index e1d7a58..a282c26 100644
--- a/numlib/ui.h
+++ b/numlib/ui.h
@@ -21,12 +21,25 @@
extern int ui_initialized;
static int *pui_initialized = &ui_initialized;
+/* Call this if we decide we are actually going to display */
+/* something in the GUI */
+void ui_UsingGUI();
+
#ifdef UNIX
# ifdef __APPLE__
extern pthread_t ui_thid; /* Thread ID of main thread running io run loop */
extern pthread_t ui_main_thid; /* Thread ID of thread running application main() */
+/* Run a function in the main thread and return when it is complete */
+void ui_runInMainThreadAndWait(void *cntx, void (*function)(void *context));
+
+/* We are about to change the UI */
+void ui_aboutToWait();
+
+/* Wait until we are sure our UI change is complete */
+void ui_waitForEvents();
+
#ifndef __UI_C__
# define main uimain
#endif