Index: runtime/include/dart_api.h |
diff --git a/runtime/include/dart_api.h b/runtime/include/dart_api.h |
index 140f0b1c2d661405daddf03ba8f2b4be2846855a..a706bfff0b2276cd2fbaa8395f3c6d6ab3e120df 100755 |
--- a/runtime/include/dart_api.h |
+++ b/runtime/include/dart_api.h |
@@ -556,11 +556,16 @@ DART_EXPORT bool Dart_Post(Dart_Port port_id, Dart_Handle object); |
* |
* This handler is associated with a native port by calling |
* Dart_NewNativePort. |
+ * |
+ * The message received is decoded into the message structure. The |
+ * lifetime of the message data is controlled by the caller. All the |
+ * data references from the message are allocated by the caller and |
+ * will be reclaimed when returning to it. |
*/ |
+struct Dart_CMessage; |
siva
2012/02/04 01:55:43
Why not move the section
/** Message sending/recei
Søren Gjesse
2012/02/06 16:25:52
Done.
|
typedef void (*Dart_NativeMessageHandler)(Dart_Port dest_port_id, |
Dart_Port reply_port_id, |
- uint8_t* data); |
-// TODO(turnidge): Make this function take more appropriate arguments. |
+ Dart_CMessage* message); |
/** |
* Creates a new native port. When messages are received on this |