From: Denis Kenzior <denkenz@gmail.com>
To: ell@lists.01.org
Subject: Re: [RFC] genl: Add a message builder API to help creating complex nl messages
Date: Tue, 24 Mar 2015 07:38:17 -0500 [thread overview]
Message-ID: <55115AB9.9070603@gmail.com> (raw)
In-Reply-To: <1427196109-21373-1-git-send-email-tomasz.bursztyka@linux.intel.com>
[-- Attachment #1: Type: text/plain, Size: 1166 bytes --]
Hi Tomasz,
On 03/24/2015 06:21 AM, Tomasz Bursztyka wrote:
> ---
>
> Hi Marcel,
>
> Quickly, as an RFC, does this look better?
> For building message I think either one uses l_genl_msg or l_genl_msg_builder.
> Thus I changed l_genl_msg_builder_new(): it creates the l_genl_msg by itself.
>
> Only when one calls l_genl_msg_builder_finalize(), he will get a reference on
> the message. Such reference l_genl_family_send() will unref, or that he will
> in case of error.
>
> Does that look saner? At least it avoids the user to call l_genl_msg_new()
> and again l_genl_msg_builder() afterwards. I think it's better to separate
> properly both.
>
> I kept the queue for the nested of nested etc... I still want your opinion:
> either a queue or a fixed depth of nested of nested ? or we don't care?
> (I think we do care).
>
I sent my own take on this. I was playing around with it yesterday.
The only thing I'm not sure about is whether the nested message length
is aligned or not. Looking at libnl code it seems to be always aligned,
but if someone can whip up a quick unit test, that would be really helpful.
Regards,
-Denis
next prev parent reply other threads:[~2015-03-24 12:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-24 11:21 [RFC] genl: Add a message builder API to help creating complex nl messages Tomasz Bursztyka
2015-03-24 12:38 ` Denis Kenzior [this message]
2015-03-25 11:04 ` Tomasz Bursztyka
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=55115AB9.9070603@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.