Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Side by Side Diff: mojo/public/go/system/c_allocators.h

Issue 860193002: go/system: adding two-phase data pipe methods (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/go/tests/system_test.go ('k') | mojo/public/go/system/c_allocators.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « mojo/go/tests/system_test.go ('k') | mojo/public/go/system/c_allocators.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698