]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Add a default to the dbus message bus enum. Add a dbus_default_message_bus to the...
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Mon, 29 Sep 2025 12:56:32 +0000 (13:56 +0100)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Mon, 29 Sep 2025 12:56:32 +0000 (13:56 +0100)
common.h

index 772b9fabe90e5c20f6846c4cbbdf74dd6e0ce0c5..59d800d7783ac2c594e5d03491c57b7724817f3c 100644 (file)
--- a/common.h
+++ b/common.h
@@ -26,9 +26,10 @@ extern "C" {
 #if defined(CONFIG_DBUS_INTERFACE) || defined(CONFIG_MPRIS_INTERFACE)
 #include <glib.h>
 typedef enum {
-  DBT_system = 0, // use the session bus
-  DBT_session,    // use the system bus
-} dbus_session_type;
+  DBT_default = 0,
+  DBT_system,     // use the system bus
+  DBT_session,    // use the session bus
+} dbus_message_bus_t;
 #endif
 
 typedef enum {
@@ -397,12 +398,13 @@ typedef struct {
   GMainLoop *glib_worker_loop;
   // for clean quitting from a dbus interface quit request (from the DBus or MPRIS interfaces)
   int quit_requested_from_glib_mainloop; // remember that it initialised to zero.
+  dbus_message_bus_t dbus_default_message_bus;
 
 #if defined(CONFIG_DBUS_INTERFACE)
-  dbus_session_type dbus_service_bus_type;
+  dbus_message_bus_t dbus_service_bus_type;
 #endif
 #if defined(CONFIG_MPRIS_INTERFACE)
-  dbus_session_type mpris_service_bus_type;
+  dbus_message_bus_t mpris_service_bus_type;
 #endif
 
 #endif