| OLD | NEW |
| (Empty) |
| 1 /* | |
| 2 * Copyright 2010 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 | |
| 7 /* | |
| 8 * Subclass of the gio object that wraps NaClDesc objects. Direct | |
| 9 * read/write pass through is done. | |
| 10 */ | |
| 11 | |
| 12 #ifndef NATIVE_CLIENT_SRC_TRUSTED_GIO_WRAPPED_DESC_GIO_NACL_DESC_H_ | |
| 13 #define NATIVE_CLIENT_SRC_TRUSTED_GIO_WRAPPED_DESC_GIO_NACL_DESC_H_ | |
| 14 | |
| 15 #include "native_client/src/include/nacl_base.h" | |
| 16 | |
| 17 #include "native_client/src/shared/gio/gio.h" | |
| 18 | |
| 19 EXTERN_C_BEGIN | |
| 20 | |
| 21 struct NaClDesc; | |
| 22 | |
| 23 struct NaClGioNaClDesc { | |
| 24 struct Gio base; | |
| 25 struct NaClDesc *wrapped; | |
| 26 }; | |
| 27 | |
| 28 /* | |
| 29 * The Ctor takes a new reference to wrapped. | |
| 30 */ | |
| 31 int NaClGioNaClDescCtor(struct NaClGioNaClDesc *self, | |
| 32 struct NaClDesc *wrapped); | |
| 33 | |
| 34 #endif /* NATIVE_CLIENT_SRC_TRUSTED_GIO_WRAPPED_DESC_GIO_NACL_DESC_H_ */ | |
| OLD | NEW |