| 1 |
/* WirePlumber |
| 2 |
* |
| 3 |
* Copyright © 2020 Collabora Ltd. |
| 4 |
* @author Julian Bouzas <[email protected]> |
| 5 |
* |
| 6 |
* SPDX-License-Identifier: MIT |
| 7 |
*/ |
| 8 |
|
| 9 |
#ifndef __WIREPLUMBER_STATE_H__ |
| 10 |
#define __WIREPLUMBER_STATE_H__ |
| 11 |
|
| 12 |
#include "properties.h" |
| 13 |
#include "core.h" |
| 14 |
|
| 15 |
G_BEGIN_DECLS |
| 16 |
|
| 17 |
/* WpState */ |
| 18 |
|
| 19 |
/*! |
| 20 |
* \brief The WpState GType |
| 21 |
* \ingroup wpstate |
| 22 |
*/ |
| 23 |
#define WP_TYPE_STATE (wp_state_get_type ()) |
| 24 |
WP_API |
| 25 |
G_DECLARE_FINAL_TYPE (WpState, wp_state, WP, STATE, GObject) |
| 26 |
|
| 27 |
WP_API |
| 28 |
WpState * wp_state_new (const gchar *name); |
| 29 |
|
| 30 |
WP_API |
| 31 |
const gchar * wp_state_get_name (WpState *self); |
| 32 |
|
| 33 |
WP_API |
| 34 |
const gchar * wp_state_get_location (WpState *self); |
| 35 |
|
| 36 |
WP_API |
| 37 |
void wp_state_clear (WpState *self); |
| 38 |
|
| 39 |
WP_API |
| 40 |
gboolean wp_state_save (WpState *self, WpProperties *props, GError ** error); |
| 41 |
|
| 42 |
WP_API |
| 43 |
void wp_state_save_after_timeout (WpState *self, WpCore *core, |
| 44 |
WpProperties *props); |
| 45 |
|
| 46 |
WP_API |
| 47 |
WpProperties * wp_state_load (WpState *self); |
| 48 |
|
| 49 |
G_END_DECLS |
| 50 |
|
| 51 |
#endif |