Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wireplumber
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pkg
wireplumber
Commits
f5a51c6a
Commit
f5a51c6a
authored
5 years ago
by
Julian Bouzas
Browse files
Options
Downloads
Patches
Plain Diff
remote-pipepwire: add module_load, load_spa_handle, add_spa_lib and export APIs
parent
759aa450
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/wp/remote-pipewire.c
+37
-1
37 additions, 1 deletion
lib/wp/remote-pipewire.c
lib/wp/remote-pipewire.h
+9
-0
9 additions, 0 deletions
lib/wp/remote-pipewire.h
with
46 additions
and
1 deletion
lib/wp/remote-pipewire.c
+
37
−
1
View file @
f5a51c6a
...
...
@@ -379,6 +379,42 @@ wp_remote_pipewire_create_object (WpRemotePipewire *self,
g_return_val_if_fail
(
WP_IS_REMOTE_PIPEWIRE
(
self
),
NULL
);
g_return_val_if_fail
(
self
->
core_proxy
,
NULL
);
return
pw_core_proxy_create_object
(
self
->
core_proxy
,
factory_name
,
return
pw_core_proxy_create_object
(
self
->
core_proxy
,
factory_name
,
global_type
,
0
,
props
,
0
);
}
void
wp_remote_pipewire_add_spa_lib
(
WpRemotePipewire
*
self
,
const
char
*
factory_regexp
,
const
char
*
lib
)
{
g_return_if_fail
(
WP_IS_REMOTE_PIPEWIRE
(
self
));
pw_core_add_spa_lib
(
self
->
core
,
factory_regexp
,
lib
);
}
gpointer
wp_remote_pipewire_load_spa_handle
(
WpRemotePipewire
*
self
,
const
char
*
factory_name
,
gconstpointer
info
)
{
g_return_val_if_fail
(
WP_IS_REMOTE_PIPEWIRE
(
self
),
NULL
);
return
pw_core_load_spa_handle
(
self
->
core
,
factory_name
,
info
);
}
gpointer
wp_remote_pipewire_export
(
WpRemotePipewire
*
self
,
guint
type
,
gpointer
props
,
gpointer
object
,
size_t
user_data_size
)
{
g_return_val_if_fail
(
WP_IS_REMOTE_PIPEWIRE
(
self
),
NULL
);
return
pw_remote_export
(
self
->
remote
,
type
,
props
,
object
,
user_data_size
);
}
gpointer
wp_remote_pipewire_module_load
(
WpRemotePipewire
*
self
,
const
char
*
name
,
const
char
*
args
,
gpointer
owner
,
gpointer
parent
,
gpointer
properties
)
{
g_return_val_if_fail
(
WP_IS_REMOTE_PIPEWIRE
(
self
),
NULL
);
return
pw_module_load
(
self
->
core
,
name
,
args
,
owner
,
parent
,
properties
);
}
This diff is collapsed.
Click to expand it.
lib/wp/remote-pipewire.h
+
9
−
0
View file @
f5a51c6a
...
...
@@ -23,6 +23,15 @@ gpointer wp_remote_pipewire_proxy_bind (WpRemotePipewire *self, guint global_id,
guint
global_type
);
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
,
const
char
*
factory_regexp
,
const
char
*
lib
);
gpointer
wp_remote_pipewire_load_spa_handle
(
WpRemotePipewire
*
self
,
const
char
*
factory_name
,
gconstpointer
info
);
gpointer
wp_remote_pipewire_export
(
WpRemotePipewire
*
self
,
guint
type
,
gpointer
props
,
gpointer
object
,
size_t
user_data_size
);
gpointer
wp_remote_pipewire_module_load
(
WpRemotePipewire
*
self
,
const
char
*
name
,
const
char
*
args
,
gpointer
owner
,
gpointer
parent
,
gpointer
properties
);
G_END_DECLS
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment