mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
qom: Pass available size to object_initialize()
To be passed on to object_initialize_with_type(). Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com> (virtio-ccw) Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
fb17dfe057
commit
213f0c4f61
13 changed files with 44 additions and 38 deletions
|
@ -597,13 +597,14 @@ void object_initialize_with_type(void *data, Type type);
|
|||
/**
|
||||
* object_initialize:
|
||||
* @obj: A pointer to the memory to be used for the object.
|
||||
* @size: The maximum size available at @obj for the object.
|
||||
* @typename: The name of the type of the object to instantiate.
|
||||
*
|
||||
* This function will initialize an object. The memory for the object should
|
||||
* have already been allocated. The returned object has a reference count of 1,
|
||||
* and will be finalized when the last reference is dropped.
|
||||
*/
|
||||
void object_initialize(void *obj, const char *typename);
|
||||
void object_initialize(void *obj, size_t size, const char *typename);
|
||||
|
||||
/**
|
||||
* object_dynamic_cast:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue