mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
bluetooth: improve indentation around dbus_message_iter_open_container
Consistently use newlines and the same indentation style for all calls to dbus_message_iter_open_container in Bluetooth code. Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/477>
This commit is contained in:
parent
89bae1b3b7
commit
87f08a7b56
2 changed files with 22 additions and 14 deletions
|
|
@ -334,8 +334,12 @@ static void register_profile(pa_bluetooth_backend *b, const char *profile, const
|
|||
dbus_message_iter_init_append(m, &i);
|
||||
pa_assert_se(dbus_message_iter_append_basic(&i, DBUS_TYPE_OBJECT_PATH, &profile));
|
||||
pa_assert_se(dbus_message_iter_append_basic(&i, DBUS_TYPE_STRING, &uuid));
|
||||
dbus_message_iter_open_container(&i, DBUS_TYPE_ARRAY, DBUS_DICT_ENTRY_BEGIN_CHAR_AS_STRING DBUS_TYPE_STRING_AS_STRING
|
||||
DBUS_TYPE_VARIANT_AS_STRING DBUS_DICT_ENTRY_END_CHAR_AS_STRING, &d);
|
||||
dbus_message_iter_open_container(&i, DBUS_TYPE_ARRAY,
|
||||
DBUS_DICT_ENTRY_BEGIN_CHAR_AS_STRING
|
||||
DBUS_TYPE_STRING_AS_STRING
|
||||
DBUS_TYPE_VARIANT_AS_STRING
|
||||
DBUS_DICT_ENTRY_END_CHAR_AS_STRING,
|
||||
&d);
|
||||
if (pa_bluetooth_uuid_is_hsp_hs(uuid)) {
|
||||
/* In the headset role, the connection will only be initiated from the remote side */
|
||||
autoconnect = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue