Re: [PATCH v2] gdbus: Fix calling GetAll while GetManagedObject is pending
From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Date: 2017-08-15 08:22:12
Hi, On Mon, Aug 14, 2017 at 8:16 PM, Vinicius Costa Gomes [off-list ref] wrote:
Hi Luiz, Luiz Augusto von Dentz [off-list ref] writes:quoted
From: Luiz Augusto von Dentz <redacted> If proxies are created while the client is not ready put them into a pending list so only if they are not found in GetManagedObject reply call GetAll. --- gdbus/client.c | 96 ++++++++++++++++++++++++++++++++++++---------------------- 1 file changed, 59 insertions(+), 37 deletions(-)[...]quoted
@@ -424,6 +435,7 @@ static GDBusProxy *proxy_new(GDBusClient *client, const char *path, proxy->interface, properties_changed, proxy, NULL); + proxy->pending = TRUE; return g_dbus_proxy_ref(proxy); }@@ -478,15 +490,19 @@ GDBusProxy *g_dbus_proxy_new(GDBusClient *client, const char *path, if (client == NULL) return NULL; - proxy = proxy_lookup(client, path, interface); + proxy = proxy_lookup(client->proxy_list, path, interface); if (proxy) return g_dbus_proxy_ref(proxy); +Extra empty line here.
Fixed this one, thanks for pointing out.
quoted
proxy = proxy_new(client, path, interface); if (proxy == NULL) return NULL;Just that nitpick, looking good.
Applied. -- Luiz Augusto von Dentz