X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fchimara-glk-private.h;fp=src%2Fchimara-glk-private.h;h=0000000000000000000000000000000000000000;hb=0b85f1dd5993e2ed111ec2ba13bbbb4ebda06ada;hp=ba638a0e6e8496833c41f457ca1851ef73171023;hpb=08f8444e2ae5480eea1cf7e2c1e2eb57f46152db;p=rodin%2Fchimara.git diff --git a/src/chimara-glk-private.h b/src/chimara-glk-private.h deleted file mode 100644 index ba638a0..0000000 --- a/src/chimara-glk-private.h +++ /dev/null @@ -1,63 +0,0 @@ -#ifndef __CHIMARA_GLK_PRIVATE_H__ -#define __CHIMARA_GLK_PRIVATE_H__ - -#include -#include -#include -#include "glk.h" -#include "gi_blorb.h" -#include "chimara-glk.h" - -G_BEGIN_DECLS - -typedef struct _ChimaraGlkPrivate ChimaraGlkPrivate; - -struct _ChimaraGlkPrivate { - /* Pointer back to the widget itself for use in thread */ - ChimaraGlk *self; - /* Whether user input is expected */ - gboolean interactive; - /* Whether file operations are allowed */ - gboolean protect; - /* Font description of proportional font */ - PangoFontDescription *default_font_desc; - /* Font description of monospace font */ - PangoFontDescription *monospace_font_desc; - /* Spacing between Glk windows */ - guint spacing; - /* Glk program loaded in widget */ - GModule *program; - /* Thread in which Glk program is run */ - GThread *thread; - /* Event queue and threading stuff */ - GQueue *event_queue; - GMutex *event_lock; - GCond *event_queue_not_empty; - GCond *event_queue_not_full; - /* Abort mechanism */ - GMutex *abort_lock; - gboolean abort_signalled; - /* User-defined interrupt handler */ - void (*interrupt_handler)(void); - /* Global tree of all windows */ - GNode *root_window; - /* List of filerefs currently in existence */ - GList *fileref_list; - /* Current stream */ - strid_t current_stream; - /* List of streams currently in existence */ - GList *stream_list; - /* Current timer */ - guint timer_id; - /* Current resource blorb map */ - giblorb_map_t *resource_map; - /* File stream pointing to the blorb used as current resource map */ - strid_t resource_file; -}; - -#define CHIMARA_GLK_PRIVATE(obj) \ - (G_TYPE_INSTANCE_GET_PRIVATE((obj), CHIMARA_TYPE_GLK, ChimaraGlkPrivate)) - -G_END_DECLS - -#endif /* __CHIMARA_GLK_PRIVATE_H__ */