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 779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
790 * \param get_service_assets A function to be called by the service isolate when | 790 * \param get_service_assets A function to be called by the service isolate when |
791 * it requires the vmservice assets archive. | 791 * it requires the vmservice assets archive. |
792 * See Dart_GetVMServiceAssetsArchive. | 792 * See Dart_GetVMServiceAssetsArchive. |
793 * | 793 * |
794 * \return NULL if initialization is successful. Returns an error message | 794 * \return NULL if initialization is successful. Returns an error message |
795 * otherwise. The caller is responsible for freeing the error message. | 795 * otherwise. The caller is responsible for freeing the error message. |
796 */ | 796 */ |
797 DART_EXPORT char* Dart_Initialize( | 797 DART_EXPORT char* Dart_Initialize( |
798 const uint8_t* vm_isolate_snapshot, | 798 const uint8_t* vm_isolate_snapshot, |
799 const uint8_t* instructions_snapshot, | 799 const uint8_t* instructions_snapshot, |
| 800 const uint8_t* data_snapshot, |
800 Dart_IsolateCreateCallback create, | 801 Dart_IsolateCreateCallback create, |
801 Dart_IsolateInterruptCallback interrupt, | 802 Dart_IsolateInterruptCallback interrupt, |
802 Dart_IsolateUnhandledExceptionCallback unhandled_exception, | 803 Dart_IsolateUnhandledExceptionCallback unhandled_exception, |
803 Dart_IsolateShutdownCallback shutdown, | 804 Dart_IsolateShutdownCallback shutdown, |
804 Dart_FileOpenCallback file_open, | 805 Dart_FileOpenCallback file_open, |
805 Dart_FileReadCallback file_read, | 806 Dart_FileReadCallback file_read, |
806 Dart_FileWriteCallback file_write, | 807 Dart_FileWriteCallback file_write, |
807 Dart_FileCloseCallback file_close, | 808 Dart_FileCloseCallback file_close, |
808 Dart_EntropySource entropy_source, | 809 Dart_EntropySource entropy_source, |
809 Dart_GetVMServiceAssetsArchive get_service_assets); | 810 Dart_GetVMServiceAssetsArchive get_service_assets); |
(...skipping 2140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2950 intptr_t* vm_isolate_snapshot_size, | 2951 intptr_t* vm_isolate_snapshot_size, |
2951 uint8_t** isolate_snapshot_buffer, | 2952 uint8_t** isolate_snapshot_buffer, |
2952 intptr_t* isolate_snapshot_size, | 2953 intptr_t* isolate_snapshot_size, |
2953 uint8_t** instructions_snapshot_buffer, | 2954 uint8_t** instructions_snapshot_buffer, |
2954 intptr_t* instructions_snapshot_size); | 2955 intptr_t* instructions_snapshot_size); |
2955 | 2956 |
2956 | 2957 |
2957 DART_EXPORT bool Dart_IsRunningPrecompiledCode(); | 2958 DART_EXPORT bool Dart_IsRunningPrecompiledCode(); |
2958 | 2959 |
2959 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 2960 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
OLD | NEW |