OSDN Git Service

hostmem-file: Register TYPE_MEMORY_BACKEND_FILE properties as class properties
authorEduardo Habkost <ehabkost@redhat.com>
Thu, 13 Oct 2016 21:18:41 +0000 (18:18 -0300)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 17 Oct 2016 17:48:40 +0000 (15:48 -0200)
commit026ac483c70850c82fad849de656204b16f8415e
tree73d1efec988464ba508cd213d1e4f8a973de602d
parente62834ca62a86f057a8bd317137a4ae37d9c0ed2
hostmem-file: Register TYPE_MEMORY_BACKEND_FILE properties as class properties

To do the conversion, the file_backend_class_init() was moved
after the getter/setter functions. The old
file_backend_instance_init() function was removed because it is
not needed anymore.

The NULL errp arguments on the property registration calls were
changed to &error_abort.

Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
backends/hostmem-file.c