diff options
Diffstat (limited to 'third_party/rust/pulse-ffi/src/lib.rs')
-rw-r--r-- | third_party/rust/pulse-ffi/src/lib.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/third_party/rust/pulse-ffi/src/lib.rs b/third_party/rust/pulse-ffi/src/lib.rs new file mode 100644 index 0000000000..3264db62b7 --- /dev/null +++ b/third_party/rust/pulse-ffi/src/lib.rs @@ -0,0 +1,14 @@ +// Required for dlopen, et al. +#[cfg(feature = "dlopen")] +extern crate libc; + +mod ffi_funcs; +mod ffi_types; + +pub use ffi_funcs::*; +pub use ffi_types::*; + +#[cfg(feature = "dlopen")] +pub unsafe fn open() -> Option<LibLoader> { + return LibLoader::open(); +} |