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

Unified Diff: runtime/include/dart_native_api.h

Issue 1267603003: Support sending and receiving Capability objects from C code. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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/dart_api_message.cc » ('j') | runtime/vm/snapshot_test.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/include/dart_native_api.h
diff --git a/runtime/include/dart_native_api.h b/runtime/include/dart_native_api.h
index 2176aadeabb9ab5a013ec541c44be2c29ba9d313..ea7900df6be69603e2e3ad1d83f928e60496ff6c 100644
--- a/runtime/include/dart_native_api.h
+++ b/runtime/include/dart_native_api.h
@@ -40,6 +40,7 @@ typedef enum {
Dart_CObject_kTypedData,
Dart_CObject_kExternalTypedData,
Dart_CObject_kSendPort,
+ Dart_CObject_kCapability,
Dart_CObject_kUnsupported,
Dart_CObject_kNumberOfTypes
} Dart_CObject_Type;
@@ -62,6 +63,9 @@ typedef struct _Dart_CObject {
Dart_Port origin_id;
} as_send_port;
struct {
+ int64_t id;
+ } as_capability;
+ struct {
intptr_t length;
struct _Dart_CObject** values;
} as_array;
« no previous file with comments | « no previous file | runtime/vm/dart_api_message.cc » ('j') | runtime/vm/snapshot_test.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698