From: Denis Kenzior <denkenz@gmail.com>
To: ell@lists.01.org
Subject: Re: l_dbus_message_set_arguments
Date: Wed, 15 May 2019 13:18:35 -0500 [thread overview]
Message-ID: <51ecea74-fa44-fe0b-408a-d50ddd03debd@gmail.com> (raw)
In-Reply-To: <1557944201.32584.9.camel@intel.com>
[-- Attachment #1: Type: text/plain, Size: 635 bytes --]
Hi Brian,
On 05/15/2019 01:16 PM, Gix, Brian wrote:
>
> When creating a response to a D-Bus message with
>
> reply = l_dbus_message_new_method_return(msg);
>
> where the original method has an empty (void) return list, is it neccessary to set the arguments:
>
> l_dbus_message_set_arguments(reply, "");
>
> or can I just:
>
> return l_dbus_message_new_method_return(msg);
>
> from within the message handler? (without setting non-existant arguments)
either will work. The latter is what I prefer to see/use.
See:
https://git.kernel.org/pub/scm/libs/ell/ell.git/tree/ell/dbus.c#n321
Regards,
-Denis
next prev parent reply other threads:[~2019-05-15 18:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-15 18:16 l_dbus_message_set_arguments Gix, Brian
2019-05-15 18:18 ` Denis Kenzior [this message]
2019-05-15 18:23 ` l_dbus_message_set_arguments James Prestwood
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=51ecea74-fa44-fe0b-408a-d50ddd03debd@gmail.com \
--to=denkenz@gmail.com \
--cc=ell@lists.01.org \
/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.