int int const char * pw_properties_get(const struct pw_properties *properties, const char *key)
Get a property.
Definition: properties.c:487
int pw_context_parse_conf_section(struct pw_context *context, struct pw_properties *conf, const char *section)
Definition: conf.c:645
int spa_json_container_len(struct spa_json *iter, const char *value, int len)
Definition: json.h:200
int spa_json_enter_object(struct spa_json *iter, struct spa_json *sub)
Definition: json.h:214
int pw_context_add_spa_lib(struct pw_context *context, const char *factory_regex, const char *lib)
add a spa library for the given factory_name regex
Definition: context.c:1303
user data to add to an object
Definition: filter.c:75
struct pw_impl_module * pw_context_load_module(struct pw_context *context, const char *name, const char *args, struct pw_properties *properties)
Load a module.
Definition: impl-module.c:158
bool spa_streq(const char *s1, const char *s2)
Definition: string.h:50
#define spa_aprintf(_fmt,...)
Definition: defs.h:323
#define SPA_EXPORT
Definition: defs.h:208
int pw_conf_load_state(const char *prefix, const char *name, struct pw_properties *conf)
Definition: conf.c:362
#define NAME
Definition: conf.c:49
void pw_free_strv(char **str)
Free a NULL terminated array of strings.
Definition: utils.c:98
struct spa_dict dict
dictionary of key/values
Definition: properties.h:50
int spa_json_is_container(const char *val, int len)
Definition: json.h:195
int pw_properties_serialize_dict(FILE *f, const struct spa_dict *dict, uint32_t flags)
Definition: properties.c:567
char ** pw_split_strv(const char *str, const char *delimiter, int max_tokens, int *n_tokens)
Split a string based on delimiters.
Definition: utils.c:66
void spa_json_init(struct spa_json *iter, const char *data, size_t size)
Definition: json.h:59
int pw_context_parse_conf_section(struct pw_context *context, struct pw_properties *conf, const char *section)
Definition: conf.c:645
int spa_json_parse_string(const char *val, int len, char *result)
Definition: json.h:316
int spa_json_get_string(struct spa_json *iter, char *res, int maxlen)
Definition: json.h:360
int pw_conf_load_conf(const char *prefix, const char *name, struct pw_properties *conf)
Definition: conf.c:344
int pw_conf_save_state(const char *prefix, const char *name, const struct pw_properties *conf)
struct pw_properties * pw_properties_new_string(const char *args)
Make a new properties object from the given str.
Definition: properties.c:197
#define pw_log_debug(...)
Definition: src/pipewire/log.h:89
int spa_json_next(struct spa_json *iter, const char **value)
Get the next token.
Definition: json.h:74
int pw_conf_load_conf(const char *prefix, const char *name, struct pw_properties *conf)
Definition: conf.c:344
#define SPA_ID_INVALID
Definition: defs.h:182
struct pw_impl_factory * pw_context_find_factory(struct pw_context *context, const char *name)
Find a factory by name.
Definition: impl-factory.c:287
int pw_properties_update_string(struct pw_properties *props, const char *str, size_t size)
Update the properties from the given string, overwriting any existing keys with the new values from s...
Definition: properties.c:154
int pw_conf_load_state(const char *prefix, const char *name, struct pw_properties *conf)
Definition: conf.c:362
#define pw_log_warn(...)
Definition: src/pipewire/log.h:87
int spa_json_enter_array(struct spa_json *iter, struct spa_json *sub)
Definition: json.h:224
#define pw_log_info(...)
Definition: src/pipewire/log.h:88
bool pw_check_option(const char *option, const char *value)
Definition: pipewire.c:693
#define PW_PROPERTIES_FLAG_NL
Definition: properties.h:103
void * pw_impl_factory_create_object(struct pw_impl_factory *factory, struct pw_resource *resource, const char *type, uint32_t version, struct pw_properties *properties, uint32_t new_id)
Definition: impl-factory.c:261
int pw_conf_save_state(const char *prefix, const char *name, struct pw_properties *conf)
Definition: conf.c:279
Definition: properties.h:49
#define pw_log_error(...)
Definition: src/pipewire/log.h:86