| 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 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1082 * | 1082 * |
| 1083 * \return True if the message was posted. | 1083 * \return True if the message was posted. |
| 1084 */ | 1084 */ |
| 1085 DART_EXPORT bool Dart_Post(Dart_Port port_id, Dart_Handle object); | 1085 DART_EXPORT bool Dart_Post(Dart_Port port_id, Dart_Handle object); |
| 1086 | 1086 |
| 1087 /** | 1087 /** |
| 1088 * Returns a new SendPort with the provided port id. | 1088 * Returns a new SendPort with the provided port id. |
| 1089 */ | 1089 */ |
| 1090 DART_EXPORT Dart_Handle Dart_NewSendPort(Dart_Port port_id); | 1090 DART_EXPORT Dart_Handle Dart_NewSendPort(Dart_Port port_id); |
| 1091 | 1091 |
| 1092 |
| 1093 DART_EXPORT Dart_Handle Dart_PortGetId(Dart_Handle port, Dart_Port* port_id); |
| 1094 |
| 1092 /** | 1095 /** |
| 1093 * Gets the ReceivePort for the provided port id, creating it if necessary. | 1096 * Gets the ReceivePort for the provided port id. |
| 1097 * Returns Dart_Null if a port with the provided port id is not associated with |
| 1098 * the current isolate. |
| 1094 * | 1099 * |
| 1095 * Note that there is at most one ReceivePort for a given port id. | 1100 * Note that there is at most one ReceivePort for a given port id. |
| 1096 */ | 1101 */ |
| 1097 DART_EXPORT Dart_Handle Dart_GetReceivePort(Dart_Port port_id); | 1102 DART_EXPORT Dart_Handle Dart_GetReceivePort(Dart_Port port_id); |
| 1098 | 1103 |
| 1099 | 1104 |
| 1100 /** | 1105 /** |
| 1101 * Posts an object to the send port. | 1106 * Posts an object to the send port. |
| 1102 * | 1107 * |
| 1103 * \param send_port A Dart SendPort. | 1108 * \param send_port A Dart SendPort. |
| (...skipping 1432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2536 * NOTE: If multiple callbacks with the same name are registered, only the | 2541 * NOTE: If multiple callbacks with the same name are registered, only the |
| 2537 * last callback registered will be remembered. | 2542 * last callback registered will be remembered. |
| 2538 */ | 2543 */ |
| 2539 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( | 2544 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( |
| 2540 const char* name, | 2545 const char* name, |
| 2541 Dart_ServiceRequestCallback callback, | 2546 Dart_ServiceRequestCallback callback, |
| 2542 void* user_data); | 2547 void* user_data); |
| 2543 | 2548 |
| 2544 | 2549 |
| 2545 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 2550 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
| OLD | NEW |