-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcbindgen.toml
45 lines (35 loc) · 1.16 KB
/
cbindgen.toml
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
cpp_compat = true
header = """// Copyright 2024 Adobe. All rights reserved.
// This file is licensed to you under the Apache License,
// Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
// or the MIT license (http://opensource.org/licenses/MIT),
// at your option.
// Unless required by applicable law or agreed to in writing,
// this software is distributed on an "AS IS" BASIS, WITHOUT
// WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or
// implied. See the LICENSE-MIT and LICENSE-APACHE files for the
// specific language governing permissions and limitations under
// each license.
// This file is generated by cbindgen. Do not edit by hand."""
include_guard = "c2pa_bindings_h"
after_includes = """
#if defined(_WIN32) || defined(_WIN64)
#if defined(_STATIC_C2PA)
#define IMPORT __declspec(dllexport)
#else
#if __GNUC__
#define IMPORT __attribute__ ((dllimport))
#else
#define IMPORT __declspec(dllimport)
#endif
#endif
#else
#define IMPORT
#endif
"""
[export]
include = ["C2paReader", "C2paBuilder"]
[export.rename]
"C2paConfigC" = "C2paConfig"
[fn]
prefix = "IMPORT extern"