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 INCLUDE_DART_API_H_ | 7 #ifndef INCLUDE_DART_API_H_ |
8 #define INCLUDE_DART_API_H_ | 8 #define INCLUDE_DART_API_H_ |
9 | 9 |
10 /** \mainpage Dart Embedding API Reference | 10 /** \mainpage Dart Embedding API Reference |
(...skipping 1115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1126 * | 1126 * |
1127 * This function may be used by an embedder at a breakpoint to avoid | 1127 * This function may be used by an embedder at a breakpoint to avoid |
1128 * pausing the vm service. | 1128 * pausing the vm service. |
1129 * | 1129 * |
1130 * \return true if the vm service requests the program resume | 1130 * \return true if the vm service requests the program resume |
1131 * execution, false otherwise | 1131 * execution, false otherwise |
1132 */ | 1132 */ |
1133 DART_EXPORT bool Dart_HandleServiceMessages(); | 1133 DART_EXPORT bool Dart_HandleServiceMessages(); |
1134 | 1134 |
1135 /** | 1135 /** |
| 1136 * Does the current isolate have pending service messages? |
| 1137 * |
| 1138 * \return true if the isolate has pending service messages, false otherwise. |
| 1139 */ |
| 1140 DART_EXPORT bool Dart_HasServiceMessages(); |
| 1141 |
| 1142 /** |
1136 * Processes any incoming messages for the current isolate. | 1143 * Processes any incoming messages for the current isolate. |
1137 * | 1144 * |
1138 * This function may only be used when the embedder has not provided | 1145 * This function may only be used when the embedder has not provided |
1139 * an alternate message delivery mechanism with | 1146 * an alternate message delivery mechanism with |
1140 * Dart_SetMessageCallbacks. It is provided for convenience. | 1147 * Dart_SetMessageCallbacks. It is provided for convenience. |
1141 * | 1148 * |
1142 * This function waits for incoming messages for the current | 1149 * This function waits for incoming messages for the current |
1143 * isolate. As new messages arrive, they are handled using | 1150 * isolate. As new messages arrive, they are handled using |
1144 * Dart_HandleMessage. The routine exits when all ports to the | 1151 * Dart_HandleMessage. The routine exits when all ports to the |
1145 * current isolate are closed. | 1152 * current isolate are closed. |
(...skipping 1692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2838 * NOTE: If multiple callbacks with the same name are registered, only the | 2845 * NOTE: If multiple callbacks with the same name are registered, only the |
2839 * last callback registered will be remembered. | 2846 * last callback registered will be remembered. |
2840 */ | 2847 */ |
2841 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( | 2848 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( |
2842 const char* name, | 2849 const char* name, |
2843 Dart_ServiceRequestCallback callback, | 2850 Dart_ServiceRequestCallback callback, |
2844 void* user_data); | 2851 void* user_data); |
2845 | 2852 |
2846 | 2853 |
2847 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 2854 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
OLD | NEW |