diff options
Diffstat (limited to 'nearby/presence/np_c_ffi/cbindgen_configs/c_config.toml')
-rw-r--r-- | nearby/presence/np_c_ffi/cbindgen_configs/c_config.toml | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/nearby/presence/np_c_ffi/cbindgen_configs/c_config.toml b/nearby/presence/np_c_ffi/cbindgen_configs/c_config.toml new file mode 100644 index 0000000..88483b0 --- /dev/null +++ b/nearby/presence/np_c_ffi/cbindgen_configs/c_config.toml @@ -0,0 +1,50 @@ +language = "C" + +# Instead go through CPP generated header +cpp_compat = false + +style = "type" +header = """ +/* + Copyright 2023 Google LLC + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ +""" +pragma_once = true +autogen_warning = """ +/* + WARNING: this file is autogenerated by cbindgen. Don't modify this manually. + Additionally, you should _not_ rely upon the layouts of the generated + structs and unions if you want your code to be forward-compatible, + unless a given type explicitly states in its documentation that it has + a guaranteed forward-compatible layout. + Instead, you should use _only_ the provided exported function symbols. +*/""" +include_version = true + +sort_by = "None" # Use order specified in Rust + +[export] +# Prefix to add before the name of every item +prefix = "np_ffi_" + +[enum] +rename_variants = "QualifiedScreamingSnakeCase" + +[parse] +parse_deps = true +include = ["np_c_ffi", "np_ffi_core"] + +[parse.expand] +crates = ["np_ffi_core"] +default_features = true |