OSDN Git Service

qom: API to get instance_size of a type
authorBharata B Rao <bharata@linux.vnet.ibm.com>
Fri, 10 Jun 2016 00:59:00 +0000 (06:29 +0530)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 17 Jun 2016 06:33:48 +0000 (16:33 +1000)
commit3f97b53a682d2595747c926c00d78b9d406f1be0
tree0f3e8c729f12696b1048cd33b726f6ae86bafc75
parentaab99135b63522267c6fdae04712cb2f02c8c7de
qom: API to get instance_size of a type

Add an API object_type_get_size(const char *typename) that returns the
instance_size of the give typename.

Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
include/qom/object.h
qom/object.c