| 1 |
/* WirePlumber |
| 2 |
* |
| 3 |
* Copyright © 2022 Collabora Ltd. |
| 4 |
* @author Julian Bouzas <[email protected]> |
| 5 |
* |
| 6 |
* SPDX-License-Identifier: MIT |
| 7 |
*/ |
| 8 |
|
| 9 |
#ifndef __WIREPLUMBER_CONF_H__ |
| 10 |
#define __WIREPLUMBER_CONF_H__ |
| 11 |
|
| 12 |
#include "spa-json.h" |
| 13 |
#include "properties.h" |
| 14 |
|
| 15 |
G_BEGIN_DECLS |
| 16 |
|
| 17 |
struct pw_context; |
| 18 |
|
| 19 |
/*! |
| 20 |
* \brief The WpConf GType |
| 21 |
* \ingroup wpconf |
| 22 |
*/ |
| 23 |
#define WP_TYPE_CONF (wp_conf_get_type ()) |
| 24 |
|
| 25 |
WP_API |
| 26 |
G_DECLARE_FINAL_TYPE (WpConf, wp_conf, WP, CONF, GObject) |
| 27 |
|
| 28 |
WP_API |
| 29 |
WpConf * wp_conf_new (const gchar * name, WpProperties * properties); |
| 30 |
|
| 31 |
WP_API |
| 32 |
WpConf * wp_conf_new_open (const gchar * name, WpProperties * properties, |
| 33 |
GError ** error); |
| 34 |
|
| 35 |
WP_API |
| 36 |
gboolean wp_conf_open (WpConf * self, GError ** error); |
| 37 |
|
| 38 |
WP_API |
| 39 |
void wp_conf_close (WpConf * self); |
| 40 |
|
| 41 |
WP_API |
| 42 |
gboolean wp_conf_is_open (WpConf * self); |
| 43 |
|
| 44 |
WP_API |
| 45 |
const gchar * wp_conf_get_name (WpConf * self); |
| 46 |
|
| 47 |
WP_API |
| 48 |
WpSpaJson * wp_conf_get_section (WpConf *self, const gchar *section); |
| 49 |
|
| 50 |
WP_API |
| 51 |
gint wp_conf_section_update_props (WpConf * self, const gchar * section, |
| 52 |
WpProperties * props); |
| 53 |
|
| 54 |
WP_API |
| 55 |
void wp_conf_parse_pw_context_sections (WpConf * self, |
| 56 |
struct pw_context * context); |
| 57 |
|
| 58 |
G_END_DECLS |
| 59 |
|
| 60 |
#endif |