From: "Andreas Färber" <afaerber@suse.de>
To: Stefan Hajnoczi <stefanha@redhat.com>,
qemu-devel@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>
Cc: Peter Crosthwaite <peter.crosthwaite@petalogix.com>,
Peter Maydell <peter.maydell@linaro.org>,
Alexander Graf <agraf@suse.de>,
Anthony Liguori <aliguori@amazon.com>,
"Michael S. Tsirkin" <mst@redhat.com>
Subject: Re: [Qemu-devel] [PATCH RESEND v4 4/5] qom: add check() argument to object_property_add_link()
Date: Wed, 19 Mar 2014 22:27:48 +0100 [thread overview]
Message-ID: <532A0BD4.7000802@suse.de> (raw)
In-Reply-To: <1395215937-22987-5-git-send-email-stefanha@redhat.com>
Am 19.03.2014 08:58, schrieb Stefan Hajnoczi:
> diff --git a/include/hw/qdev-properties.h b/include/hw/qdev-properties.h
> index 3c000ee..68aaed6 100644
> --- a/include/hw/qdev-properties.h
> +++ b/include/hw/qdev-properties.h
> @@ -204,4 +204,15 @@ void qdev_property_add_static(DeviceState *dev, Property *prop, Error **errp);
> */
> void qdev_prop_set_after_realize(DeviceState *dev, const char *name,
> Error **errp);
> +
> +/**
> + * @qdev_prop_allow_set_link_before_realize:
> + *
> + * Set the Error object if an attempt is made to set the link after realize.
> + * This function should be used as the check() argument to
> + * object_property_add_link().
> + */
> +void qdev_prop_allow_set_link_before_realize(Object *obj, const char *name,
> + Object *val, Error **errp);
> +
> #endif
This is copying a bad example ... no @ before function name, as done
correctly in object.h. Fixed.
Regards,
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
next prev parent reply other threads:[~2014-03-19 21:28 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-19 7:58 [Qemu-devel] [PATCH RESEND v4 0/5] qom: link property fixes Stefan Hajnoczi
2014-03-19 7:58 ` [Qemu-devel] [PATCH RESEND v4 1/5] qom: split object_property_set_link() Stefan Hajnoczi
2014-03-19 21:16 ` Andreas Färber
2014-03-19 7:58 ` [Qemu-devel] [PATCH RESEND v4 2/5] qom: don't make link NULL on object_property_set_link() failure Stefan Hajnoczi
2014-03-19 7:58 ` [Qemu-devel] [PATCH RESEND v4 3/5] qom: make QOM link property unref optional Stefan Hajnoczi
2014-03-19 7:58 ` [Qemu-devel] [PATCH RESEND v4 4/5] qom: add check() argument to object_property_add_link() Stefan Hajnoczi
2014-03-19 21:27 ` Andreas Färber [this message]
2014-03-19 7:58 ` [Qemu-devel] [PATCH RESEND v4 5/5] virtio-rng: avoid default_backend refcount leak Stefan Hajnoczi
2014-03-19 15:55 ` [Qemu-devel] [PATCH RESEND v4 0/5] qom: link property fixes Paolo Bonzini
2014-03-19 21:29 ` Andreas Färber
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=532A0BD4.7000802@suse.de \
--to=afaerber@suse.de \
--cc=agraf@suse.de \
--cc=aliguori@amazon.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.crosthwaite@petalogix.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/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).