OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. |
| 5 */ |
| 6 #ifndef PACKAGES_LIBRARIES_NACL_MOUNTS_DEV_DEVICE_H_ |
| 7 #define PACKAGES_LIBRARIES_NACL_MOUNTS_DEV_DEVICE_H_ |
| 8 |
| 9 // Device |
| 10 class Device { |
| 11 public: |
| 12 Device() {} |
| 13 virtual ~Device() {} |
| 14 virtual int Read(off_t offset, void *buf, size_t count) = 0; |
| 15 virtual int Write(off_t offset, const void *buf, size_t count) = 0; |
| 16 private: |
| 17 DISALLOW_COPY_AND_ASSIGN(Device); |
| 18 }; |
| 19 |
| 20 #endif |
| 21 |
OLD | NEW |