mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-19 07:00:03 -05:00
treewide: Use DBus defines instead of direct string literals
While cleaning up the BlueZ counterpart of strings defined in preprocessor macros it is only consistent to take care of all DBUS_ macros as a whole. Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/477>
This commit is contained in:
parent
670f585530
commit
537bf3cf8e
11 changed files with 61 additions and 59 deletions
|
|
@ -27,7 +27,7 @@ def get_ladspa_property_interface(sinkname):
|
|||
session = dbus.SessionBus()
|
||||
|
||||
# get the private D-Bus socket address from PulseAudio properties
|
||||
session_property_iface = dbus.Interface(session.get_object("org.PulseAudio1", "/org/pulseaudio/server_lookup1"), "org.freedesktop.DBus.Properties")
|
||||
session_property_iface = dbus.Interface(session.get_object("org.PulseAudio1", "/org/pulseaudio/server_lookup1"), dbus.PROPERTIES_IFACE)
|
||||
socket = session_property_iface.Get("org.PulseAudio.ServerLookup1", "Address")
|
||||
|
||||
# connect to the private PulseAudio D-Bus socket
|
||||
|
|
@ -40,7 +40,7 @@ def get_ladspa_property_interface(sinkname):
|
|||
ladspa_sink_path = core.GetSinkByName(sinkname)
|
||||
|
||||
# property interface proxy for the sink
|
||||
ladspa_sink_property_iface = dbus.Interface(connection.get_object(object_path=ladspa_sink_path), "org.freedesktop.DBus.Properties")
|
||||
ladspa_sink_property_iface = dbus.Interface(connection.get_object(object_path=ladspa_sink_path), dbus.PROPERTIES_IFACE)
|
||||
|
||||
return ladspa_sink_property_iface
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue