-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathffigen_c.yaml
81 lines (79 loc) · 2.57 KB
/
ffigen_c.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Generate bindings for the C headers.
# Regenerate bindings with `dart run tool/generate_code.dart`.
name: CBindings
output: 'lib/src/c_bindings_generated.dart'
headers:
entry-points:
- 'src/include/dart_api_dl.h'
- 'src/objective_c.h'
- 'src/objective_c_runtime.h'
ffi-native:
assetId: 'objective_c.framework/objective_c'
exclude-all-by-default: true
generate-for-package-objective-c: true
sort: true
functions:
include:
- 'objc_.*'
- 'object_getClass'
- 'sel_registerName'
- 'sel_getName'
- 'protocol_getMethodDescription'
- 'protocol_getName'
- 'Dart_InitializeApiDL'
- 'newFinalizableHandle'
- 'DOBJC_.*'
leaf:
include:
- '.*'
exclude:
- 'objc_msgSend.*'
- 'DOBJC_deleteFinalizableHandle'
- 'DOBJC_disposeObjCBlockWithClosure'
- 'DOBJC_newFinalizableBool'
- 'DOBJC_newFinalizableHandle'
- 'DOBJC_awaitWaiter'
rename:
'DOBJC_disposeObjCBlockWithClosure': 'disposeObjCBlockWithClosure'
'DOBJC_isValidBlock': 'isValidBlock'
'DOBJC_newFinalizableHandle': 'newFinalizableHandle'
'DOBJC_deleteFinalizableHandle': 'deleteFinalizableHandle'
'DOBJC_newFinalizableBool': 'newFinalizableBool'
'DOBJC_newWaiter': 'newWaiter'
'DOBJC_signalWaiter': 'signalWaiter'
'DOBJC_awaitWaiter': 'awaitWaiter'
'sel_registerName': 'registerName'
'sel_getName': 'getName'
'objc_getClass': 'getClass'
'objc_retain': 'objectRetain'
'objc_retainBlock': 'blockRetain'
'objc_release': 'objectRelease'
'objc_autorelease': 'objectAutorelease'
'objc_msgSend': 'msgSend'
'objc_msgSend_fpret': 'msgSendFpret'
'objc_msgSend_stret': 'msgSendStret'
'object_getClass': 'getObjectClass'
'objc_copyClassList': 'copyClassList'
'objc_getProtocol': 'getProtocol'
'protocol_getMethodDescription': 'getMethodDescription'
'protocol_getName': 'getProtocolName'
globals:
include:
- '_NSConcrete.*Block'
rename:
'_(.*)': '$1'
typedefs:
include:
- 'ObjC.*'
- 'Dart_FinalizableHandle'
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.
// Bindings for `src/objective_c.h` and `src/objective_c_runtime.h`.
// Regenerate bindings with `dart run tool/generate_code.dart`.
// ignore_for_file: always_specify_types
// ignore_for_file: camel_case_types
// ignore_for_file: non_constant_identifier_names
// ignore_for_file: unused_element
// coverage:ignore-file