lv2_sys/lib.rs
1//! Raw bindings of all LV2 specification headers.
2//!
3//! Bindings to the official [LV2](https://lv2plug.in/) API headers, used by [`rust-lv2`](https://crates.io/crates/lv2), a safe, fast, and ergonomic framework to create [LV2 plugins](http://lv2plug.in/) for audio processing, written in Rust. The crate uses the version 1.18.0 of the specification, as pulled from the [project's website](https://lv2plug.in/lv2-1-18-0.html).
4#![allow(non_upper_case_globals)]
5#![allow(non_camel_case_types)]
6#![allow(non_snake_case)]
7#![allow(clippy::all)]
8
9#[cfg_attr(target_os = "linux", path = "linux/mod.rs")]
10#[cfg_attr(target_os = "windows", path = "windows.rs")]
11mod unsupported;
12pub use unsupported::*;
13
14impl From<u32> for LV2_State_Flags {
15 fn from(flags: u32) -> Self {
16 Self(flags as _)
17 }
18}
19
20impl From<LV2_State_Flags> for u32 {
21 fn from(flags: LV2_State_Flags) -> u32 {
22 flags.0 as u32
23 }
24}