summaryrefslogtreecommitdiff
path: root/includes/Handle.h
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-08-02 10:28:03 +0200
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-08-02 10:28:03 +0200
commit11e1cea6667467b2fa5b5791c86b64444420a16a (patch)
tree606d63bf2b9fe0b0e5f12ef72bdcced69c45dddf /includes/Handle.h
parentc6dd17a1435db36eeaff24e40a7cc212ee7214a0 (diff)
Introducing the concept of Future.
Diffstat (limited to 'includes/Handle.h')
-rw-r--r--includes/Handle.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/Handle.h b/includes/Handle.h
index f501ab1..e72507c 100644
--- a/includes/Handle.h
+++ b/includes/Handle.h
@@ -1,5 +1,6 @@
#pragma once
+#include <Task.h>
#include <Exceptions.h>
#include <Printer.h>
#include <BString.h>
@@ -57,7 +58,7 @@ class Handle {
ssize_t forceWrite(const void * buf, size_t count, Events::BaseEvent * evt = NULL) throw (GeneralException);
ssize_t write(const String & str) { return write(str.to_charp(), str.strlen()); }
ssize_t forceWrite(const String & str) { return forceWrite(str.to_charp(), str.strlen()); }
- uint8_t readU8() { uint8_t r; read(&r, 1); return r; }
+ Future<uint8_t> readU8();
protected:
Handle() { }
private: