OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MOJO_PUBLIC_GO_SYSTEM_C_ALLOCATORS_H_ | 5 #ifndef MOJO_PUBLIC_GO_SYSTEM_C_ALLOCATORS_H_ |
6 #define MOJO_PUBLIC_GO_SYSTEM_C_ALLOCATORS_H_ | 6 #define MOJO_PUBLIC_GO_SYSTEM_C_ALLOCATORS_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include "mojo/public/c/system/core.h" | 9 #include "mojo/public/c/system/core.h" |
10 | 10 |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 struct DataArray MallocDataArray(uint32_t length); | 119 struct DataArray MallocDataArray(uint32_t length); |
120 void FreeDataArray(struct DataArray array); | 120 void FreeDataArray(struct DataArray array); |
121 | 121 |
122 struct WriteDataParams { | 122 struct WriteDataParams { |
123 uint32_t* num_bytes; | 123 uint32_t* num_bytes; |
124 void* elements; | 124 void* elements; |
125 }; | 125 }; |
126 struct WriteDataParams MallocWriteDataParams(uint32_t length); | 126 struct WriteDataParams MallocWriteDataParams(uint32_t length); |
127 void FreeWriteDataParams(struct WriteDataParams p); | 127 void FreeWriteDataParams(struct WriteDataParams p); |
128 | 128 |
| 129 struct TwoPhaseActionParams { |
| 130 void** buffer; |
| 131 uint32_t* num_bytes; |
| 132 }; |
| 133 struct TwoPhaseActionParams MallocTwoPhaseActionParams(); |
| 134 void FreeTwoPhaseActionParams(struct TwoPhaseActionParams p); |
| 135 |
129 #endif // MOJO_PUBLIC_GO_SYSTEM_C_ALLOCATORS_H_ | 136 #endif // MOJO_PUBLIC_GO_SYSTEM_C_ALLOCATORS_H_ |
OLD | NEW |