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

Unified Diff: runtime/include/dart_api.h

Issue 9159066: Allocate a Dart_CMessage structure when decoding a message into C structures (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments from asiva@ 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
« no previous file with comments | « no previous file | runtime/vm/snapshot.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « no previous file | runtime/vm/snapshot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698