qom: Add can_be_deleted callback to UserCreatableClass
authorLin Ma <lma@suse.com>
Mon, 30 Mar 2015 08:36:28 +0000 (16:36 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 1 Apr 2015 08:06:38 +0000 (10:06 +0200)
commitd6edb15576643ab348a9f73e115c2e037edf7460
tree54365e3a269416ad3fac1efee0a9c320754f9185
parent033a20359aaf93f4d8aa2be12558901e8e028baa
qom: Add can_be_deleted callback to UserCreatableClass

If backends implement the can_be_deleted and it returns false,
Then the qmp_object_del won't delete the given backends.

Signed-off-by: Lin Ma <lma@suse.com>
Message-Id: <1427704589-7688-2-git-send-email-lma@suse.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/qom/object_interfaces.h
qmp.c
qom/object_interfaces.c