X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=src%2Fstream.h;h=1d7f131559cdee04be2321a3792c1829bfbd2196;hb=a8f0931a13cd86f4176a3482a6dfc5353defde9d;hp=fb7eb8f7bc53814a376d897318bfa044315924b1;hpb=199d247c0c2155c1c8fca97fcc6087efdd29e482;p=rodin%2Fchimara.git diff --git a/src/stream.h b/src/stream.h index fb7eb8f..1d7f131 100644 --- a/src/stream.h +++ b/src/stream.h @@ -11,25 +11,31 @@ enum StreamType STREAM_TYPE_MEMORY, STREAM_TYPE_FILE, STREAM_TYPE_UNICODE_MEMORY, - STREAM_TYPE_UNICODE_FILE, + STREAM_TYPE_UNICODE_FILE }; struct glk_stream_struct { - GList* stream_list; - glui32 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 stream_type; + /* Specific to window stream: the window this stream is connected to */ winid_t window; + /* Specific to memory streams */ gchar *memory_buffer; glui32 *memory_buffer_unicode; glui32 buffer_len; + /* Specific to file streams */ + FILE *file_pointer; + gboolean binary; }; - strid_t window_stream_new(winid_t window); #endif