Files
wireplumber/lib/wp/component-loader.h
George Kiagiadakis 843e7ef4dd component-loader: pass core and cancellable parameters in load()
Regarding the core parameter, the case used to be that WpComponentLoader
was a WpPlugin, so it had a reference to the core internally, but since
this is no longer a requirement, we need to pass this explicitly
2023-05-26 13:04:10 +03:00

43 lines
979 B
C

/* 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"
#include "spa-json.h"
G_BEGIN_DECLS
/*!
* \brief The WpComponentLoader GType
* \ingroup wpcomponentloader
*/
#define WP_TYPE_COMPONENT_LOADER (wp_component_loader_get_type ())
WP_API
G_DECLARE_INTERFACE (WpComponentLoader, wp_component_loader,
WP, COMPONENT_LOADER, GObject)
struct _WpComponentLoaderInterface
{
GTypeInterface interface;
gboolean (*supports_type) (WpComponentLoader * self, const gchar * type);
void (*load) (WpComponentLoader * self, WpCore * core,
const gchar * component, const gchar * type, WpSpaJson * args,
GCancellable * cancellable, GAsyncReadyCallback callback, gpointer data);
/*< private >*/
WP_PADDING(6)
};
G_END_DECLS
#endif