Loading...
Searching...
No Matches
conf.h
Go to the documentation of this file.
/* PipeWire */
/* SPDX-FileCopyrightText: Copyright © 2021 Wim Taymans */
/* SPDX-License-Identifier: MIT */
#ifndef PIPEWIRE_CONF_H
#define PIPEWIRE_CONF_H
#include <spa/utils/json-core.h>
#include <pipewire/context.h>
int pw_conf_load_conf_for_context(struct pw_properties *props, struct pw_properties *conf);
int pw_conf_load_conf(const char *prefix, const char *name, struct pw_properties *conf);
int pw_conf_load_state(const char *prefix, const char *name, struct pw_properties *conf);
int pw_conf_save_state(const char *prefix, const char *name, const struct pw_properties *conf);
bool pw_conf_find_match(struct spa_json *arr, const struct spa_dict *props, bool condition);
int pw_conf_section_update_props(const struct spa_dict *conf,
const char *section, struct pw_properties *props);
int pw_conf_section_update_props_rules(const struct spa_dict *conf,
const struct spa_dict *context, const char *section,
struct pw_properties *props);
int pw_conf_section_for_each(const struct spa_dict *conf, const char *section,
int (*callback) (void *data, const char *location, const char *section,
const char *str, size_t len),
void *data);
int pw_conf_match_rules(const char *str, size_t len, const char *location,
const struct spa_dict *props,
int (*callback) (void *data, const char *location, const char *action,
const char *str, size_t len),
void *data);
int pw_conf_section_match_rules(const struct spa_dict *conf, const char *section,
const struct spa_dict *props,
int (*callback) (void *data, const char *location, const char *action,
const char *str, size_t len),
void *data);
#endif /* PIPEWIRE_CONF_H */
pw_conf_section_for_each
int pw_conf_section_for_each(const struct spa_dict *conf, const char *section, int(*callback)(void *data, const char *location, const char *section, const char *str, size_t len), void *data)
Definition conf.c:1102
pw_conf_section_update_props
int pw_conf_section_update_props(const struct spa_dict *conf, const char *section, struct pw_properties *props)
Definition conf.c:1166
pw_conf_find_match
bool pw_conf_find_match(struct spa_json *arr, const struct spa_dict *props, bool condition)
Definition conf.c:638
pw_conf_load_state
int pw_conf_load_state(const char *prefix, const char *name, struct pw_properties *conf)
Definition conf.c:543
pw_conf_save_state
int pw_conf_save_state(const char *prefix, const char *name, const struct pw_properties *conf)
Definition conf.c:351
pw_conf_section_update_props_rules
int pw_conf_section_update_props_rules(const struct spa_dict *conf, const struct spa_dict *context, const char *section, struct pw_properties *props)
Definition conf.c:1140
pw_conf_load_conf
int pw_conf_load_conf(const char *prefix, const char *name, struct pw_properties *conf)
Definition conf.c:478
pw_conf_section_match_rules
int pw_conf_section_match_rules(const struct spa_dict *conf, const char *section, const struct spa_dict *props, int(*callback)(void *data, const char *location, const char *action, const char *str, size_t len), void *data)
Definition conf.c:1363
pw_conf_load_conf_for_context
int pw_conf_load_conf_for_context(struct pw_properties *props, struct pw_properties *conf)
Definition conf.c:1197
pw_conf_match_rules
int pw_conf_match_rules(const char *str, size_t len, const char *location, const struct spa_dict *props, int(*callback)(void *data, const char *location, const char *action, const char *str, size_t len), void *data)
[ { matches = [
Definition conf.c:1281
json-core.h
spa/utils/json-core.h
context.h
pipewire/context.h
pw_properties
Definition properties.h:39
spa_dict
Definition dict.h:51
spa_json
Definition json-core.h:49