X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=src%2Fstream.h;h=3fd4fcba07717fee0ec1b74f890d4cb0a31811a2;hb=6b88d5630371fa1633b8f0dcd9f6c92efc315e6d;hp=fb7eb8f7bc53814a376d897318bfa044315924b1;hpb=199d247c0c2155c1c8fca97fcc6087efdd29e482;p=rodin%2Fchimara.git diff --git a/src/stream.h b/src/stream.h index fb7eb8f..3fd4fcb 100644 --- a/src/stream.h +++ b/src/stream.h @@ -11,25 +11,28 @@ 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; }; - strid_t window_stream_new(winid_t window); #endif