mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-21 06:59:59 -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
|
|
@ -515,7 +515,7 @@ static DBusHandlerResult handle_message_cb(DBusConnection *connection, DBusMessa
|
|||
pa_assert_se(call_info.method = dbus_message_get_member(message));
|
||||
pa_assert_se(call_info.method_sig = dbus_message_get_signature(message));
|
||||
|
||||
if (dbus_message_is_method_call(message, "org.freedesktop.DBus.Introspectable", "Introspect") ||
|
||||
if (dbus_message_is_method_call(message, DBUS_INTERFACE_INTROSPECTABLE, "Introspect") ||
|
||||
(!dbus_message_get_interface(message) && dbus_message_has_member(message, "Introspect"))) {
|
||||
pa_dbus_send_basic_value_reply(connection, message, DBUS_TYPE_STRING, &call_info.obj_entry->introspection);
|
||||
goto finish;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue