mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-19 08:57:14 -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
|
|
@ -373,14 +373,13 @@ main_loop_run (PinosMainLoop *loop)
|
|||
|
||||
/**
|
||||
* pinos_main_loop_new:
|
||||
* @context: a #GMainContext or %NULL to use the default context
|
||||
*
|
||||
* Create a new #PinosMainLoop.
|
||||
*
|
||||
* Returns: a new #PinosMainLoop
|
||||
*/
|
||||
PinosMainLoop *
|
||||
pinos_main_loop_new (GMainContext *context)
|
||||
pinos_main_loop_new (void)
|
||||
{
|
||||
PinosMainLoopImpl *impl;
|
||||
PinosMainLoop *this;
|
||||
|
|
@ -388,7 +387,7 @@ pinos_main_loop_new (GMainContext *context)
|
|||
impl = calloc (1, sizeof (PinosMainLoopImpl));
|
||||
pinos_log_debug ("main-loop %p: new", impl);
|
||||
|
||||
impl->context = context;
|
||||
impl->context = g_main_context_default ();
|
||||
this = &impl->this;
|
||||
this->run = main_loop_run;
|
||||
this->quit = main_loop_quit;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue