OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 2 * Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
3 * for details. All rights reserved. Use of this source code is governed by a | 3 * for details. All rights reserved. Use of this source code is governed by a |
4 * BSD-style license that can be found in the LICENSE file. | 4 * BSD-style license that can be found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 #ifndef INCLUDE_DART_NATIVE_API_H_ | 7 #ifndef INCLUDE_DART_NATIVE_API_H_ |
8 #define INCLUDE_DART_NATIVE_API_H_ | 8 #define INCLUDE_DART_NATIVE_API_H_ |
9 | 9 |
10 #include "include/dart_api.h" | 10 #include "include/dart_api.h" |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 * Creates a new native port. When messages are received on this | 116 * Creates a new native port. When messages are received on this |
117 * native port, then they will be dispatched to the provided native | 117 * native port, then they will be dispatched to the provided native |
118 * message handler. | 118 * message handler. |
119 * | 119 * |
120 * \param name The name of this port in debugging messages. | 120 * \param name The name of this port in debugging messages. |
121 * \param handler The C handler to run when messages arrive on the port. | 121 * \param handler The C handler to run when messages arrive on the port. |
122 * \param handle_concurrently Is it okay to process requests on this | 122 * \param handle_concurrently Is it okay to process requests on this |
123 * native port concurrently? | 123 * native port concurrently? |
124 * | 124 * |
125 * \return If successful, returns the port id for the native port. In | 125 * \return If successful, returns the port id for the native port. In |
126 * case of error, returns ILLEGAL_PORT. | 126 * case of error, returns DART_ILLEGAL_PORT. |
127 */ | 127 */ |
128 DART_EXPORT Dart_Port Dart_NewNativePort(const char* name, | 128 DART_EXPORT Dart_Port Dart_NewNativePort(const char* name, |
129 Dart_NativeMessageHandler handler, | 129 Dart_NativeMessageHandler handler, |
130 bool handle_concurrently); | 130 bool handle_concurrently); |
131 /* TODO(turnidge): Currently handle_concurrently is ignored. */ | 131 /* TODO(turnidge): Currently handle_concurrently is ignored. */ |
132 | 132 |
133 /** | 133 /** |
134 * Closes the native port with the given id. | 134 * Closes the native port with the given id. |
135 * | 135 * |
136 * The port must have been allocated by a call to Dart_NewNativePort. | 136 * The port must have been allocated by a call to Dart_NewNativePort. |
(...skipping 13 matching lines...) Expand all Loading... |
150 | 150 |
151 /** | 151 /** |
152 * Forces all loaded classes and functions to be compiled eagerly in | 152 * Forces all loaded classes and functions to be compiled eagerly in |
153 * the current isolate.. | 153 * the current isolate.. |
154 * | 154 * |
155 * TODO(turnidge): Document. | 155 * TODO(turnidge): Document. |
156 */ | 156 */ |
157 DART_EXPORT Dart_Handle Dart_CompileAll(); | 157 DART_EXPORT Dart_Handle Dart_CompileAll(); |
158 | 158 |
159 #endif /* INCLUDE_DART_NATIVE_API_H_ */ /* NOLINT */ | 159 #endif /* INCLUDE_DART_NATIVE_API_H_ */ /* NOLINT */ |
OLD | NEW |