generated from sensuikan1973/dart-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathffigen.yaml
77 lines (77 loc) · 2.29 KB
/
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
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
---
# See: https://pub.dev/packages/ffigen#configurations
name: 'LibEdaxBindings'
description: 'bindings to libedax'
output: 'lib/src/ffi/bindings.dart'
sort: true
ignore-source-errors: true # workaround for https://github.com/sensuikan1973/libedax4dart/issues/482
# See: https://github.com/dart-lang/pana/issues/1013
# See: https://dart.dev/guides/language/analysis-options#excluding-code-from-analysis
preamble: "// ignore_for_file: type=lint, unused_element, unused_field"
headers:
entry-points:
- 'edax-reversi/src/all.c'
structs:
pack:
# See: https://github.com/sensuikan1973/libedax4dart/pull/74#issuecomment-890427516
# See: https://github.com/dart-lang/sdk/issues/46644
'sockaddr_storage': 1
# See: https://github.com/sensuikan1973/libedax4dart/pull/85#issuecomment-955761136
dependency-only: opaque
llvm-path: # https://github.com/dart-lang/ffigen#installing-llvm
- '/usr/local/opt/llvm' # NOTE: This is for macos, and require `brew install llvm`.
functions:
include:
- 'bit_count'
- 'edax_book_count_bestpath'
- 'edax_book_count_board_bestpath'
- 'edax_book_deviate'
- 'edax_book_fix'
- 'edax_book_load'
- 'edax_book_new'
- 'edax_book_off'
- 'edax_book_on'
- 'edax_book_randomness'
- 'edax_book_save'
- 'edax_book_show'
- 'edax_book_stop_count_bestpath'
- 'edax_book_store'
- 'edax_book_verbose'
- 'edax_can_move'
- 'edax_disable_book_verbose'
- 'edax_enable_book_verbose'
- 'edax_get_board'
- 'edax_get_bookmove_with_position_by_moves'
- 'edax_get_bookmove_with_position'
- 'edax_get_bookmove'
- 'edax_get_current_player'
- 'edax_get_disc'
- 'edax_get_last_move'
- 'edax_get_mobility_count'
- 'edax_get_moves'
- 'edax_go'
- 'edax_hint_next_no_multipv_depth'
- 'edax_hint_next'
- 'edax_hint_prepare'
- 'edax_hint'
- 'edax_init'
- 'edax_is_game_over'
- 'edax_mode'
- 'edax_move'
- 'edax_new'
- 'edax_opening'
- 'edax_options_dump'
- 'edax_play_print'
- 'edax_play'
- 'edax_redo'
- 'edax_rotate'
- 'edax_set_option'
- 'edax_setboard'
- 'edax_stop'
- 'edax_undo'
- 'edax_version'
- 'edax_vmirror'
- 'edax_board_is_pass'
- 'edax_board_get_square_color'
- 'libedax_initialize'
- 'libedax_terminate'