5 #include "chimara-glk-private.h"
21 * This is an opaque structure (see <link linkend="chimara-Opaque-Structures">
22 * Opaque Structures</link> and should not be accessed directly.
24 struct glk_stream_struct
28 gidispatch_rock_t disprock;
29 /* Pointer to the list node in the global stream list that contains this
32 /* Stream parameters */
37 /* Specific to window stream: the window this stream is connected to */
39 /* For memory and file streams */
41 /* Specific to memory streams */
46 gidispatch_rock_t buffer_rock;
47 /* Specific to file streams */
50 gchar *filename; /* Displayable filename in UTF-8 for error handling */
52 gchar *style; /* Name of the current style */
53 gchar *glk_style; /* Name of the current glk style override */
54 gboolean hyperlink_mode; /* When turned on, text written to the stream will be a hyperlink */
57 G_GNUC_INTERNAL strid_t file_stream_new(frefid_t fileref, glui32 fmode, glui32 rock, gboolean unicode);
58 G_GNUC_INTERNAL strid_t stream_new_common(glui32 rock);
59 G_GNUC_INTERNAL void stream_close_common(strid_t str, stream_result_t *result);