vhost: add migration block if memfd failed
[qemu/ar7.git] / qobject / qnull.c
blob9873e266e616ed5082113039c7bdb30616c131da
1 /*
2 * QNull
4 * Copyright (C) 2015 Red Hat, Inc.
6 * Authors:
7 * Markus Armbruster <armbru@redhat.com>
9 * This work is licensed under the terms of the GNU LGPL, version 2.1
10 * or later. See the COPYING.LIB file in the top-level directory.
13 #include "qemu-common.h"
14 #include "qapi/qmp/qobject.h"
16 static void qnull_destroy_obj(QObject *obj)
18 assert(0);
21 static const QType qnull_type = {
22 .code = QTYPE_QNULL,
23 .destroy = qnull_destroy_obj,
26 QObject qnull_ = {
27 .type = &qnull_type,
28 .refcnt = 1,