qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@gmail.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 4/4] net: convert NetClientState to QOM
Date: Fri, 19 Oct 2012 09:38:28 +0200	[thread overview]
Message-ID: <20121019073828.GB1126@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <k5p5to$dmg$1@ger.gmane.org>

On Thu, Oct 18, 2012 at 05:06:33PM +0200, Paolo Bonzini wrote:
> Il 18/10/2012 16:56, Stefan Hajnoczi ha scritto:
> >  
> > -static NetClientInfo net_tap_win32_info = {
> > -    .type = NET_CLIENT_OPTIONS_KIND_TAP,
> > -    .size = sizeof(TAPState),
> > -    .receive = tap_receive,
> > -    .cleanup = tap_cleanup,
> > +#define TYPE_TAP_WIN32_NET_CLIENT "tap-win32-net-client"
> > +
> > +static void tap_win32_net_client_class_init(ObjectClass *klass,
> > +                                            void *class_data)
> > +{
> > +    NetClientClass *ncc = NET_CLIENT_CLASS(klass);
> > +
> > +    ncc->type_str = "tap";
> > +    ncc->receive = tap_receive;
> > +    ncc->cleanup = tap_cleanup;
> > +}
> > +
> > +static TypeInfo tap_win32_net_client_info = {
> > +    .name = TYPE_TAP_WIN32_NET_CLIENT,
> > +    .parent = TYPE_NET_CLIENT,
> 
> Why a separate type name than TYPE_NET_CLIENT?  It doesn't really matter
> if the client is Unix or Win32.

You are right, there's no need to give UNIX and Win32 unique names.  The
QemuOpts they accept are the same already, so I can't think of a
situation where we'd want to distinguish.

Stefan

  reply	other threads:[~2012-10-19  7:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-18 14:56 [Qemu-devel] [PATCH 0/4] net: convert NetClientState to QOM Stefan Hajnoczi
2012-10-18 14:56 ` [Qemu-devel] [PATCH 1/4] net: add public qemu_net_poll() function Stefan Hajnoczi
2012-10-18 14:56 ` [Qemu-devel] [PATCH 2/4] net: add net_is_tap_client() Stefan Hajnoczi
2012-10-18 15:05   ` Paolo Bonzini
2012-10-18 15:48     ` Stefan Hajnoczi
2012-10-18 14:56 ` [Qemu-devel] [PATCH 3/4] net: extract notify_link_status_changed() function Stefan Hajnoczi
2012-10-18 14:56 ` [Qemu-devel] [PATCH 4/4] net: convert NetClientState to QOM Stefan Hajnoczi
2012-10-18 15:06   ` Paolo Bonzini
2012-10-19  7:38     ` Stefan Hajnoczi [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-07-02 10:56 [Qemu-devel] [PATCH 0/4] " Stefan Hajnoczi
2012-07-02 10:56 ` [Qemu-devel] [PATCH 4/4] " Stefan Hajnoczi

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=20121019073828.GB1126@stefanha-thinkpad.redhat.com \
    --to=stefanha@gmail.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).