qom/object: add some interface asserts
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 12 Sep 2018 12:53:03 +0000 (16:53 +0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 2 Oct 2018 17:09:13 +0000 (19:09 +0200)
commit422ca1432f7b44f2a9f3ad94a65d36927da021fa
treef3e40515a787ebf8ad6117f1b08df14324f190e4
parentdcf6760a64f6cacc5b7a77b0e530f3fffef5e189
qom/object: add some interface asserts

An interface can't have any instance size or callback, or itself
implement other interfaces (this is unsupported).

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20180912125303.29158-1-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
qom/object.c