X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=src%2Fstream.h;h=578b1403ba8e3a68edd2dfb3ddec7c9b23ce32a7;hb=0fa32192f69e87861cd7f257a12af91dbdd5f21d;hp=73c46d706de08048a536abc57eef55a608c884be;hpb=9576479a013cce9694bb2e4e045162baed1c2470;p=rodin%2Fchimara.git diff --git a/src/stream.h b/src/stream.h index 73c46d7..578b140 100644 --- a/src/stream.h +++ b/src/stream.h @@ -12,9 +12,16 @@ enum StreamType STREAM_TYPE_FILE }; +/** + * glk_stream_struct: + * + * This is an opaque structure (see + * Opaque Structures and should not be accessed directly. + */ struct glk_stream_struct { - glui32 rock; + /*< private >*/ + glui32 magic, rock; /* Pointer to the list node in the global stream list that contains this stream */ GList* stream_list; @@ -22,7 +29,7 @@ struct glk_stream_struct glui32 file_mode; glui32 read_count; glui32 write_count; - enum StreamType stream_type; + enum StreamType type; /* Specific to window stream: the window this stream is connected to */ winid_t window; /* For memory and file streams */ @@ -38,6 +45,6 @@ struct glk_stream_struct gchar *filename; /* Displayable filename in UTF-8 for error handling */ }; -strid_t window_stream_new(winid_t window); - +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