5#ifndef FLUTTER_RUNTIME_DART_SERVICE_ISOLATE_H_
6#define FLUTTER_RUNTIME_DART_SERVICE_ISOLATE_H_
13#include "flutter/fml/compiler_specific.h"
14#include "third_party/dart/runtime/include/dart_api.h"
62 static bool Startup(
const std::string& server_ip,
65 bool disable_origin_check,
66 bool disable_service_auth_codes,
67 bool enable_service_port_fallback,
103 static std::mutex callbacks_mutex_;
104 static std::set<std::unique_ptr<DartVMServiceServerStateCallback>> callbacks_;
Utility methods for interacting with the DartVM managed service isolate present in debug and profile ...
static CallbackHandle AddServerStatusCallback(const DartVMServiceServerStateCallback &callback)
Add a callback that will get invoked when the VM Service starts up. If the VM Service has already sta...
static bool RemoveServerStatusCallback(CallbackHandle handle)
Removed a callback previously registered via AddServiceStatusCallback.
std::function< void(const std::string &vm_service_uri)> DartVMServiceServerStateCallback
static bool Startup(const std::string &server_ip, intptr_t server_port, Dart_LibraryTagHandler embedder_tag_handler, bool disable_origin_check, bool disable_service_auth_codes, bool enable_service_port_fallback, char **error)
Start the service isolate. This call may only be made in the Dart VM initiated isolate creation callb...
struct _Dart_NativeArguments * Dart_NativeArguments
Dart_Handle(* Dart_LibraryTagHandler)(Dart_LibraryTag tag, Dart_Handle library_or_package_map_url, Dart_Handle url)
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
const uint8_t uint32_t uint32_t GError ** error
Dart_NativeFunction function