| Index: native_client_sdk/src/libraries/nacl_io/mount_node_tty.h
|
| diff --git a/native_client_sdk/src/libraries/nacl_io/mount_node_tty.h b/native_client_sdk/src/libraries/nacl_io/mount_node_tty.h
|
| index c8070b9d5fb722feb87a7a61b31a4fbd7986203a..1c8e65d3925e2ddf0d368471d2841197ce47de6f 100644
|
| --- a/native_client_sdk/src/libraries/nacl_io/mount_node_tty.h
|
| +++ b/native_client_sdk/src/libraries/nacl_io/mount_node_tty.h
|
| @@ -20,7 +20,8 @@ namespace nacl_io {
|
| class MountNodeTty : public MountNodeCharDevice {
|
| public:
|
| explicit MountNodeTty(Mount* mount);
|
| - ~MountNodeTty();
|
| +
|
| + virtual EventEmitter* GetEventEmitter();
|
|
|
| virtual Error Ioctl(int request,
|
| char* arg);
|
| @@ -39,21 +40,14 @@ class MountNodeTty : public MountNodeCharDevice {
|
| virtual Error Tcsetattr(int optional_actions,
|
| const struct termios *termios_p);
|
|
|
| - virtual uint32_t GetEventStatus() {
|
| - uint32_t status = POLLOUT;
|
| - if (is_readable_)
|
| - status |= POLLIN;
|
| - return status;
|
| - }
|
| -
|
| private:
|
| + ScopedEventEmitter emitter_;
|
| +
|
| Error ProcessInput(struct tioc_nacl_input_string* message);
|
| Error Echo(const char* string, int count);
|
| void InitTermios();
|
|
|
| std::deque<char> input_buffer_;
|
| - bool is_readable_;
|
| - pthread_cond_t is_readable_cond_;
|
| struct termios termios_;
|
|
|
| /// Current height of terminal in rows. Set via ioctl(2).
|
|
|