qemu/include/qapi/qmp/qobject.h
/* Initialize an object to default values */
Initialize an object to default values
Initialize an object to default values
static inline void qobject_init(QObject *obj, QType type)
{
    assert(QTYPE_NONE < type && type < QTYPE__MAX);
    obj->base.refcnt = 1;
    obj->base.type = type;
}
static inline void qobject_init ( QObject * obj , QType type ) { assert ( QTYPE_NONE < type && type < QTYPE__MAX ) ; obj -> base . refcnt = 1 ; obj -> base . type = type ; }
Initialize an object to default values
Initialize an object to default values