Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(589)

Unified Diff: runtime/include/dart_api.h

Issue 9104041: Added API Dart_PostCMessage for posting a Dart_CMessage structure (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added new API Dart_PostCMessage Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698