Index: runtime/include/dart_api.h |
diff --git a/runtime/include/dart_api.h b/runtime/include/dart_api.h |
index cc3b3e7631af8c0fb1bb3902bc4446c7f4c5e407..683d727a7cc866ddb420ce3e62794f5bff70dab2 100755 |
--- a/runtime/include/dart_api.h |
+++ b/runtime/include/dart_api.h |
@@ -1406,7 +1406,7 @@ DART_EXPORT Dart_Handle Dart_SetNativeResolver( |
DART_EXPORT void Dart_InitPprofSupport(); |
DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size); |
-// --- Message encoding/decoding ---- |
+// --- Message sending/receiving from native code ---- |
/** |
* A Dart_CObject is used for representing Dart objects as native C |
@@ -1438,10 +1438,17 @@ struct Dart_CObject { |
}; |
/** |
- * A Dart_CMessage is used for encoding and decoding messages from native code. |
+ * A Dart_CMessage is used for receiving and sending messages from |
+ * native code not running in an isolate. A message contains an object |
+ * graph represented as Dart_CObject structures rooted as the provided |
+ * root. |
+ * |
+ * For information on the lifetime of this data, when provided in |
+ * callbacks, see the documentation for the individual callbacks. |
*/ |
struct Dart_CMessage { |
- Dart_CObject** message; |
+ Dart_CObject* root; |
}; |
+ |
#endif // INCLUDE_DART_API_H_ |