summaryrefslogtreecommitdiffstats
path: root/include/rofi-types.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/rofi-types.h')
-rw-r--r--include/rofi-types.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/rofi-types.h b/include/rofi-types.h
index 93fc683c..46b01f1b 100644
--- a/include/rofi-types.h
+++ b/include/rofi-types.h
@@ -235,5 +235,16 @@ typedef struct rofi_int_matcher_t
gboolean invert;
} rofi_int_matcher;
+/**
+ * Structure with data to process by each worker thread.
+ * TODO: Make this more generic wrapper.
+ */
+typedef struct _thread_state
+{
+ void ( *callback )( struct _thread_state *t, gpointer data );
+} thread_state;
+
+extern GThreadPool *tpool;
+
G_END_DECLS
#endif // INCLUDE_ROFI_TYPES_H