OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3 * for details. All rights reserved. Use of this source code is governed by a | 3 * for details. All rights reserved. Use of this source code is governed by a |
4 * BSD-style license that can be found in the LICENSE file. | 4 * BSD-style license that can be found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 #ifndef INCLUDE_DART_API_H_ | 7 #ifndef INCLUDE_DART_API_H_ |
8 #define INCLUDE_DART_API_H_ | 8 #define INCLUDE_DART_API_H_ |
9 | 9 |
10 /** \mainpage Dart Embedding API Reference | 10 /** \mainpage Dart Embedding API Reference |
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
716 * The callback is responsible for loading the script used in the | 716 * The callback is responsible for loading the script used in the |
717 * parent isolate by a call to Dart_LoadScript or | 717 * parent isolate by a call to Dart_LoadScript or |
718 * Dart_LoadScriptFromSnapshot. | 718 * Dart_LoadScriptFromSnapshot. |
719 * \param main The name of the main entry point this isolate will | 719 * \param main The name of the main entry point this isolate will |
720 * eventually run. This is provided for advisory purposes only to | 720 * eventually run. This is provided for advisory purposes only to |
721 * improve debugging messages. The main function is not invoked by | 721 * improve debugging messages. The main function is not invoked by |
722 * this function. | 722 * this function. |
723 * \param callback_data The callback data which was passed to the | 723 * \param callback_data The callback data which was passed to the |
724 * parent isolate when it was created by calling Dart_CreateIsolate(). | 724 * parent isolate when it was created by calling Dart_CreateIsolate(). |
725 * \param error A structure into which the embedder can place a | 725 * \param error A structure into which the embedder can place a |
726 * C string containing an error message in the case of failures. | 726 * C string containing an error message in the case of failures. |
turnidge
2014/09/08 19:47:00
Update comment.
Anders Johnsen
2014/09/09 06:45:43
Done.
| |
727 * | 727 * |
728 * \return The embedder returns NULL if the creation and | 728 * \return The embedder returns NULL if the creation and |
729 * initialization was not successful and the isolate if successful. | 729 * initialization was not successful and the isolate if successful. |
730 */ | 730 */ |
731 typedef Dart_Isolate (*Dart_IsolateCreateCallback)(const char* script_uri, | 731 typedef Dart_Isolate (*Dart_IsolateCreateCallback)(const char* script_uri, |
732 const char* main, | 732 const char* main, |
733 const char* package_root, | |
733 void* callback_data, | 734 void* callback_data, |
734 char** error); | 735 char** error); |
735 | 736 |
736 | 737 |
737 /** | 738 /** |
738 * The service isolate creation and initialization callback function. | 739 * The service isolate creation and initialization callback function. |
739 * | 740 * |
740 * This callback, provided by the embedder, is called when the vm | 741 * This callback, provided by the embedder, is called when the vm |
741 * needs to create the service isolate. The callback should create an isolate | 742 * needs to create the service isolate. The callback should create an isolate |
742 * by calling Dart_CreateIsolate and prepare the isolate to be used as | 743 * by calling Dart_CreateIsolate and prepare the isolate to be used as |
(...skipping 2090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2833 * NOTE: If multiple callbacks with the same name are registered, only the | 2834 * NOTE: If multiple callbacks with the same name are registered, only the |
2834 * last callback registered will be remembered. | 2835 * last callback registered will be remembered. |
2835 */ | 2836 */ |
2836 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( | 2837 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( |
2837 const char* name, | 2838 const char* name, |
2838 Dart_ServiceRequestCallback callback, | 2839 Dart_ServiceRequestCallback callback, |
2839 void* user_data); | 2840 void* user_data); |
2840 | 2841 |
2841 | 2842 |
2842 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 2843 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
OLD | NEW |