1
0
Fork 0

Silence missing docs warnings for entry points

This commit is contained in:
Robbert van der Helm 2023-03-02 12:58:51 +01:00
parent b840113caf
commit 6fe5c7c471
2 changed files with 8 additions and 0 deletions

View file

@ -51,6 +51,7 @@ macro_rules! nih_export_clap {
}
}
/// The CLAP plugin's entry point.
#[no_mangle]
#[used]
pub static clap_entry: ::nih_plug::wrapper::clap::clap_plugin_entry =

View file

@ -17,6 +17,7 @@ pub use factory::Factory;
#[macro_export]
macro_rules! nih_export_vst3 {
($plugin_ty:ty) => {
/// The VST3 plugin factory entry point.
#[no_mangle]
pub extern "system" fn GetPluginFactory() -> *mut ::std::ffi::c_void {
let factory = ::nih_plug::wrapper::vst3::Factory::<$plugin_ty>::new();
@ -27,6 +28,7 @@ macro_rules! nih_export_vst3 {
// These two entry points are used on Linux, and they would theoretically also be used on
// the BSDs:
// https://github.com/steinbergmedia/vst3_public_sdk/blob/c3948deb407bdbff89de8fb6ab8500ea4df9d6d9/source/main/linuxmain.cpp#L47-L52
#[allow(missing_docs)]
#[no_mangle]
#[cfg(all(target_family = "unix", not(target_os = "macos")))]
pub extern "C" fn ModuleEntry(_lib_handle: *mut ::std::ffi::c_void) -> bool {
@ -34,6 +36,7 @@ macro_rules! nih_export_vst3 {
true
}
#[allow(missing_docs)]
#[no_mangle]
#[cfg(all(target_family = "unix", not(target_os = "macos")))]
pub extern "C" fn ModuleExit() -> bool {
@ -42,6 +45,7 @@ macro_rules! nih_export_vst3 {
// These two entry points are used on macOS:
// https://github.com/steinbergmedia/vst3_public_sdk/blob/bc459feee68803346737901471441fd4829ec3f9/source/main/macmain.cpp#L60-L61
#[allow(missing_docs)]
#[no_mangle]
#[cfg(target_os = "macos")]
pub extern "C" fn bundleEntry(_lib_handle: *mut ::std::ffi::c_void) -> bool {
@ -49,6 +53,7 @@ macro_rules! nih_export_vst3 {
true
}
#[allow(missing_docs)]
#[no_mangle]
#[cfg(target_os = "macos")]
pub extern "C" fn bundleExit() -> bool {
@ -57,6 +62,7 @@ macro_rules! nih_export_vst3 {
// And these two entry points are used on Windows:
// https://github.com/steinbergmedia/vst3_public_sdk/blob/bc459feee68803346737901471441fd4829ec3f9/source/main/dllmain.cpp#L59-L60
#[allow(missing_docs)]
#[no_mangle]
#[cfg(target_os = "windows")]
pub extern "system" fn InitDll() -> bool {
@ -64,6 +70,7 @@ macro_rules! nih_export_vst3 {
true
}
#[allow(missing_docs)]
#[no_mangle]
#[cfg(target_os = "windows")]
pub extern "system" fn ExitDll() -> bool {