You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/plugin/ext.rs
+5-7Lines changed: 5 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -20,15 +20,13 @@ pub mod tail;
20
20
pubmod thread_pool;
21
21
pubmod voice_info;
22
22
23
-
/// An abstraction for a CLAP plugin extension. `P` here is the plugin type. In practice, this is
24
-
/// either `Plugin`, `PluginShared` or `PluginAudioThread`. Abstractions for main thread functions will implement
25
-
/// this trait for `Plugin`, abstractions for audio thread functions will implement this trait
26
-
/// for `PluginAudioThread` and abstractions for thread-safe functions will implement this trait for
27
-
/// `PluginShared`.
28
-
pubtraitExtension<P>{
23
+
/// An abstraction for a CLAP plugin extension.
24
+
pubtraitExtension{
29
25
/// The list of C-string IDs for the extension.
30
26
constIDS:&'static[&'staticCStr];
31
27
28
+
/// The plugin type (`Plugin` for main-thread, `PluginShared` for shared, `PluginAudioThread` for audio-thread) for which this extension is implemented.
29
+
typePlugin;
32
30
/// The type of the C-struct for the extension.
33
31
typeStruct;
34
32
@@ -38,5 +36,5 @@ pub trait Extension<P> {
38
36
/// # Safety
39
37
/// The extension struct pointer must be a valid pointer to the correct extension struct for
0 commit comments