2017-05-08 08:31:20 +03:00
|
|
|
header = """/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */"""
|
|
|
|
autogen_warning = """/* DO NOT MODIFY THIS MANUALLY! This file was generated using cbindgen.
|
2017-07-06 01:16:44 +03:00
|
|
|
* To generate this file:
|
|
|
|
* 1. Get the latest cbindgen using `cargo install --force cbindgen`
|
|
|
|
* a. Alternatively, you can clone `https://github.com/rlhunt/cbindgen` and use a tagged release
|
|
|
|
* 2. Run `cbindgen toolkit/library/rust/ --crate webrender_bindings -o gfx/webrender_bindings/webrender_ffi_generated.h`
|
|
|
|
*/"""
|
2017-05-08 08:31:20 +03:00
|
|
|
include_version = true
|
|
|
|
braces = "SameLine"
|
|
|
|
line_length = 100
|
|
|
|
tab_width = 2
|
|
|
|
language = "C++"
|
2017-06-28 02:20:36 +03:00
|
|
|
namespaces = ["mozilla", "wr"]
|
2017-05-08 08:31:20 +03:00
|
|
|
|
2017-07-06 01:16:44 +03:00
|
|
|
[parse]
|
|
|
|
parse_deps = true
|
2017-07-10 14:19:51 +03:00
|
|
|
include = ["webrender", "webrender_api"]
|
2017-07-19 01:32:46 +03:00
|
|
|
expand = ["euclid"]
|
2017-07-06 01:16:44 +03:00
|
|
|
|
2017-05-08 08:31:20 +03:00
|
|
|
[fn]
|
|
|
|
prefix = "WR_INLINE"
|
|
|
|
postfix = "WR_FUNC"
|
|
|
|
args = "Vertical"
|
|
|
|
rename_args = "GeckoCase"
|
|
|
|
|
|
|
|
[struct]
|
|
|
|
derive_eq = true
|
2017-07-19 01:32:46 +03:00
|
|
|
generic_template_specialization = false
|
2017-05-08 08:31:20 +03:00
|
|
|
|
|
|
|
[enum]
|
|
|
|
add_sentinel = true
|