pulse: move pulse protocol to module

This commit is contained in:
Wim Taymans 2020-10-08 11:57:35 +02:00
parent 17843ae7cb
commit f0102fd490
9 changed files with 1227 additions and 917 deletions

View file

@ -87,7 +87,6 @@ int sm_libcamera_monitor_start(struct sm_media_session *sess);
int sm_bluez5_monitor_start(struct sm_media_session *sess);
int sm_alsa_monitor_start(struct sm_media_session *sess);
int sm_suspend_node_start(struct sm_media_session *sess);
int sm_pulse_bridge_start(struct sm_media_session *sess);
int sm_policy_node_start(struct sm_media_session *sess);
@ -2023,6 +2022,15 @@ static void session_shutdown(struct impl *impl)
pw_core_info_free(impl->this.info);
}
static int sm_pulse_bridge_start(struct sm_media_session *sess)
{
if (pw_context_load_module(sess->context,
"libpipewire-module-protocol-pulse",
NULL, NULL) == NULL)
return -errno;
return 0;
}
static void do_quit(void *data, int signal_number)
{
struct impl *impl = data;