flatpak: add flatpak module

Pass LoopUtils to callbacks to make it easier to reschedule timeouts.
This commit is contained in:
Wim Taymans 2017-04-17 16:32:25 +02:00
parent a5b39019d1
commit be528ba7c2
17 changed files with 826 additions and 259 deletions

View file

@ -102,6 +102,7 @@ pinos_client_new (PinosCore *core,
this->properties = properties;
spa_list_init (&this->resource_list);
pinos_signal_init (&this->properties_changed);
pinos_signal_init (&this->resource_added);
pinos_signal_init (&this->resource_removed);
@ -185,6 +186,8 @@ pinos_client_update_properties (PinosClient *client,
client->info.change_mask = 1 << 0;
client->info.props = client->properties ? &client->properties->dict : NULL;
pinos_signal_emit (&client->properties_changed, client);
spa_list_for_each (resource, &client->resource_list, link) {
pinos_client_notify_info (resource, &client->info);
}