| 1 |
/* WirePlumber |
| 2 |
* |
| 3 |
* Copyright © 2020 Collabora Ltd. |
| 4 |
* @author George Kiagiadakis <[email protected]> |
| 5 |
* |
| 6 |
* SPDX-License-Identifier: MIT |
| 7 |
*/ |
| 8 |
|
| 9 |
#ifndef __WIREPLUMBER_SI_FACTORY_H__ |
| 10 |
#define __WIREPLUMBER_SI_FACTORY_H__ |
| 11 |
|
| 12 |
#include "core.h" |
| 13 |
#include "session-item.h" |
| 14 |
|
| 15 |
G_BEGIN_DECLS |
| 16 |
|
| 17 |
/*! |
| 18 |
* \brief The WpSiFactory GType |
| 19 |
* \ingroup wpsifactory |
| 20 |
*/ |
| 21 |
#define WP_TYPE_SI_FACTORY (wp_si_factory_get_type ()) |
| 22 |
WP_API |
| 23 |
G_DECLARE_DERIVABLE_TYPE (WpSiFactory, wp_si_factory, WP, SI_FACTORY, GObject) |
| 24 |
|
| 25 |
struct _WpSiFactoryClass |
| 26 |
{ |
| 27 |
GObjectClass parent_class; |
| 28 |
|
| 29 |
WpSessionItem * (*construct) (WpSiFactory * self, WpCore * core); |
| 30 |
|
| 31 |
/*< private >*/ |
| 32 |
WP_PADDING(7) |
| 33 |
}; |
| 34 |
|
| 35 |
WP_API |
| 36 |
WpSiFactory * wp_si_factory_new_simple (const gchar * factory_name, |
| 37 |
GType si_type); |
| 38 |
|
| 39 |
WP_API |
| 40 |
const gchar * wp_si_factory_get_name (WpSiFactory * self); |
| 41 |
|
| 42 |
WP_API |
| 43 |
WpSessionItem * wp_si_factory_construct (WpSiFactory * self, WpCore * core); |
| 44 |
|
| 45 |
WP_API |
| 46 |
WpSiFactory * wp_si_factory_find (WpCore * core, const gchar * factory_name); |
| 47 |
|
| 48 |
WP_API |
| 49 |
WpSessionItem * wp_session_item_make (WpCore * core, const gchar * factory_name); |
| 50 |
|
| 51 |
G_END_DECLS |
| 52 |
|
| 53 |
#endif |