Wireless Daemon for Linux
 help / color / mirror / Atom feed
* [PATCH 1/2] client: Reorder interface creation ops
@ 2020-02-26 23:32 Tim Kourt
  2020-02-26 23:32 ` [PATCH 2/2] client: Rework agent registarion logic Tim Kourt
  2020-02-27 22:31 ` [PATCH 1/2] client: Reorder interface creation ops Denis Kenzior
  0 siblings, 2 replies; 3+ messages in thread
From: Tim Kourt @ 2020-02-26 23:32 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 814 bytes --]

Add the newly created proxy objects into the queue before the
interface specific initialization logic takes place. This way the new
proxy objects can be used within the initialization procedures.
---
 client/dbus-proxy.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/client/dbus-proxy.c b/client/dbus-proxy.c
index 83f91eea..37a09512 100644
--- a/client/dbus-proxy.c
+++ b/client/dbus-proxy.c
@@ -572,10 +572,10 @@ static void proxy_interface_create(const char *path,
 		proxy->path = l_strdup(path);
 		proxy->type = interface_type;
 
+		l_queue_push_tail(proxy_interfaces, proxy);
+
 		if (interface_type->ops && interface_type->ops->create)
 			proxy->data = interface_type->ops->create();
-
-		l_queue_push_tail(proxy_interfaces, proxy);
 	}
 }
 
-- 
2.13.6

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-02-27 22:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-26 23:32 [PATCH 1/2] client: Reorder interface creation ops Tim Kourt
2020-02-26 23:32 ` [PATCH 2/2] client: Rework agent registarion logic Tim Kourt
2020-02-27 22:31 ` [PATCH 1/2] client: Reorder interface creation ops Denis Kenzior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox