Index: libraries/nacl-mounts/dev/NullDevice.h |
=================================================================== |
--- libraries/nacl-mounts/dev/NullDevice.h (revision 0) |
+++ libraries/nacl-mounts/dev/NullDevice.h (revision 0) |
@@ -0,0 +1,23 @@ |
+/* |
+ * Copyright (c) 2012 The Native Client Authors. All rights reserved. |
+ * Use of this source code is governed by a BSD-style license that can be |
+ * found in the LICENSE file. |
+ */ |
+#ifndef PACKAGES_LIBRARIES_NACL_MOUNTS_DEV_NULLDEVICE_H_ |
+#define PACKAGES_LIBRARIES_NACL_MOUNTS_DEV_NULLDEVICE_H_ |
+ |
+#include "../dev/Device.h" |
+ |
+// NullDevice |
+class NullDevice : public Device { |
+ public: |
+ NullDevice() {} |
+ ~NullDevice() {} |
+ int GetInode() { return 1 }; |
Evgeniy Stepanov
2012/05/11 08:16:37
No magic constants please. Either assign them in D
vissi
2012/05/11 08:31:05
Done.
|
+ private: |
+ |
+ DISALLOW_COPY_AND_ASSIGN(NullDevice); |
+} |
+ |
+#endif |
+ |