Skip to contentSkip to conversation

gdbus: Emit InterfacesAdded of parents objects first

PATCH In review Luiz Augusto von Dentz 2 participants 3 messages Feb 4, 2022 Bluetooth drivers

lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH v2 1/1 gdbus: Emit InterfacesAdded of parents objects first

From: Luiz Augusto von Dentz <[email protected]>

This makes InterfacesAdded respect the object hierarchy in case its parent has pending interfaces to be added.

---
v2: Fix typo chield/child and add links for previously reports of the same issue.

 gdbus/object.c | 6 ++++++
 1 file changed, 6 insertions(+)
gdbus/object.c +6 -0
index 50a8b4ff1..f7c8c2be5 100644
@@ -551,6 +551,12 @@ static void emit_interfaces_added(struct generic_data *data)
 	if (root == NULL || data == root)
 		return;
 
+	/* Emit InterfacesAdded on the parent first so it appears first on the
+	 * bus as child objects may point to it.
+	 */
+	if (data->parent && data->parent->added)
+		emit_interfaces_added(data->parent);
+
 	signal = dbus_message_new_signal(root->path,
 					DBUS_INTERFACE_OBJECT_MANAGER,
 					"InterfacesAdded");
Signature · 1 line
2.34.1
#1 lore raw

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=611401

---Test result---

Test Summary:

CheckPatch                    PASS      1.45 seconds
GitLint                       PASS      1.02 seconds
Prep - Setup ELL              PASS      43.52 seconds
Build - Prep                  PASS      0.74 seconds
Build - Configure             PASS      8.75 seconds
Build - Make                  PASS      1440.21 seconds
Make Check                    PASS      12.26 seconds
Make Check w/Valgrind         PASS      451.94 seconds
Make Distcheck                PASS      235.40 seconds
Build w/ext ELL - Configure   PASS      8.75 seconds
Build w/ext ELL - Make        PASS      1436.60 seconds
Incremental Build with patchesPASS      0.00 seconds

---
Regards,
Linux Bluetooth

author maintainer
#2 lore raw

Hi,

Quoted 27 lines · On Fri, Feb 4, 2022 at 12:43 PM <[email protected]> wrote:

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=611401

---Test result---

Test Summary:

CheckPatch                    PASS      1.45 seconds
GitLint                       PASS      1.02 seconds
Prep - Setup ELL              PASS      43.52 seconds
Build - Prep                  PASS      0.74 seconds
Build - Configure             PASS      8.75 seconds
Build - Make                  PASS      1440.21 seconds
Make Check                    PASS      12.26 seconds
Make Check w/Valgrind         PASS      451.94 seconds
Make Distcheck                PASS      235.40 seconds
Build w/ext ELL - Configure   PASS      8.75 seconds
Build w/ext ELL - Make        PASS      1436.60 seconds
Incremental Build with patchesPASS      0.00 seconds
Quoted 3 lines

---
Regards,
Linux Bluetooth

Pushed.

Signature · 1 line
Luiz Augusto von Dentz