| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 /* | 7 /* |
| 8 * NaCl Service Runtime. I/O Descriptor / Handle abstraction. | 8 * NaCl Service Runtime. I/O Descriptor / Handle abstraction. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 NACL_DESC_CONNECTED_SOCKET, | 80 NACL_DESC_CONNECTED_SOCKET, |
| 81 NACL_DESC_SHM, | 81 NACL_DESC_SHM, |
| 82 NACL_DESC_SYSV_SHM, | 82 NACL_DESC_SYSV_SHM, |
| 83 NACL_DESC_MUTEX, | 83 NACL_DESC_MUTEX, |
| 84 NACL_DESC_CONDVAR, | 84 NACL_DESC_CONDVAR, |
| 85 NACL_DESC_SEMAPHORE, | 85 NACL_DESC_SEMAPHORE, |
| 86 NACL_DESC_SYNC_SOCKET, | 86 NACL_DESC_SYNC_SOCKET, |
| 87 NACL_DESC_TRANSFERABLE_DATA_SOCKET, | 87 NACL_DESC_TRANSFERABLE_DATA_SOCKET, |
| 88 NACL_DESC_IMC_SOCKET, | 88 NACL_DESC_IMC_SOCKET, |
| 89 NACL_DESC_QUOTA, | 89 NACL_DESC_QUOTA, |
| 90 NACL_DESC_DEVICE_RNG | 90 NACL_DESC_DEVICE_RNG, |
| 91 NACL_DESC_DEVICE_POSTMESSAGE |
| 91 /* | 92 /* |
| 92 * Add new NaClDesc subclasses here. | 93 * Add new NaClDesc subclasses here. |
| 93 * | 94 * |
| 94 * NB: when we add new tag types, NaClDescInternalize[] **MUST** | 95 * NB: when we add new tag types, NaClDescInternalize[] **MUST** |
| 95 * also be updated to add new internalization functions. | 96 * also be updated to add new internalization functions. |
| 96 */ | 97 */ |
| 97 }; | 98 }; |
| 98 #define NACL_DESC_TYPE_MAX (NACL_DESC_DEVICE_RNG + 1) | 99 #define NACL_DESC_TYPE_MAX (NACL_DESC_DEVICE_POSTMESSAGE + 1) |
| 99 #define NACL_DESC_TYPE_END_TAG (0xff) | 100 #define NACL_DESC_TYPE_END_TAG (0xff) |
| 100 | 101 |
| 101 struct NaClInternalRealHeader { | 102 struct NaClInternalRealHeader { |
| 102 uint32_t xfer_protocol_version; | 103 uint32_t xfer_protocol_version; |
| 103 uint32_t descriptor_data_bytes; | 104 uint32_t descriptor_data_bytes; |
| 104 }; | 105 }; |
| 105 | 106 |
| 106 struct NaClInternalHeader { | 107 struct NaClInternalHeader { |
| 107 struct NaClInternalRealHeader h; | 108 struct NaClInternalRealHeader h; |
| 108 /* | 109 /* |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 struct NaClDescEffector *effector, | 478 struct NaClDescEffector *effector, |
| 478 void **addr, | 479 void **addr, |
| 479 size_t *size); | 480 size_t *size); |
| 480 | 481 |
| 481 | 482 |
| 482 int NaClSafeCloseNaClHandle(NaClHandle h); | 483 int NaClSafeCloseNaClHandle(NaClHandle h); |
| 483 | 484 |
| 484 EXTERN_C_END | 485 EXTERN_C_END |
| 485 | 486 |
| 486 #endif // NATIVE_CLIENT_SRC_TRUSTED_DESC_NACL_DESC_BASE_H_ | 487 #endif // NATIVE_CLIENT_SRC_TRUSTED_DESC_NACL_DESC_BASE_H_ |
| OLD | NEW |