OSDN Git Service

object: add object_get_canonical_path_component()
authorStefan Hajnoczi <stefanha@redhat.com>
Mon, 3 Mar 2014 10:30:02 +0000 (11:30 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 13 Mar 2014 13:23:27 +0000 (14:23 +0100)
commit11f590b1a242492a0108da42f40f0e2b20f0a778
tree549ec3d3d25ecb39c2141fb914f1433c928bbb13
parentb5042a36229b4fa5eeb66bbcde78f704975aec00
object: add object_get_canonical_path_component()

It is often useful to find an object's child property name.  Also use
this new function to simplify the implementation of
object_get_canonical_path().

Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
include/qom/object.h
qom/object.c