Index: runtime/include/dart_api.h |
=================================================================== |
--- runtime/include/dart_api.h (revision 34429) |
+++ runtime/include/dart_api.h (working copy) |
@@ -1089,8 +1089,13 @@ |
*/ |
DART_EXPORT Dart_Handle Dart_NewSendPort(Dart_Port port_id); |
+ |
+DART_EXPORT Dart_Handle Dart_PortGetId(Dart_Handle port, Dart_Port* port_id); |
+ |
/** |
- * Gets the ReceivePort for the provided port id, creating it if necessary. |
+ * Gets the ReceivePort for the provided port id. |
+ * Returns Dart_Null if a port with the provided port id is not associated with |
+ * the current isolate. |
* |
* Note that there is at most one ReceivePort for a given port id. |
*/ |