[systemd-devel] [RFC 03/12] bus: add two new bus_*_map_*_properties() helpers

David Herrmann dh.herrmann at gmail.com
Thu Aug 28 06:27:24 PDT 2014


Hi

On Wed, Dec 11, 2013 at 1:40 AM, Lennart Poettering
<lennart at poettering.net> wrote:
> On Thu, 28.11.13 09:21, David Herrmann (dh.herrmann at gmail.com) wrote:
>
>>
>> Hi
>>
>> On Wed, Nov 27, 2013 at 10:58 PM, Lennart Poettering
>> <lennart at poettering.net> wrote:
>> > On Wed, 27.11.13 19:48, David Herrmann (dh.herrmann at gmail.com) wrote:
>> >
>> >> +        /* skip interface, but allow callers to do that themselves */
>> >> +        sd_bus_message_skip(m, "s");
>> >
>> > This feels a bit like taping over bugs. I'd suggest adding an additional
>> > parameter "const char **interface" to the function which if non-NULL is
>> > updated with the interface name. If it is NULL we'd just skip th
>> > interface as above...
>> >
>> > if (interface)
>> >       r = sd_bus_message_read("s", interface);
>> > else
>> >       r = sd_bus_message_skip(m, "s");
>>
>> That doesn't work. The caller wants "interface" before calling this
>> helper. You usually pass a different map-array depending on the
>> interface, right?
>>
>> I can just require the caller to do the skip/read themselves?
>
> Yeah, sounds better.

Digging out old threads: *fixed and pushed*

Thanks
David


More information about the systemd-devel mailing list