Skip to content

Commit

Permalink
fix(ffi): wireplumber 0.5 pending changes (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
arcnmx committed May 28, 2024
1 parent 5e92b31 commit b2ae5e5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 3 additions & 2 deletions src/core/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ impl Core {
unsafe { NonNull::new(ffi::wp_core_get_pw_context(self.to_glib_none().0)).expect("pw_context for WpCore") }
}

#[cfg(todo)]
#[doc(alias = "wp_core_load_component")]
pub fn load_lua_script<A: ToLuaTable>(&self, script_path: &str, args: A) -> Result<(), Error> {
let args = args
Expand Down Expand Up @@ -143,9 +144,9 @@ impl Core {
#[test]
#[cfg(any(feature = "v0_4_2"))]
fn wp_new_files_iterator() {
let file = Core::find_file(LookupDirs::PREFIX_SHARE, "create-item.lua", Some("scripts"));
let file = Core::find_file(BaseDirsFlags::MODULE, "create-item.lua", Some("scripts"));
assert!(file.is_some());

let files = Core::find_files(LookupDirs::PREFIX_SHARE, None, Some(".conf")).into_iter();
let files = Core::find_files(BaseDirsFlags::CONFIGURATION, None, Some(".conf")).into_iter();
assert_ne!(0, files.count());
}
6 changes: 4 additions & 2 deletions src/plugin/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,17 @@
//! - [Component Loader](https://pipewire.pages.freedesktop.org/wireplumber/library/c_api/component_loader_api.html)
pub use {
self::{
/*self::{
loader::{ComponentLoaderImpl, ComponentLoaderImplExt},
subclass::{
plugin_export, simple_plugin_subclass, AsyncPluginExt, AsyncPluginImpl, ModuleExport, ModuleWrapper, PluginImpl,
PluginImplExt, SimplePlugin, SimplePluginObject, SourceHandles, SourceHandlesCell,
},
},
},*/
crate::auto::{traits::PluginExt, ComponentLoader, Plugin, PluginFeatures},
};

#[cfg(todo)]
mod loader;
#[cfg(todo)]
mod subclass;
2 changes: 1 addition & 1 deletion src/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub use {
core::ObjectExt as _,
event::EventHookExt as _,
log::log_topic,
plugin::{AsyncPluginExt as _, PluginExt as _},
plugin::{/*AsyncPluginExt as _,*/ PluginExt as _},
pw::{
GlobalProxyExt as _, MetadataExt as _, PipewireObjectExt as _, PipewireObjectExt2 as _,
PipewirePropertyStringIterExt as _, ProxyExt as _, ProxyExt2 as _,
Expand Down

0 comments on commit b2ae5e5

Please sign in to comment.