aboutsummaryrefslogtreecommitdiff
path: root/engines/gargoyle/streams.h
diff options
context:
space:
mode:
authorPaul Gilbert2018-11-09 20:49:20 -0800
committerPaul Gilbert2018-12-08 19:05:59 -0800
commitc524c5859e7b92b189a6ee0475f0856a71441c3a (patch)
treed8bc6b2d1e6384637fb3532ed2adf2ee53131f14 /engines/gargoyle/streams.h
parent4bd3a4a9c692fcbc13a13eb86ec44c51a715d325 (diff)
downloadscummvm-rg350-c524c5859e7b92b189a6ee0475f0856a71441c3a.tar.gz
scummvm-rg350-c524c5859e7b92b189a6ee0475f0856a71441c3a.tar.bz2
scummvm-rg350-c524c5859e7b92b189a6ee0475f0856a71441c3a.zip
GLK: Add garglk_unput_string methods
Diffstat (limited to 'engines/gargoyle/streams.h')
-rw-r--r--engines/gargoyle/streams.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/engines/gargoyle/streams.h b/engines/gargoyle/streams.h
index 16f63dbf0b..02e2f3b7e6 100644
--- a/engines/gargoyle/streams.h
+++ b/engines/gargoyle/streams.h
@@ -192,6 +192,16 @@ public:
virtual void putBufferUni(const uint32 *buf, size_t len) = 0;
/**
+ * Remove a string from the end of the stream, if indeed it is at the end
+ */
+ virtual void unputBuffer(const char *buf, size_t len) {}
+
+ /**
+ * Remove a string from the end of the stream, if indeed it is at the end
+ */
+ virtual void unputBufferUni(const glui32 *buf, size_t len) {}
+
+ /**
* Send a line to the stream with a trailing newline
*/
void echoLine(char *buf, glui32 len) {
@@ -288,6 +298,16 @@ public:
*/
virtual void putBufferUni(const uint32 *buf, size_t len) override;
+ /**
+ * Remove a string from the end of the stream, if indeed it is at the end
+ */
+ virtual void unputBuffer(const char *buf, size_t len) override;
+
+ /**
+ * Remove a string from the end of the stream, if indeed it is at the end
+ */
+ virtual void unputBufferUni(const glui32 *buf, size_t len) override;
+
virtual void setStyle(glui32 val) override;
/**