mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2025-12-26 14:10:04 +01:00
- settings.c tests conf file loading & parsing, metadata updates, wpsetttings object creation and its API. - settings.lua tests the API from lua scripts. - Add a sample settings.conf file, this file contains sections copied over from client.conf along with the settings section. Add a file each for wp side and lua side of scripts. - Make changes in base test infrastructure to take a custom conf file. - Enhance the wp_settings_get_instance_api() to be take metadata_name parameter. So, Wpsetttings is now a singleton instance for a given metadata file. - Enhance the m-settings module also to be take metadata_name parameter. this is handy for lua side of tests as its cumbersome to do this is lua.
47 lines
990 B
C
47 lines
990 B
C
/* WirePlumber
|
|
*
|
|
* Copyright © 2022 Collabora Ltd.
|
|
* @author Ashok Sidipotu <ashok.sidipotu@collabora.com>
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#ifndef __WIREPLUMBER_SETTINGS_H__
|
|
#define __WIREPLUMBER_SETTINGS_H__
|
|
|
|
#include "object.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
/*!
|
|
* \brief Flags to be used as WpObjectFeatures on WpSettings subclasses.
|
|
* \ingroup wpsettings
|
|
*/
|
|
typedef enum {
|
|
/* loads the metadata */
|
|
WP_SETTINGS_LOADED = (1 << 0),
|
|
} WpSettingsFeatures;
|
|
|
|
/*!
|
|
* \brief The WpSettings GType
|
|
* \ingroup wpsettings
|
|
*/
|
|
#define WP_TYPE_SETTINGS (wp_settings_get_type ())
|
|
|
|
WP_API
|
|
G_DECLARE_FINAL_TYPE (WpSettings, wp_settings, WP, SETTINGS, WpObject)
|
|
|
|
WP_API
|
|
WpSettings *
|
|
wp_settings_get_instance (WpCore * core, const gchar *metadata_name);
|
|
|
|
WP_API
|
|
gboolean wp_settings_get_boolean (WpSettings *self, const gchar *setting);
|
|
|
|
WP_API
|
|
gboolean wp_settings_apply_rule (WpSettings *self, const gchar *rule,
|
|
WpProperties *client_props, WpProperties *applied_props);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif
|