diff --git a/lib/wp/remote-pipewire.c b/lib/wp/remote-pipewire.c index 5f763520..64fcd3e5 100644 --- a/lib/wp/remote-pipewire.c +++ b/lib/wp/remote-pipewire.c @@ -370,6 +370,16 @@ wp_remote_pipewire_proxy_bind (WpRemotePipewire *self, guint global_id, 0, 0); } +gpointer +wp_remote_pipewire_find_factory (WpRemotePipewire *self, + const char *factory_name) +{ + g_return_val_if_fail (WP_IS_REMOTE_PIPEWIRE(self), NULL); + g_return_val_if_fail (self->core, NULL); + + return pw_core_find_factory(self->core, factory_name); +} + gpointer wp_remote_pipewire_create_object (WpRemotePipewire *self, const char *factory_name, guint global_type, gconstpointer props) diff --git a/lib/wp/remote-pipewire.h b/lib/wp/remote-pipewire.h index 33e6b9fa..42d430ae 100644 --- a/lib/wp/remote-pipewire.h +++ b/lib/wp/remote-pipewire.h @@ -21,6 +21,8 @@ WpRemote *wp_remote_pipewire_new (WpCore *core, GMainContext *context); gpointer wp_remote_pipewire_proxy_bind (WpRemotePipewire *self, guint global_id, guint global_type); +gpointer wp_remote_pipewire_find_factory (WpRemotePipewire *self, + const char *factory_name); gpointer wp_remote_pipewire_create_object (WpRemotePipewire *self, const char *factory_name, guint global_type, gconstpointer props); void wp_remote_pipewire_add_spa_lib (WpRemotePipewire *self,