PipeWire 1.2.1
Loading...
Searching...
No Matches
conf.h
Go to the documentation of this file.
1/* PipeWire */
2/* SPDX-FileCopyrightText: Copyright © 2021 Wim Taymans */
3/* SPDX-License-Identifier: MIT */
4
5#ifndef PIPEWIRE_CONF_H
6#define PIPEWIRE_CONF_H
7
8#include <pipewire/context.h>
9
19int pw_conf_load_conf_for_context(struct pw_properties *props, struct pw_properties *conf);
20int pw_conf_load_conf(const char *prefix, const char *name, struct pw_properties *conf);
21int pw_conf_load_state(const char *prefix, const char *name, struct pw_properties *conf);
22int pw_conf_save_state(const char *prefix, const char *name, const struct pw_properties *conf);
23
24int pw_conf_section_update_props(const struct spa_dict *conf,
25 const char *section, struct pw_properties *props);
26
27int pw_conf_section_update_props_rules(const struct spa_dict *conf,
28 const struct spa_dict *context, const char *section,
29 struct pw_properties *props);
30
31int pw_conf_section_for_each(const struct spa_dict *conf, const char *section,
32 int (*callback) (void *data, const char *location, const char *section,
33 const char *str, size_t len),
34 void *data);
35
36int pw_conf_match_rules(const char *str, size_t len, const char *location,
37 const struct spa_dict *props,
38 int (*callback) (void *data, const char *location, const char *action,
39 const char *str, size_t len),
40 void *data);
41
42int pw_conf_section_match_rules(const struct spa_dict *conf, const char *section,
43 const struct spa_dict *props,
44 int (*callback) (void *data, const char *location, const char *action,
45 const char *str, size_t len),
46 void *data);
51#endif /* PIPEWIRE_CONF_H */
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:1129
int pw_conf_section_update_props(const struct spa_dict *conf, const char *section, struct pw_properties *props)
Definition conf.c:1193
int pw_conf_load_state(const char *prefix, const char *name, struct pw_properties *conf)
Definition conf.c:538
int pw_conf_save_state(const char *prefix, const char *name, const struct pw_properties *conf)
Definition conf.c:351
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:1167
int pw_conf_load_conf(const char *prefix, const char *name, struct pw_properties *conf)
Definition conf.c:473
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:1395
int pw_conf_load_conf_for_context(struct pw_properties *props, struct pw_properties *conf)
Definition conf.c:1224
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:1304
pipewire/context.h
Definition properties.h:34
Definition dict.h:39