X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=libchimara%2Fstream.h;h=9636fac2c49b3c853c04ed9bbf522ae5cdfa0a42;hb=ed25f6521c1715c564d945cf5edc236eca65b27f;hp=0ea398e377fc98bf561e629ac9ce4434e4527fdc;hpb=0b85f1dd5993e2ed111ec2ba13bbbb4ebda06ada;p=rodin%2Fchimara.git diff --git a/libchimara/stream.h b/libchimara/stream.h index 0ea398e..9636fac 100644 --- a/libchimara/stream.h +++ b/libchimara/stream.h @@ -3,7 +3,9 @@ #include #include "glk.h" +#include "gi_dispa.h" #include "window.h" +#include "fileref.h" enum StreamType { @@ -22,6 +24,7 @@ struct glk_stream_struct { /*< private >*/ glui32 magic, rock; + gidispatch_rock_t disprock; /* Pointer to the list node in the global stream list that contains this stream */ GList* stream_list; @@ -39,6 +42,7 @@ struct glk_stream_struct glui32 *ubuffer; glui32 mark; glui32 buflen; + gidispatch_rock_t buffer_rock; /* Specific to file streams */ FILE *file_pointer; gboolean binary; @@ -47,6 +51,8 @@ struct glk_stream_struct gchar *style; /* Name of the current style */ }; -G_GNUC_INTERNAL strid_t window_stream_new(winid_t window); +G_GNUC_INTERNAL strid_t file_stream_new(frefid_t fileref, glui32 fmode, glui32 rock, gboolean unicode); +G_GNUC_INTERNAL strid_t stream_new_common(glui32 rock); G_GNUC_INTERNAL void stream_close_common(strid_t str, stream_result_t *result); + #endif