Flutter Engine
The Flutter Engine
Functions
dart_dl.cc File Reference
#include "dart_dl.h"
#include "flutter/fml/logging.h"
#include "include/dart_api_dl.h"

Go to the source code of this file.

Functions

int zircon_dart_dl_initialize (void *initialize_api_dl_data)
 

Function Documentation

◆ zircon_dart_dl_initialize()

int zircon_dart_dl_initialize ( void *  initialize_api_dl_data)

Definition at line 6 of file dart_dl.cc.

6 {
7 if (Dart_InitializeApiDL(initialize_api_dl_data) != 0) {
8 FML_LOG(ERROR) << "Failed to initialise Dart VM API";
9 return -1;
10 }
11 // Check symbols used are present
12 if (Dart_NewFinalizableHandle_DL == NULL) {
13 FML_LOG(ERROR) << "Unable to find Dart API finalizer symbols.";
14 return -1;
15 }
16 return 1;
17}
intptr_t Dart_InitializeApiDL(void *data)
Definition: dart_api_dl.c:45
#define FML_LOG(severity)
Definition: logging.h:82
#define ERROR(message)
Definition: elf_loader.cc:260