
Aim for 8 pointers on each struct, wich exceptions: - 12 pointers for already crowded/important ones - 4 pointers for empty ones that are used for proxies; we are unlikely to add any virtual methods on these classes ever
41 lines
892 B
C
41 lines
892 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"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
/*!
|
|
* \brief The WpComponentLoader GType
|
|
* \ingroup wpcomponentloader
|
|
*/
|
|
#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);
|
|
|
|
gboolean (*load) (WpComponentLoader * self, const gchar * component,
|
|
const gchar * type, GVariant * args, GError ** error);
|
|
|
|
/*< private >*/
|
|
WP_PADDING(6)
|
|
};
|
|
|
|
G_END_DECLS
|
|
|
|
#endif
|