From: Ewan Mellor <ewan@xensource.com>
To: Anthony Liguori <aliguori@us.ibm.com>
Cc: Ian Pratt <m+Ian.Pratt@cl.cam.ac.uk>, xen-devel@lists.xensource.com
Subject: Re: [RFC] Xend XML-RPC Refactoring
Date: Tue, 14 Mar 2006 08:35:50 +0000 [thread overview]
Message-ID: <20060314083549.GA17301@leeni.uk.xensource.com> (raw)
In-Reply-To: <441669A8.2030409@us.ibm.com>
On Tue, Mar 14, 2006 at 12:58:48AM -0600, Anthony Liguori wrote:
> Hi Ewan,
>
> I've made the changes you've requested except where I've described
> below. After all the regressions complete, I'll push it out to the list
> (sometime tomorrow as long as nothing fails miserably).
>
> Ewan Mellor wrote:
> >This is all a bit skanky, and could be easily cleaned up by introducing a
> >naming convention for XendDomain, XendNode, etc. How about if we prefixed
> >every function that we wish to expose to the messaging layer with
> >"public_"? So for example XendDomainInfo.send_sysrq would be named
> >public_send_sysrq instead. Then, we could use that to guide the
> >function registration, rather than having exclude lists and inline lists
> >of callable methods.
> >
> I went ahead and started using the public_ naming convention for
> XendDomainInfo. It was fine for a couple of the methods but it got ugly
> real quick for things like deviceDestroy as it's called in a bunch of
> other places within Xend.
>
> So, I've got two possible solutions for this. We could just keep the
> white list or we could introduce new public_ methods within
> XendDomainInfo that were just simple wrappers for the underlying
> methods. It's seems a bit unnatural but less unnatural than peppering
> calls to public_ functions through Xend. Thoughts?
Yes, I'd go with the latter. public_device_destroy does the type
conversion, argument validation (with errors thrown if necessary) and
then just calls deviceDestroy. All the other calls to deviceDestroy
from within XendDomainInfo itself don't need the type conversion etc, so just
point at deviceDestroy directly.
Ewan.
next prev parent reply other threads:[~2006-03-14 8:35 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-07 23:37 [RFC] Xend XML-RPC Refactoring Ian Pratt
2006-03-08 0:07 ` Anthony Liguori
2006-03-11 20:55 ` Ewan Mellor
2006-03-11 21:36 ` Daniel Veillard
2006-03-11 22:20 ` Ewan Mellor
2006-03-12 1:46 ` Anthony Liguori
2006-03-12 9:27 ` Daniel Veillard
2006-03-12 9:57 ` Daniel Veillard
2006-03-12 17:41 ` Anthony Liguori
2006-03-12 18:29 ` Daniel Veillard
2006-03-12 20:28 ` Anthony Liguori
2006-03-12 21:49 ` Daniel Veillard
2006-03-12 1:44 ` Anthony Liguori
2006-03-13 10:30 ` Ewan Mellor
2006-03-14 6:58 ` Anthony Liguori
2006-03-14 8:35 ` Ewan Mellor [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-01-31 21:25 Anthony Liguori
2006-01-31 21:36 ` Ronald G Minnich
2006-01-31 21:47 ` Matt Sottile
2006-01-31 21:58 ` Anthony Liguori
2006-02-01 9:53 ` Ewan Mellor
2006-02-01 9:37 ` Daniel Veillard
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=20060314083549.GA17301@leeni.uk.xensource.com \
--to=ewan@xensource.com \
--cc=aliguori@us.ibm.com \
--cc=m+Ian.Pratt@cl.cam.ac.uk \
--cc=xen-devel@lists.xensource.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 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.