PipeWire  0.3.80
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 
19 int pw_conf_load_conf_for_context(struct pw_properties *props, struct pw_properties *conf);
20 int pw_conf_load_conf(const char *prefix, const char *name, struct pw_properties *conf);
21 int pw_conf_load_state(const char *prefix, const char *name, struct pw_properties *conf);
22 int pw_conf_save_state(const char *prefix, const char *name, const struct pw_properties *conf);
23 
24 int pw_conf_section_update_props(const struct spa_dict *conf,
25  const char *section, struct pw_properties *props);
26 
27 int pw_conf_section_for_each(const struct spa_dict *conf, const char *section,
28  int (*callback) (void *data, const char *location, const char *section,
29  const char *str, size_t len),
30  void *data);
31 
32 int pw_conf_match_rules(const char *str, size_t len, const char *location,
33  const struct spa_dict *props,
34  int (*callback) (void *data, const char *location, const char *action,
35  const char *str, size_t len),
36  void *data);
37 
38 int pw_conf_section_match_rules(const struct spa_dict *conf, const char *section,
39  const struct spa_dict *props,
40  int (*callback) (void *data, const char *location, const char *action,
41  const char *str, size_t len),
42  void *data);
47 #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:941
int pw_conf_section_update_props(const struct spa_dict *conf, const char *section, struct pw_properties *props)
Definition: conf.c:979
int pw_conf_load_state(const char *prefix, const char *name, struct pw_properties *conf)
Definition: conf.c:517
int pw_conf_save_state(const char *prefix, const char *name, const struct pw_properties *conf)
Definition: conf.c:345
int pw_conf_load_conf(const char *prefix, const char *name, struct pw_properties *conf)
Definition: conf.c:452
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:1171
int pw_conf_load_conf_for_context(struct pw_properties *props, struct pw_properties *conf)
Definition: conf.c:1024
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:1104
pipewire/context.h
Definition: properties.h:33
Definition: utils/dict.h:39