-
Notifications
You must be signed in to change notification settings - Fork 1
/
ffigen.yaml
33 lines (27 loc) · 845 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
# Run with `dart run ffigen --config ffigen.yaml`.
name: Pdfium
description: |
Bindings for `src/flutter_pdfium.h`.
Contains all public functions from all public headers of pdfium.
The headers are wrapped in this library to enable easy access to the API
in macOS and iOS because of treeshaking. The effective calls are renamed
to remove the prefix `PDFIUM_FPDF_` and `PDFIUM_FPDF`.
output: 'lib/src/pdfium.dart'
headers:
entry-points:
- 'src/flutter_pdfium.h'
preamble: |
// ignore_for_file: always_specify_types
// ignore_for_file: camel_case_types
// ignore_for_file: non_constant_identifier_names
// ignore_for_file: unused_field, unused_element
ignore-source-errors: true
comments:
style: any
length: full
functions:
include:
- PDFIUM_.*
rename:
'PDFIUM_FPDF_(.*)': $1
'PDFIUM_FPDF(.*)': $1