OLD | NEW |
| (Empty) |
1 /* | |
2 * Copyright 2011 The Native Client Authors. All rights reserved. | |
3 * Use of this source code is governed by a BSD-style license that can | |
4 * be found in the LICENSE file. | |
5 */ | |
6 | |
7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_DEBUG_STUB_DEBUG_STREAM_H_ | |
8 #define NATIVE_CLIENT_SRC_TRUSTED_DEBUG_STUB_DEBUG_STREAM_H_ 1 | |
9 | |
10 #include "native_client/src/include/portability.h" | |
11 | |
12 namespace nacl_debug_conn { | |
13 | |
14 class DebugStream { | |
15 public: | |
16 virtual ~DebugStream() = 0 {}; | |
17 | |
18 public: | |
19 virtual int32_t Read(void *ptr, int32_t len) = 0; | |
20 virtual int32_t Write(void *ptr, int32_t len) = 0; | |
21 | |
22 virtual bool IsConnected() const = 0; | |
23 virtual bool DataAvail() const = 0; | |
24 }; | |
25 | |
26 } // namespace nacl_debug_conn | |
27 #endif | |
28 | |
OLD | NEW |