2019-05-17 13:08:45 +03:00
|
|
|
/* WirePlumber
|
|
|
|
|
*
|
|
|
|
|
* Copyright © 2019 Collabora Ltd.
|
|
|
|
|
* @author George Kiagiadakis <george.kiagiadakis@collabora.com>
|
|
|
|
|
*
|
2019-05-31 12:13:01 +03:00
|
|
|
* SPDX-License-Identifier: MIT
|
2019-05-17 13:08:45 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* module-pipewire provides basic integration between wireplumber and pipewire.
|
|
|
|
|
* It provides the pipewire core and remote, connects to pipewire and provides
|
2019-12-09 12:34:06 +02:00
|
|
|
* the most primitive implementations of WpBaseEndpoint and WpBaseEndpointLink
|
2019-05-17 13:08:45 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <wp/wp.h>
|
|
|
|
|
#include <pipewire/pipewire.h>
|
|
|
|
|
|
2019-06-28 12:33:00 -04:00
|
|
|
void simple_endpoint_link_factory (WpFactory * factory, GType type,
|
|
|
|
|
GVariant * properties, GAsyncReadyCallback ready, gpointer user_data);
|
2019-09-25 10:25:49 +02:00
|
|
|
void
|
|
|
|
|
audio_softdsp_endpoint_factory (WpFactory * factory, GType type,
|
|
|
|
|
GVariant * properties, GAsyncReadyCallback ready, gpointer user_data);
|
2020-03-02 11:35:13 -05:00
|
|
|
void
|
|
|
|
|
wp_video_endpoint_factory (WpFactory * factory, GType type,
|
|
|
|
|
GVariant * properties, GAsyncReadyCallback ready, gpointer user_data);
|
2019-05-17 13:08:45 +03:00
|
|
|
|
2020-01-16 18:50:07 +02:00
|
|
|
WP_PLUGIN_EXPORT void
|
2019-05-17 13:08:45 +03:00
|
|
|
wireplumber__module_init (WpModule * module, WpCore * core, GVariant * args)
|
|
|
|
|
{
|
2019-09-25 10:25:49 +02:00
|
|
|
/* Register simple-endpoint-link and audio-softdsp-endpoint */
|
2019-05-22 13:03:24 +03:00
|
|
|
wp_factory_new (core, "pipewire-simple-endpoint-link",
|
|
|
|
|
simple_endpoint_link_factory);
|
2019-09-25 10:25:49 +02:00
|
|
|
wp_factory_new (core, "pw-audio-softdsp-endpoint",
|
|
|
|
|
audio_softdsp_endpoint_factory);
|
2020-03-02 11:35:13 -05:00
|
|
|
wp_factory_new (core, "video-endpoint", wp_video_endpoint_factory);
|
2019-05-17 13:08:45 +03:00
|
|
|
}
|