2020-03-18 17:13:52 +02:00
|
|
|
/* WirePlumber
|
|
|
|
|
*
|
|
|
|
|
* Copyright © 2020 Collabora Ltd.
|
|
|
|
|
* @author George Kiagiadakis <george.kiagiadakis@collabora.com>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef __WIREPLUMBER_SI_FACTORY_H__
|
|
|
|
|
#define __WIREPLUMBER_SI_FACTORY_H__
|
|
|
|
|
|
|
|
|
|
#include "core.h"
|
|
|
|
|
#include "session-item.h"
|
|
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
2021-05-13 17:54:58 +03:00
|
|
|
/*!
|
2021-05-21 18:40:43 +03:00
|
|
|
* \brief The WpSiFactory GType
|
|
|
|
|
* \ingroup wpsifactory
|
2020-03-18 17:13:52 +02:00
|
|
|
*/
|
|
|
|
|
#define WP_TYPE_SI_FACTORY (wp_si_factory_get_type ())
|
|
|
|
|
WP_API
|
|
|
|
|
G_DECLARE_DERIVABLE_TYPE (WpSiFactory, wp_si_factory, WP, SI_FACTORY, GObject)
|
|
|
|
|
|
|
|
|
|
struct _WpSiFactoryClass
|
|
|
|
|
{
|
|
|
|
|
GObjectClass parent_class;
|
|
|
|
|
|
2021-03-17 14:52:41 -04:00
|
|
|
WpSessionItem * (*construct) (WpSiFactory * self, WpCore * core);
|
2021-06-08 17:38:14 +03:00
|
|
|
|
|
|
|
|
/*< private >*/
|
|
|
|
|
WP_PADDING(7)
|
2020-03-18 17:13:52 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
WP_API
|
|
|
|
|
WpSiFactory * wp_si_factory_new_simple (const gchar * factory_name,
|
2021-03-17 14:52:41 -04:00
|
|
|
GType si_type);
|
2020-03-18 17:13:52 +02:00
|
|
|
|
|
|
|
|
WP_API
|
|
|
|
|
const gchar * wp_si_factory_get_name (WpSiFactory * self);
|
|
|
|
|
|
|
|
|
|
WP_API
|
2021-03-17 14:52:41 -04:00
|
|
|
WpSessionItem * wp_si_factory_construct (WpSiFactory * self, WpCore * core);
|
2020-03-18 17:13:52 +02:00
|
|
|
|
|
|
|
|
WP_API
|
|
|
|
|
WpSiFactory * wp_si_factory_find (WpCore * core, const gchar * factory_name);
|
|
|
|
|
|
|
|
|
|
WP_API
|
|
|
|
|
WpSessionItem * wp_session_item_make (WpCore * core, const gchar * factory_name);
|
|
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
|
|
#endif
|