forked from vm75/sweph.dart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ffigen.yaml
35 lines (34 loc) · 900 Bytes
/
ffigen.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
# Run with `dart run ffigen --config ffigen.yaml`.
name: SwephBindings
description: |
Bindings for Sweph.
Regenerate bindings with `dart run ffigen --config ffigen.yaml`.
Replace 'dart:ffi' with 'ffi_proxy.dart'
output: 'lib/src/bindings.dart'
headers:
entry-points:
- 'native/sweph/src/swephexp.h'
- 'native/utils/mem_io.h'
include-directives:
- 'native/sweph/src/swephexp.h'
- 'native/utils/mem_io.h'
preamble: |
// ignore_for_file: always_specify_types
// ignore_for_file: camel_case_types
// ignore_for_file: constant_identifier_names
// ignore_for_file: non_constant_identifier_names
comments:
style: any
length: full
functions:
exclude:
- swe_heliacal_angle
- swe_topo_arcus_visionis
- swe_set_astro_models
- swe_get_astro_models
type-map:
'native-types':
'char':
'lib': 'ffi'
'c-type': 'Uint8'
'dart-type': 'int'