d98f777da8
Adapted the solution from https://github.com/mraleph/go_dart_ffi_example/blob/master/dart_api_dl/include/dart_api_dl.c such that we only have one carbon copy of the signatures. This breaks existing code because the file is renamed, which is added to the changelog. Closes: https://github.com/dart-lang/sdk/issues/42982 Change-Id: If9300cac513c6cf5dac9e524bfc069764bb1a3f8 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/157965 Commit-Queue: Daco Harkes <dacoharkes@google.com> Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
22 lines
584 B
C
22 lines
584 B
C
/*
|
|
* Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
|
|
* for details. All rights reserved. Use of this source code is governed by a
|
|
* BSD-style license that can be found in the LICENSE file.
|
|
*/
|
|
|
|
#ifndef RUNTIME_INCLUDE_INTERNAL_DART_API_DL_IMPL_H_
|
|
#define RUNTIME_INCLUDE_INTERNAL_DART_API_DL_IMPL_H_
|
|
|
|
typedef struct {
|
|
const char* name;
|
|
void (*function)();
|
|
} DartApiEntry;
|
|
|
|
typedef struct {
|
|
const int major;
|
|
const int minor;
|
|
const DartApiEntry* const functions;
|
|
} DartApi;
|
|
|
|
#endif /* RUNTIME_INCLUDE_INTERNAL_DART_API_DL_IMPL_H_ */ /* NOLINT */
|