Index: runtime/include/dart_api.h |
diff --git a/runtime/include/dart_api.h b/runtime/include/dart_api.h |
index 683d727a7cc866ddb420ce3e62794f5bff70dab2..bcda8486baf49efb1a14b68e2205d3cc4a697c16 100755 |
--- a/runtime/include/dart_api.h |
+++ b/runtime/include/dart_api.h |
@@ -499,22 +499,6 @@ DART_EXPORT Dart_Port Dart_GetMainPortId(); |
DART_EXPORT bool Dart_HasLivePorts(); |
/** |
- * Posts a message for some isolate. The message is built from a raw |
- * array. |
- * |
- * \param port The destination port. |
- * \param length The length of the data array. |
- * \param data A data array to be sent in the message. |
- * |
- * \return True if the message was posted. |
- */ |
-DART_EXPORT bool Dart_PostIntArray(Dart_Port port_id, |
- intptr_t length, |
- intptr_t* data); |
-// TODO(turnidge): Should this be intptr_t or some fixed length type? |
-// TODO(turnidge): Reverse length/data for consistency. |
- |
-/** |
* Posts a message for some isolate. The message is a serialized |
* object. |
* |
@@ -1450,5 +1434,16 @@ struct Dart_CMessage { |
Dart_CObject* root; |
}; |
+/** |
+ * Posts a message on some port. The message is built from a |
+ * Dart_CMessage array. |
+ * |
+ * \param port_id The destination port. |
+ * \param message The message to send. |
+ * |
+ * \return True if the message was posted. |
+ */ |
+DART_EXPORT bool Dart_PostCMessage(Dart_Port port_id, |
+ Dart_CMessage* message); |
#endif // INCLUDE_DART_API_H_ |