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

Side by Side Diff: runtime/include/dart_api.h

Issue 9303001: Add support for lists to the C message reader (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Removed unused function Created 8 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/platform/assert.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef INCLUDE_DART_API_H_ 5 #ifndef INCLUDE_DART_API_H_
6 #define INCLUDE_DART_API_H_ 6 #define INCLUDE_DART_API_H_
7 7
8 /** \mainpage Dart Embedding API Reference 8 /** \mainpage Dart Embedding API Reference
9 * 9 *
10 * Dart is a class-based programming language for creating structured 10 * Dart is a class-based programming language for creating structured
(...skipping 1352 matching lines...) Expand 10 before | Expand all | Expand 10 after
1363 // --- Message encoding/decoding ---- 1363 // --- Message encoding/decoding ----
1364 1364
1365 /** 1365 /**
1366 * A Dart_CObject is used for representing Dart objects as native C 1366 * A Dart_CObject is used for representing Dart objects as native C
1367 * data outside the Dart heap. These objects are totally detached from 1367 * data outside the Dart heap. These objects are totally detached from
1368 * the Dart heap. Only a subset of the Dart objects have a 1368 * the Dart heap. Only a subset of the Dart objects have a
1369 * representation as a Dart_CObject. 1369 * representation as a Dart_CObject.
1370 */ 1370 */
1371 struct Dart_CObject { 1371 struct Dart_CObject {
1372 enum Type { 1372 enum Type {
1373 kNull, 1373 kNull = 0,
1374 kBool, 1374 kBool,
1375 kInt32, 1375 kInt32,
1376 kDouble, 1376 kDouble,
1377 kString, 1377 kString,
1378 kArray 1378 kArray,
1379 kNumberOfTypes
1379 }; 1380 };
1380 Type type; 1381 Type type;
1381 union { 1382 union {
1382 bool as_bool; 1383 bool as_bool;
1383 int32_t as_int32; 1384 int32_t as_int32;
1384 double as_double; 1385 double as_double;
1385 char* as_string; 1386 char* as_string;
1386 struct { 1387 struct {
1387 int length; 1388 int length;
1388 Dart_CObject** values; 1389 Dart_CObject** values;
1389 } as_array; 1390 } as_array;
1390 } value; 1391 } value;
1391 }; 1392 };
1392 1393
1393 /** 1394 /**
1394 * A Dart_CMessage is used for encoding and decoding messages from native code. 1395 * A Dart_CMessage is used for encoding and decoding messages from native code.
1395 */ 1396 */
1396 struct Dart_CMessage { 1397 struct Dart_CMessage {
1397 Dart_CObject** message; 1398 Dart_CObject** message;
1398 }; 1399 };
1399 1400
1400 #endif // INCLUDE_DART_API_H_ 1401 #endif // INCLUDE_DART_API_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/platform/assert.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698