| 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 994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1005 * Requires there to be a current isolate. | 1005 * Requires there to be a current isolate. |
| 1006 * | 1006 * |
| 1007 * \param port The destination port. | 1007 * \param port The destination port. |
| 1008 * \param object An object from the current isolate. | 1008 * \param object An object from the current isolate. |
| 1009 * | 1009 * |
| 1010 * \return True if the message was posted. | 1010 * \return True if the message was posted. |
| 1011 */ | 1011 */ |
| 1012 DART_EXPORT bool Dart_Post(Dart_Port port_id, Dart_Handle object); | 1012 DART_EXPORT bool Dart_Post(Dart_Port port_id, Dart_Handle object); |
| 1013 | 1013 |
| 1014 /** | 1014 /** |
| 1015 * Posts a message for some isolate. The message is a serialized |
| 1016 * object. The message is prioritized before other messages. |
| 1017 * |
| 1018 * Requires there to be a current isolate. |
| 1019 * |
| 1020 * \param port The destination port. |
| 1021 * \param object An object from the current isolate. |
| 1022 * |
| 1023 * \return True if the message was posted. |
| 1024 */ |
| 1025 DART_EXPORT bool Dart_PostPriority(Dart_Port port_id, Dart_Handle object); |
| 1026 |
| 1027 /** |
| 1015 * Returns a new SendPort with the provided port id. | 1028 * Returns a new SendPort with the provided port id. |
| 1016 */ | 1029 */ |
| 1017 DART_EXPORT Dart_Handle Dart_NewSendPort(Dart_Port port_id); | 1030 DART_EXPORT Dart_Handle Dart_NewSendPort(Dart_Port port_id); |
| 1018 | 1031 |
| 1019 /** | 1032 /** |
| 1020 * Gets the ReceivePort for the provided port id, creating it if necessary. | 1033 * Gets the ReceivePort for the provided port id, creating it if necessary. |
| 1021 * | 1034 * |
| 1022 * Note that there is at most one ReceivePort for a given port id. | 1035 * Note that there is at most one ReceivePort for a given port id. |
| 1023 */ | 1036 */ |
| 1024 DART_EXPORT Dart_Handle Dart_GetReceivePort(Dart_Port port_id); | 1037 DART_EXPORT Dart_Handle Dart_GetReceivePort(Dart_Port port_id); |
| (...skipping 1256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2281 * | 2294 * |
| 2282 * \param object An object. | 2295 * \param object An object. |
| 2283 * \param peer A value to store in the peer field. | 2296 * \param peer A value to store in the peer field. |
| 2284 * | 2297 * |
| 2285 * \return Returns an error if 'object' is a subtype of Null, num, or | 2298 * \return Returns an error if 'object' is a subtype of Null, num, or |
| 2286 * bool. | 2299 * bool. |
| 2287 */ | 2300 */ |
| 2288 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); | 2301 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); |
| 2289 | 2302 |
| 2290 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 2303 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
| OLD | NEW |