2021-01-31 23:29:55 +02:00
|
|
|
/* WirePlumber
|
|
|
|
|
*
|
|
|
|
|
* Copyright © 2021 Collabora Ltd.
|
|
|
|
|
* @author George Kiagiadakis <george.kiagiadakis@collabora.com>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef __WIREPLUMBER_COMPONENT_LOADER_H__
|
|
|
|
|
#define __WIREPLUMBER_COMPONENT_LOADER_H__
|
|
|
|
|
|
|
|
|
|
#include "plugin.h"
|
|
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
2021-05-13 17:54:58 +03:00
|
|
|
/*!
|
2021-05-21 18:40:43 +03:00
|
|
|
* \brief The WpComponentLoader GType
|
|
|
|
|
* \ingroup wpcomponentloader
|
2021-01-31 23:29:55 +02:00
|
|
|
*/
|
|
|
|
|
#define WP_TYPE_COMPONENT_LOADER (wp_component_loader_get_type ())
|
|
|
|
|
WP_API
|
|
|
|
|
G_DECLARE_DERIVABLE_TYPE (WpComponentLoader, wp_component_loader,
|
|
|
|
|
WP, COMPONENT_LOADER, WpPlugin)
|
|
|
|
|
|
|
|
|
|
struct _WpComponentLoaderClass
|
|
|
|
|
{
|
|
|
|
|
WpPluginClass parent_class;
|
|
|
|
|
|
|
|
|
|
gboolean (*supports_type) (WpComponentLoader * self, const gchar * type);
|
|
|
|
|
|
2023-02-09 13:11:14 -05:00
|
|
|
void (*load) (WpComponentLoader * self, const gchar * component,
|
|
|
|
|
const gchar * type, GVariant * args, GAsyncReadyCallback callback,
|
|
|
|
|
gpointer data);
|
2021-06-08 17:38:14 +03:00
|
|
|
|
|
|
|
|
/*< private >*/
|
|
|
|
|
WP_PADDING(6)
|
2021-01-31 23:29:55 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
|
|
#endif
|