From: Vinicius Costa Gomes <vinicius.gomes@intel.com>
To: Luiz Augusto von Dentz <luiz.dentz@gmail.com>,
linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH v2] gdbus: Fix calling GetAll while GetManagedObject is pending
Date: Mon, 14 Aug 2017 10:16:53 -0700 [thread overview]
Message-ID: <87pobydq7u.fsf@intel.com> (raw)
In-Reply-To: <20170814104602.32013-1-luiz.dentz@gmail.com>
Hi Luiz,
Luiz Augusto von Dentz <luiz.dentz@gmail.com> writes:
> From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
>
> 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(-)
>
[...]
> @@ -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.
> proxy = proxy_new(client, path, interface);
> if (proxy == NULL)
> return NULL;
>
Just that nitpick, looking good.
Cheers,
--
Vinicius
next prev parent reply other threads:[~2017-08-14 17:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-14 10:46 [PATCH v2] gdbus: Fix calling GetAll while GetManagedObject is pending Luiz Augusto von Dentz
2017-08-14 17:16 ` Vinicius Costa Gomes [this message]
2017-08-15 8:22 ` Luiz Augusto von Dentz
2017-08-15 14:08 ` Kai Ruhnau
-- strict thread matches above, loose matches on Subject: below --
2017-08-14 9:43 Luiz Augusto von Dentz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pobydq7u.fsf@intel.com \
--to=vinicius.gomes@intel.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.