Add resource override method

Add an easy way to override a resource implementation and use this in
the flatpak module.
Add more methods
This commit is contained in:
Wim Taymans 2017-08-08 15:01:36 +02:00
parent 77e326bf6d
commit 6b6b827a3b
18 changed files with 323 additions and 179 deletions

View file

@ -189,13 +189,13 @@ static void update_monitor(struct pw_core *core, const char *name)
{
const char *monitors;
struct spa_dict_item item;
const struct spa_dict *props;
const struct pw_properties *props;
struct spa_dict dict = SPA_DICT_INIT(1, &item);
props = pw_core_get_properties(core);
if (props)
monitors = spa_dict_lookup(props, "monitors");
monitors = pw_properties_get(props, "monitors");
else
monitors = NULL;