OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2 * Copyright (c) 2012, 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 RUNTIME_INCLUDE_DART_API_H_ | 7 #ifndef RUNTIME_INCLUDE_DART_API_H_ |
8 #define RUNTIME_INCLUDE_DART_API_H_ | 8 #define RUNTIME_INCLUDE_DART_API_H_ |
9 | 9 |
10 /** \mainpage Dart Embedding API Reference | 10 /** \mainpage Dart Embedding API Reference |
(...skipping 3113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3124 * \param object An object. | 3124 * \param object An object. |
3125 * \param peer A value to store in the peer field. | 3125 * \param peer A value to store in the peer field. |
3126 * | 3126 * |
3127 * \return Returns an error if 'object' is a subtype of Null, num, or | 3127 * \return Returns an error if 'object' is a subtype of Null, num, or |
3128 * bool. | 3128 * bool. |
3129 */ | 3129 */ |
3130 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); | 3130 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); |
3131 | 3131 |
3132 | 3132 |
3133 /* | 3133 /* |
3134 * ====== | |
3135 * Kernel | |
3136 * ====== | |
3137 */ | |
3138 | |
3139 | |
3140 DART_EXPORT bool Dart_IsKernelIsolate(Dart_Isolate isolate); | |
Cutch
2016/12/01 19:47:23
doc comments
hausner
2016/12/03 01:29:00
Added todo.
| |
3141 DART_EXPORT bool Dart_KernelIsolateIsRunning(); | |
3142 DART_EXPORT Dart_Port Dart_ServiceWaitForKernelPort(); | |
3143 DART_EXPORT Dart_Port Dart_KernelPort(); | |
Cutch
2016/12/01 19:47:23
the API could be factored into something like this
hausner
2016/12/03 01:29:00
Good suggestion. I would like to wait with this un
| |
3144 | |
3145 #define DART_KERNEL_ISOLATE_NAME "kernel-service" | |
3146 | |
3147 /* | |
3134 * ======= | 3148 * ======= |
3135 * Service | 3149 * Service |
3136 * ======= | 3150 * ======= |
3137 */ | 3151 */ |
3138 | 3152 |
3139 | 3153 |
3140 #define DART_VM_SERVICE_ISOLATE_NAME "vm-service" | 3154 #define DART_VM_SERVICE_ISOLATE_NAME "vm-service" |
3141 | 3155 |
3142 /** | 3156 /** |
3143 * Returns true if isolate is the service isolate. | 3157 * Returns true if isolate is the service isolate. |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3281 */ | 3295 */ |
3282 DART_EXPORT bool Dart_IsPrecompiledRuntime(); | 3296 DART_EXPORT bool Dart_IsPrecompiledRuntime(); |
3283 | 3297 |
3284 | 3298 |
3285 /** | 3299 /** |
3286 * Print a native stack trace. Used for crash handling. | 3300 * Print a native stack trace. Used for crash handling. |
3287 */ | 3301 */ |
3288 DART_EXPORT void Dart_DumpNativeStackTrace(void* context); | 3302 DART_EXPORT void Dart_DumpNativeStackTrace(void* context); |
3289 | 3303 |
3290 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 3304 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
OLD | NEW |