projects
/
projects
/
chimara
/
chimara.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PEP8 cleanup in player.py
[projects/chimara/chimara.git]
/
libchimara
/
stream.h
diff --git
a/libchimara/stream.h
b/libchimara/stream.h
index ef6b1f0dce5613e27e943ac7543275d7618c5bff..33497ceb2d11f36b17cc1afedde5b59cc66fe7e4 100644
(file)
--- a/
libchimara/stream.h
+++ b/
libchimara/stream.h
@@
-12,7
+12,8
@@
enum StreamType
{
STREAM_TYPE_WINDOW,
STREAM_TYPE_MEMORY,
{
STREAM_TYPE_WINDOW,
STREAM_TYPE_MEMORY,
- STREAM_TYPE_FILE
+ STREAM_TYPE_FILE,
+ STREAM_TYPE_RESOURCE
};
/**
};
/**
@@
-36,20
+37,25
@@
struct glk_stream_struct
enum StreamType type;
/* Specific to window stream: the window this stream is connected to */
winid_t window;
enum StreamType type;
/* Specific to window stream: the window this stream is connected to */
winid_t window;
- /* For memory
and fil
e streams */
+ /* For memory
, file, and resourc
e streams */
gboolean unicode;
gboolean unicode;
- /* Specific to memory streams */
- gchar *buffer;
+ /* For file and resource streams */
+ gboolean binary;
+ /* For memory and resource streams */
+ char *buffer;
glui32 *ubuffer;
glui32 mark;
glui32 *ubuffer;
glui32 mark;
+ glui32 endmark;
glui32 buflen;
glui32 buflen;
+ /* Specific to memory streams */
gidispatch_rock_t buffer_rock;
/* Specific to file streams */
FILE *file_pointer;
gidispatch_rock_t buffer_rock;
/* Specific to file streams */
FILE *file_pointer;
- gboolean binary;
gchar *filename; /* Displayable filename in UTF-8 for error handling */
gchar *filename; /* Displayable filename in UTF-8 for error handling */
+ glui32 lastop; /* 0, filemode_Write, or filemode_Read */
gchar *style; /* Name of the current style */
gchar *style; /* Name of the current style */
+ gchar *glk_style; /* Name of the current glk style override */
gboolean hyperlink_mode; /* When turned on, text written to the stream will be a hyperlink */
};
gboolean hyperlink_mode; /* When turned on, text written to the stream will be a hyperlink */
};