#define pw_log_info(...)
Definition: src/pipewire/log.h:88
const char * key
Definition: utils/dict.h:42
int spa_json_container_len(struct spa_json *iter, const char *value, int len)
Definition: json.h:198
SPA_EXPORT struct pw_properties * pw_properties_new_string(const char *object)
Make a new properties object from the given str.
Definition: properties.c:205
int spa_json_enter_object(struct spa_json *iter, struct spa_json *sub)
Definition: json.h:212
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:1098
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:160
bool spa_streq(const char *s1, const char *s2)
Definition: string.h:50
SPA_EXPORT int pw_conf_save_state(const char *prefix, const char *name, struct pw_properties *conf)
Definition: conf.c:201
#define spa_aprintf(_fmt,...)
Definition: defs.h:309
#define SPA_EXPORT
Definition: defs.h:207
#define pw_log_debug(...)
Definition: src/pipewire/log.h:89
#define NAME
Definition: conf.c:49
void pw_free_strv(char **str)
Free a NULL terminated array of strings.
Definition: utils.c:98
static uint32_t int int res
Definition: core.h:329
struct spa_dict dict
dictionary of key/values
Definition: properties.h:50
Definition: utils/dict.h:41
SPA_EXPORT int pw_context_parse_conf_section(struct pw_context *context, struct pw_properties *conf, const char *section)
Definition: conf.c:565
int spa_json_is_container(const char *val, int len)
Definition: json.h:193
#define pw_log_error(...)
Definition: src/pipewire/log.h:86
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
#define spa_dict_for_each(item, dict)
Definition: utils/dict.h:58
snprintf(location, sizeof(location), "[%s][%s:%i %s()] %s\n", levels[level], basename, line, func, text)
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:565
int spa_json_parse_string(const char *val, int len, char *result)
Definition: json.h:314
int spa_json_get_string(struct spa_json *iter, char *res, int maxlen)
Definition: json.h:358
const SPA_EXPORT char * pw_properties_get(const struct pw_properties *properties, const char *key)
Get a property.
Definition: properties.c:515
const char * value
Definition: utils/dict.h:43
int pw_conf_load_conf(const char *prefix, const char *name, struct pw_properties *conf)
Definition: conf.c:283
int pw_conf_save_state(const char *prefix, const char *name, const struct pw_properties *conf)
int spa_json_next(struct spa_json *iter, const char **value)
Get the next token.
Definition: json.h:72
#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:286
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:158
int pw_conf_load_state(const char *prefix, const char *name, struct pw_properties *conf)
Definition: conf.c:289
int spa_json_enter_array(struct spa_json *iter, struct spa_json *sub)
Definition: json.h:222
SPA_EXPORT int pw_conf_load_state(const char *prefix, const char *name, struct pw_properties *conf)
Definition: conf.c:289
bool pw_check_option(const char *option, const char *value)
Definition: pipewire.c:676
int spa_json_encode_string(char *str, int size, const char *val)
Definition: json.h:367
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:260
SPA_EXPORT int pw_conf_load_conf(const char *prefix, const char *name, struct pw_properties *conf)
Definition: conf.c:283
static uint32_t int int const char va_list args
Definition: core.h:330
Definition: properties.h:49
#define pw_log_warn(...)
Definition: src/pipewire/log.h:87