libspa_sys/lib.rs
1// Copyright The pipewire-rs Contributors.
2// SPDX-License-Identifier: MIT
3
4#[allow(non_upper_case_globals)]
5#[allow(non_camel_case_types)]
6#[allow(non_snake_case)]
7#[allow(unpredictable_function_pointer_comparisons)]
8#[allow(clippy::all)]
9/// bindgen-generated definitions
10mod bindings {
11 include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
12}
13pub use bindings::*;
14
15// Manually defined symbols that are manually compiled into a C object file, as they need to be present at link-time.
16//
17// As SPA is a header-only library, global variables and functions are `static` / `static inline`
18// and we need to compile them into a C object ourselves.
19//
20// For functions, this is handled by bindgens "wrap_static_fns" feature.
21//
22// The rest is added in modules here.
23mod type_info;
24pub use type_info::*;