Debian Codegraph @

third_party/rust/mp4parse_capi/cbindgen.toml

raw
1 header = """/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */"""
4 autogen_warning = """/* DO NOT MODIFY THIS MANUALLY! This file was generated using cbindgen. */
5 #ifndef mp4parse_rust_mp4parse_h
6 #error "Don't include this file directly, instead include mp4parse.h"
7 #endif
8 """
9 include_version = true
10 braces = "SameLine"
11 line_length = 100
12 tab_width = 2
13 language = "C"
14 cpp_compat = true
15
16 [enum]
17 rename_variants = "QualifiedScreamingSnakeCase"
18
19 [defines]
20 "feature = 3gpp" = "MP4PARSE_FEATURE_3GPP"
21 "feature = meta-xml" = "MP4PARSE_FEATURE_META_XML"
22 "feature = unstable-api" = "MP4PARSE_UNSTABLE_API"
23
24 [parse]
25 parse_deps = true
26 include = ["mp4parse"]
27
28 [export]
29 # `mp4parse::Status` was previously defined as `mp4parse_capi::Mp4parseStatus`,
30 # but now is referenced from `mp4parse_capi` via `pub use mp4parse::Status as Mp4parseStatus`,
31 # the name `Status` does not appear in the public C API, so we must force its inclusion.
32 # Similarly, we must force the inclusion of `mp4parse::Feature` as well.
33 include = ["Status", "Feature"]
34
35 [export.rename]
36 # We need to declare these types in mp4parse, but we rename them in the generated
37 # header to match mp4parse_capi naming conventions
38 "Status" = "Mp4parseStatus"
39 "Feature" = "Mp4parseFeature"
40 "ParseStrictness" = "Mp4parseStrictness"
41 "ImageSpatialExtentsProperty" = "Mp4parseImageSpatialExtents"
42 "ImageRotation" = "Mp4parseIrot"
43 "ImageMirror" = "Mp4parseImir"
44 "Indice" = "Mp4parseIndice"
45 "NclxColourInformation" = "Mp4parseNclxColourInformation"