| OLD | NEW |
| 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 #include "src/vm/service_api_impl.h" | 5 #include "src/vm/service_api_impl.h" |
| 6 | 6 |
| 7 #include "src/vm/natives.h" | 7 #include "src/vm/natives.h" |
| 8 #include "src/vm/port.h" | 8 #include "src/vm/port.h" |
| 9 #include "src/vm/process.h" | 9 #include "src/vm/process.h" |
| 10 #include "src/vm/scheduler.h" | 10 #include "src/vm/scheduler.h" |
| 11 #include "src/vm/thread.h" | 11 #include "src/vm/thread.h" |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 intptr_t method_id = reinterpret_cast<intptr_t>(method); | 207 intptr_t method_id = reinterpret_cast<intptr_t>(method); |
| 208 service->InvokeAsync(method_id, callback, buffer, size); | 208 service->InvokeAsync(method_id, callback, buffer, size); |
| 209 } | 209 } |
| 210 | 210 |
| 211 void ServiceApiTerminate(ServiceId service_id) { | 211 void ServiceApiTerminate(ServiceId service_id) { |
| 212 char buffer[kRequestHeaderSize]; | 212 char buffer[kRequestHeaderSize]; |
| 213 ServiceApiInvoke(service_id, kTerminateMethodId, buffer, sizeof(buffer)); | 213 ServiceApiInvoke(service_id, kTerminateMethodId, buffer, sizeof(buffer)); |
| 214 fletch::Service* service = reinterpret_cast<fletch::Service*>(service_id); | 214 fletch::Service* service = reinterpret_cast<fletch::Service*>(service_id); |
| 215 fletch::service_registry->Unregister(service); | 215 fletch::service_registry->Unregister(service); |
| 216 } | 216 } |
| OLD | NEW |