mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
Rework dbus handling
Remove the Daemon object and remove all dbus code from the main objects. We can use the signals in a separate module to create and destroy the DBus interfaces. Move the dbus protocol in a module Move the autolink policy to a module
This commit is contained in:
parent
b9e2b1c0e3
commit
dfbfb4c9ee
28 changed files with 1122 additions and 1007 deletions
|
|
@ -179,7 +179,7 @@ pinos_daemon_config_load (PinosDaemonConfig *config,
|
|||
/**
|
||||
* pinos_daemon_config_run_commands:
|
||||
* @config: A #PinosDaemonConfig
|
||||
* @daemon: A #PinosDaemon
|
||||
* @core: A #PinosCore
|
||||
*
|
||||
* Run all commands that have been parsed. The list of commands will be cleared
|
||||
* when this function has been called.
|
||||
|
|
@ -188,14 +188,14 @@ pinos_daemon_config_load (PinosDaemonConfig *config,
|
|||
*/
|
||||
bool
|
||||
pinos_daemon_config_run_commands (PinosDaemonConfig *config,
|
||||
PinosDaemon *daemon)
|
||||
PinosCore *core)
|
||||
{
|
||||
char *err = NULL;
|
||||
bool ret = true;
|
||||
PinosCommand *command, *tmp;
|
||||
|
||||
spa_list_for_each (command, &config->commands, link) {
|
||||
if (!pinos_command_run (command, daemon->core, &err)) {
|
||||
if (!pinos_command_run (command, core, &err)) {
|
||||
pinos_log_warn ("could not run command %s: %s", command->name, err);
|
||||
free (err);
|
||||
ret = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue