Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/* 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
/**
* WP_TYPE_SI_FACTORY:
*
* The #WpSiFactory #GType
*/
#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;
WpSessionItem * (*construct) (WpSiFactory * self);
GVariant * (*get_config_spec) (WpSiFactory * self);
};
WP_API
WpSiFactory * wp_si_factory_new_simple (const gchar * factory_name,
GType si_type, GVariant * config_spec);
WP_API
const gchar * wp_si_factory_get_name (WpSiFactory * self);
WP_API
WpSessionItem * wp_si_factory_construct (WpSiFactory * self);
WP_API
GVariant * wp_si_factory_get_config_spec (WpSiFactory * self);
WP_API
void wp_si_factory_register (WpCore * core, WpSiFactory * factory);
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