remote-pipewire: add find_factory API

This commit is contained in:
Julian Bouzas
2019-08-19 10:41:33 -04:00
parent d4f882d731
commit aa07ec09e4
2 changed files with 12 additions and 0 deletions

View File

@@ -370,6 +370,16 @@ wp_remote_pipewire_proxy_bind (WpRemotePipewire *self, guint global_id,
0, 0); 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 gpointer
wp_remote_pipewire_create_object (WpRemotePipewire *self, wp_remote_pipewire_create_object (WpRemotePipewire *self,
const char *factory_name, guint global_type, gconstpointer props) const char *factory_name, guint global_type, gconstpointer props)

View File

@@ -21,6 +21,8 @@ WpRemote *wp_remote_pipewire_new (WpCore *core, GMainContext *context);
gpointer wp_remote_pipewire_proxy_bind (WpRemotePipewire *self, guint global_id, gpointer wp_remote_pipewire_proxy_bind (WpRemotePipewire *self, guint global_id,
guint global_type); guint global_type);
gpointer wp_remote_pipewire_find_factory (WpRemotePipewire *self,
const char *factory_name);
gpointer wp_remote_pipewire_create_object (WpRemotePipewire *self, gpointer wp_remote_pipewire_create_object (WpRemotePipewire *self,
const char *factory_name, guint global_type, gconstpointer props); const char *factory_name, guint global_type, gconstpointer props);
void wp_remote_pipewire_add_spa_lib (WpRemotePipewire *self, void wp_remote_pipewire_add_spa_lib (WpRemotePipewire *self,