| # Run with `dart run ffigen --config ffigen.yaml`. |
| name: ObjectiveCBindings |
| description: | |
| Bindings for `src/objective_c.h` and `src/objective_c_runtime.h`. |
| |
| Regenerate bindings with `dart run ffigen --config ffigen.yaml`. |
| output: 'lib/src/objective_c_bindings_generated.dart' |
| headers: |
| entry-points: |
| - 'src/objective_c.h' |
| - 'src/objective_c_runtime.h' |
| ffi-native: |
| functions: |
| leaf: |
| include: |
| - '(?!objc_msgSend).*' |
| rename: |
| 'sel_registerName': 'registerName' |
| 'objc_getClass': 'getClass' |
| 'objc_retain': 'objectRetain' |
| 'objc_release': 'objectRelease' |
| 'objc_msgSend': 'msgSend' |
| 'objc_msgSend_fpret': 'msgSendFpret' |
| 'objc_msgSend_stret': 'msgSendStret' |
| '_Block_copy': 'blockCopy' |
| '_Block_release': 'blockRelease' |
| globals: |
| include: |
| - _NSConcreteGlobalBlock |
| rename: |
| '_(.*)': '$1' |
| preamble: | |
| // Copyright (c) 2024, 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. |
| |
| // ignore_for_file: always_specify_types |
| // ignore_for_file: camel_case_types |
| // ignore_for_file: non_constant_identifier_names |