Files
wireplumber/lib/wp/state.h

55 lines
1.0 KiB
C

/* WirePlumber
*
* Copyright © 2020 Collabora Ltd.
* @author Julian Bouzas <julian.bouzas@collabora.com>
*
* SPDX-License-Identifier: MIT
*/
#ifndef __WIREPLUMBER_STATE_H__
#define __WIREPLUMBER_STATE_H__
#include "properties.h"
G_BEGIN_DECLS
/* WpState */
/*!
* @memberof WpState
*
* @brief The [WpState](@ref state_section)
* <a href="https://developer.gnome.org/gobject/stable/gobject-Type-Information.html#GType">
* GType</a>
*
* @code
* #define WP_TYPE_STATE (wp_state_get_type ())
* @endcode
*
*/
#define WP_TYPE_STATE (wp_state_get_type ())
WP_API
G_DECLARE_FINAL_TYPE (WpState, wp_state, WP, STATE, GObject)
WP_API
WpState * wp_state_new (const gchar *name);
WP_API
const gchar * wp_state_get_name (WpState *self);
WP_API
const gchar * wp_state_get_location (WpState *self);
WP_API
void wp_state_clear (WpState *self);
WP_API
gboolean wp_state_save (WpState *self, const gchar *group, WpProperties *props);
WP_API
WpProperties * wp_state_load (WpState *self, const gchar *group);
G_END_DECLS
#endif