* l_dbus_message_set_arguments
@ 2019-05-15 18:16 Gix, Brian
2019-05-15 18:18 ` l_dbus_message_set_arguments Denis Kenzior
2019-05-15 18:23 ` l_dbus_message_set_arguments James Prestwood
0 siblings, 2 replies; 3+ messages in thread
From: Gix, Brian @ 2019-05-15 18:16 UTC (permalink / raw)
To: ell
[-- Attachment #1: Type: text/plain, Size: 390 bytes --]
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)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: l_dbus_message_set_arguments
2019-05-15 18:16 l_dbus_message_set_arguments Gix, Brian
@ 2019-05-15 18:18 ` Denis Kenzior
2019-05-15 18:23 ` l_dbus_message_set_arguments James Prestwood
1 sibling, 0 replies; 3+ messages in thread
From: Denis Kenzior @ 2019-05-15 18:18 UTC (permalink / raw)
To: ell
[-- 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: l_dbus_message_set_arguments
2019-05-15 18:16 l_dbus_message_set_arguments Gix, Brian
2019-05-15 18:18 ` l_dbus_message_set_arguments Denis Kenzior
@ 2019-05-15 18:23 ` James Prestwood
1 sibling, 0 replies; 3+ messages in thread
From: James Prestwood @ 2019-05-15 18:23 UTC (permalink / raw)
To: ell
[-- Attachment #1: Type: text/plain, Size: 780 bytes --]
Hi Brian,
On Wed, 2019-05-15 at 18:16 +0000, 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)
I don't think you have to set the arguments if there isn't any. We do
it both ways in IWD, but it doesn't seem to be required.
Thanks,
James
> _______________________________________________
> ell mailing list
> ell(a)lists.01.org
> https://lists.01.org/mailman/listinfo/ell
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-05-15 18:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-15 18:16 l_dbus_message_set_arguments Gix, Brian
2019-05-15 18:18 ` l_dbus_message_set_arguments Denis Kenzior
2019-05-15 18:23 ` l_dbus_message_set_arguments James Prestwood
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.