X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=src%2Fstream.h;fp=src%2Fstream.h;h=0000000000000000000000000000000000000000;hb=0b85f1dd5993e2ed111ec2ba13bbbb4ebda06ada;hp=0ea398e377fc98bf561e629ac9ce4434e4527fdc;hpb=08f8444e2ae5480eea1cf7e2c1e2eb57f46152db;p=rodin%2Fchimara.git diff --git a/src/stream.h b/src/stream.h deleted file mode 100644 index 0ea398e..0000000 --- a/src/stream.h +++ /dev/null @@ -1,52 +0,0 @@ -#ifndef STREAM_H -#define STREAM_H - -#include -#include "glk.h" -#include "window.h" - -enum StreamType -{ - STREAM_TYPE_WINDOW, - STREAM_TYPE_MEMORY, - STREAM_TYPE_FILE -}; - -/** - * glk_stream_struct: - * - * This is an opaque structure (see - * Opaque Structures and should not be accessed directly. - */ -struct glk_stream_struct -{ - /*< private >*/ - glui32 magic, rock; - /* Pointer to the list node in the global stream list that contains this - stream */ - GList* stream_list; - /* Stream parameters */ - glui32 file_mode; - glui32 read_count; - glui32 write_count; - enum StreamType type; - /* Specific to window stream: the window this stream is connected to */ - winid_t window; - /* For memory and file streams */ - gboolean unicode; - /* Specific to memory streams */ - gchar *buffer; - glui32 *ubuffer; - glui32 mark; - glui32 buflen; - /* Specific to file streams */ - FILE *file_pointer; - gboolean binary; - gchar *filename; /* Displayable filename in UTF-8 for error handling */ - - gchar *style; /* Name of the current style */ -}; - -G_GNUC_INTERNAL strid_t window_stream_new(winid_t window); -G_GNUC_INTERNAL void stream_close_common(strid_t str, stream_result_t *result); -#endif