1 #ifndef __CHIMARA_GLK_PRIVATE_H__
2 #define __CHIMARA_GLK_PRIVATE_H__
7 #include "chimara-glk.h"
11 typedef struct _ChimaraGlkPrivate ChimaraGlkPrivate;
13 struct _ChimaraGlkPrivate {
14 /* Pointer back to the widget itself for use in thread */
16 /* Whether user input is expected */
18 /* Whether file operations are allowed */
20 /* Glk program loaded in widget */
22 /* Thread in which Glk program is run */
24 /* Event queue and threading stuff */
27 GCond *event_queue_not_empty;
28 GCond *event_queue_not_full;
31 gboolean abort_signalled;
32 /* User-defined interrupt handler */
33 void (*interrupt_handler)(void);
34 /* Global tree of all windows */
36 /* List of filerefs currently in existence */
39 strid_t current_stream;
40 /* List of streams currently in existence */
44 #define CHIMARA_GLK_PRIVATE(obj) \
45 (G_TYPE_INSTANCE_GET_PRIVATE((obj), CHIMARA_TYPE_GLK, ChimaraGlkPrivate))
49 #endif /* __CHIMARA_GLK_PRIVATE_H__ */