| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 #include "include/dart_api.h" | 5 #include "include/dart_api.h" |
| 6 #include "include/dart_mirrors_api.h" | 6 #include "include/dart_mirrors_api.h" |
| 7 #include "include/dart_native_api.h" | 7 #include "include/dart_native_api.h" |
| 8 | 8 |
| 9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
| 10 #include "vm/bigint_operations.h" | 10 #include "vm/bigint_operations.h" |
| (...skipping 4537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4548 return Api::Success(); | 4548 return Api::Success(); |
| 4549 } | 4549 } |
| 4550 | 4550 |
| 4551 | 4551 |
| 4552 // --- Service support --- | 4552 // --- Service support --- |
| 4553 | 4553 |
| 4554 DART_EXPORT Dart_Isolate Dart_GetServiceIsolate(void* callback_data) { | 4554 DART_EXPORT Dart_Isolate Dart_GetServiceIsolate(void* callback_data) { |
| 4555 return Api::CastIsolate(Service::GetServiceIsolate(callback_data)); | 4555 return Api::CastIsolate(Service::GetServiceIsolate(callback_data)); |
| 4556 } | 4556 } |
| 4557 | 4557 |
| 4558 |
| 4559 DART_EXPORT bool Dart_IsServiceRunning() { |
| 4560 return Service::IsRunning(); |
| 4561 } |
| 4562 |
| 4563 |
| 4564 DART_EXPORT void Dart_RegisterIsolateServiceRequestCallback( |
| 4565 const char* name, |
| 4566 Dart_ServiceRequestCallback callback, |
| 4567 void* user_data) { |
| 4568 Service::RegisterIsolateEmbedderCallback(name, callback, user_data); |
| 4569 } |
| 4570 |
| 4571 |
| 4572 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( |
| 4573 const char* name, |
| 4574 Dart_ServiceRequestCallback callback, |
| 4575 void* user_data) { |
| 4576 Service::RegisterRootEmbedderCallback(name, callback, user_data); |
| 4577 } |
| 4578 |
| 4558 } // namespace dart | 4579 } // namespace dart |
| OLD | NEW |