| OLD | NEW |
| 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 1429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1440 char* as_string; | 1440 char* as_string; |
| 1441 struct { | 1441 struct { |
| 1442 int length; | 1442 int length; |
| 1443 Dart_CObject** values; | 1443 Dart_CObject** values; |
| 1444 } as_array; | 1444 } as_array; |
| 1445 } value; | 1445 } value; |
| 1446 }; | 1446 }; |
| 1447 | 1447 |
| 1448 /** | 1448 /** |
| 1449 * Posts a message on some port. The message will contain the | 1449 * Posts a message on some port. The message will contain the |
| 1450 * Dart_CObject object graph rooted in the provided Dart_CObject. | 1450 * Dart_CObject object graph rooted in 'message'. |
| 1451 * | 1451 * |
| 1452 * While the message is being sent the state of the graph of | 1452 * While the message is being sent the state of the graph of |
| 1453 * Dart_CObject structures rooted in message should not be accessed, | 1453 * Dart_CObject structures rooted in 'message' should not be accessed, |
| 1454 * as the message generation will make temporaly modification to the | 1454 * as the message generation will make temporary modifications to the |
| 1455 * data. When the message has been sent the graph will be fully | 1455 * data. When the message has been sent the graph will be fully |
| 1456 * restored. | 1456 * restored. |
| 1457 * | 1457 * |
| 1458 * \param port_id The destination port. | 1458 * \param port_id The destination port. |
| 1459 * \param message The message to send. | 1459 * \param message The message to send. |
| 1460 * | 1460 * |
| 1461 * \return True if the message was posted. | 1461 * \return True if the message was posted. |
| 1462 */ | 1462 */ |
| 1463 DART_EXPORT bool Dart_PostCObject(Dart_Port port_id, Dart_CObject* root); | 1463 DART_EXPORT bool Dart_PostCObject(Dart_Port port_id, Dart_CObject* message); |
| 1464 | 1464 |
| 1465 #endif // INCLUDE_DART_API_H_ | 1465 #endif // INCLUDE_DART_API_H_ |
| OLD | NEW |