* [Qemu-devel] New Bee : What is the canonical path.
@ 2014-12-09 11:28 boddu pavan
2014-12-10 11:10 ` Paolo Bonzini
0 siblings, 1 reply; 3+ messages in thread
From: boddu pavan @ 2014-12-09 11:28 UTC (permalink / raw)
To: QEMU Developers
[-- Attachment #1: Type: text/plain, Size: 152 bytes --]
Hi,
I am new to qemu, And i need help in understanding a part of code, Can any one tell the use of Canonical paths of the Object.
Thanks,Sai Pavan
[-- Attachment #2: Type: text/html, Size: 694 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] New Bee : What is the canonical path.
2014-12-09 11:28 [Qemu-devel] New Bee : What is the canonical path boddu pavan
@ 2014-12-10 11:10 ` Paolo Bonzini
2014-12-11 7:02 ` boddu pavan
0 siblings, 1 reply; 3+ messages in thread
From: Paolo Bonzini @ 2014-12-10 11:10 UTC (permalink / raw)
To: boddu pavan, QEMU Developers
On 09/12/2014 12:28, boddu pavan wrote:
> Hi,
>
> I am new to qemu, And i need help in understanding a part of code, Can
> any one tell the use of Canonical paths of the Object.
The use is mostly internal. Every time you set a property, you go
through a "Visitor" that represents the value. The representations
allowed by visitors are numbers, strings, booleans, etc.
When you want to set a property to an object, you actually need to set a
property to a string, because Visitors support string values. So you
use a "path". Typically you'll use a canonical path (though you can
also use a non-canonical path). Canonical paths are formed by following
properties of type child<Something>. Non-canonical paths are formed by
following properties of type child<Something> or link<Something> (where
Something is the name of a class type).
Similarly, when you read a property that has an object type, the
property's value will be a path, and the getter for that property will
always use a canonical path.
Paolo
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] New Bee : What is the canonical path.
2014-12-10 11:10 ` Paolo Bonzini
@ 2014-12-11 7:02 ` boddu pavan
0 siblings, 0 replies; 3+ messages in thread
From: boddu pavan @ 2014-12-11 7:02 UTC (permalink / raw)
To: Paolo Bonzini, QEMU Developers
[-- Attachment #1: Type: text/plain, Size: 1213 bytes --]
Thanks Poalo, This was helpful.
Regards,Sai Pavan
On Wednesday, December 10, 2014 6:27 PM, Paolo Bonzini <pbonzini@redhat.com> wrote:
On 09/12/2014 12:28, boddu pavan wrote:
> Hi,
>
> I am new to qemu, And i need help in understanding a part of code, Can
> any one tell the use of Canonical paths of the Object.
The use is mostly internal. Every time you set a property, you go
through a "Visitor" that represents the value. The representations
allowed by visitors are numbers, strings, booleans, etc.
When you want to set a property to an object, you actually need to set a
property to a string, because Visitors support string values. So you
use a "path". Typically you'll use a canonical path (though you can
also use a non-canonical path). Canonical paths are formed by following
properties of type child<Something>. Non-canonical paths are formed by
following properties of type child<Something> or link<Something> (where
Something is the name of a class type).
Similarly, when you read a property that has an object type, the
property's value will be a path, and the getter for that property will
always use a canonical path.
Paolo
[-- Attachment #2: Type: text/html, Size: 2723 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-12-11 7:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-09 11:28 [Qemu-devel] New Bee : What is the canonical path boddu pavan
2014-12-10 11:10 ` Paolo Bonzini
2014-12-11 7:02 ` boddu pavan
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).